Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fb94e1e

Browse files
authored
Update SimplePHPForm.php
1 parent 5ddf162 commit fb94e1e

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

‎SimplePHPForm.php‎

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -117,19 +117,14 @@ function display($name=false)
117117
if(!is_string($name))
118118
{
119119
$output = '';
120-
121-
if ($name) {
122-
$output .= $this->displayState();
123-
$output .= '<form method="post" action="'.$this->url_action.'" class="simplephpform">';
124-
}
120+
$output .= $this->displayState();
121+
$output .= '<form method="post" action="'.$this->url_action.'" class="simplephpform">';
125122

126123
foreach($this->input_list as $input)
127124
$output .= $this->display($input->name)."\n";
128125

129-
if ($name) {
130-
$output .= '<input type="submit" value="Submit Form" class="simplephpform_submit" />';
131-
$output .= '</form>';
132-
}
126+
$output .= '<input type="submit" value="Submit Form" class="simplephpform_submit" />';
127+
$output .= '</form>';
133128

134129
return $output;
135130
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /