Page 2 of 2
Re: Problem with passing mysql_num_rows an argument
Posted: Mon Nov 03, 2008 9:50 pm
by requinix
bmoyles0117 wrote:Thusforth, the form probably consists of an image type submit button.
Uh, no. You clicked it: did it look like an image to you?
Form code (as I see it) with formatting:
Code: Select all
<form action="/search" name=f>
<table cellpadding=0 cellspacing=0>
<tr valign=top>
<td width=25%> </td>
<td align=center nowrap>
<input name=hl type=hidden value=en>
<input autocomplete="off" maxlength=2048 name=q size=55 title="Google Search" value=""><br>
<input name=btnG type=submit value="Google Search">
<input name=btnI type=submit value="I'm Feeling Lucky"></td>
<td nowrap width=25%>
<font size=-2> <a href=/advanced_search?hl=en>Advanced Search</a><br>
<a href=/preferences?hl=en>Preferences</a><br>
<a href=/language_tools?hl=en>Language Tools</a></font>
</td>
</tr>
</table>
</form>
Re: Problem with passing mysql_num_rows an argument
Posted: Wed Nov 05, 2008 7:14 pm
by bmoyles0117
Woman -.-
Code: Select all
<form method="post" action="test.php">
<input type="text" name="field1" value="123" />
<br />
<input type="submit" value="Submit" />
</form>
Will put out
The ONLY reason why the submit button would result something other than being an image is if you assign it a name.
Common sense would allocate a train of thought towards separating your output so as to NOT check for a simple string value randomly generated due to your taste for desire for context to fill the value of your submit value. Other than that. Using a hidden field to have a definite reference check makes more systematical sense.
Re: Problem with passing mysql_num_rows an argument
Posted: Wed Nov 05, 2008 10:09 pm
by infolock
actually....
Code: Select all
<form method="post" action="test.php">
<input type="text" name="field1" value="123" />
<br />
<input type="submit" value="Submit" />
</form>
will output
Either way, instead of creating a whole new input type = hidden, why not just apply the name="submit" to the submit button and be done with it?