roscoeh23
asked on
PHP - sending a variable with image button
I have a button but I want to use it to send a variable to the same page if it is pressed
<a href="#"
onmouseover="document.sub_ but1.src=' buttons/re set_cream_ over.gif'"
onmouseout="document.sub_b ut1.src='b uttons/res et_cream_u p.gif'"><i mg src="buttons/reset_cream_u p.gif"
alt="Move your mouse over me" name="sub_but1" width="82" height="32" border="0" align="absmiddle" id="sub_but1" /></a>
at the top I want to do something like
if (isset($_POST['reset']) {
//do something here
}
any ideas?
<a href="#"
onmouseover="document.sub_
onmouseout="document.sub_b
alt="Move your mouse over me" name="sub_but1" width="82" height="32" border="0" align="absmiddle" id="sub_but1" /></a>
at the top I want to do something like
if (isset($_POST['reset']) {
//do something here
}
any ideas?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.codetoad.com/html/buttons/image_submit_button.asp?x=75&y=19