Adding code to a form button?
Posted: Sun Apr 12, 2009 4:17 am
Hello,
I use a button which resets the contents of my basket, although this code is currently on a php page and therefore the button takes the user to this page to reset the variables. Is it possible to add the code directly to the button to the variables are changed on a mouse click?
thanks,
I use a button which resets the contents of my basket, although this code is currently on a php page and therefore the button takes the user to this page to reset the variables. Is it possible to add the code directly to the button to the variables are changed on a mouse click?
thanks,
Code: Select all
"<form method='post' action='credits.php'>".
"<input type='hidden' value='$album' name='album_id'>".
"<input type='hidden' value='$album' name='album'>".
"<input type='hidden' value='add' name='action'>".
"<input type='submit' value=' Empty Basket '>".
"</form>".