Page 1 of 1

need help with onclick button

Posted: Mon Jun 26, 2006 4:12 pm
by jpaloyo
i made a search engine connecting to the database. the code works and everything. The problem is that everything loads at the beginning when i load the page. What can i do about this??? if statement for my buttons maybe and if so how?? onclick??
help please. example would be nice. here is the code for my button

Code: Select all

<table border=0 align="center">
<tr>
<td><form method="post" name=ownersearch action="[PHP_SELF]">
<input type="text" name="search" value="">
<input type="submit" name="<span style='color:blue' title='I&#39;m naughty, are you naughty?'>smurf</span>" value="Submit">
</form>
</td>
</tr>
</table>

Posted: Mon Jun 26, 2006 4:16 pm
by Burrito
I'm not really clear on what you're asking.

onClick is a client side event that won't do anything on the server without submitting the page in some way (or using ajax).

what are you trying to accomplish here?

Posted: Tue Jun 27, 2006 11:28 am
by jpaloyo
I am not really sure how to word it. I will read up on this some more and if i still can't figure it out then i will ask for help again. Thank you