need help with onclick button

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jpaloyo
Forum Newbie
Posts: 12
Joined: Tue May 23, 2006 12:53 pm

need help with onclick button

Post 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>
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post 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?
jpaloyo
Forum Newbie
Posts: 12
Joined: Tue May 23, 2006 12:53 pm

Post 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
Post Reply