Page 1 of 1

Submit Button Question

Posted: Wed Apr 12, 2006 1:24 pm
by BigAbe
Aloha!

Is it possible to have a button that displays something different then the value it's passing?

Code: Select all

<input type="submit" name="ban" value="userUID">
Basically, I have a user database and I'm trying to give the admin the ability to ban and unban via clicking on a button. I want the button to display as "ban" or "unban" and pass the record's userID to the next page.

Any thoughts?

Thanks!

-- Abe --

P.S. My apologies if this should be in the PHP forums.

Posted: Wed Apr 12, 2006 1:39 pm
by feyd
hidden form elements would work just fine.

Posted: Wed Apr 12, 2006 3:13 pm
by Luke

Code: Select all

<input type="hidden" name="userID" value="125" /><input type="submit" value="Ban/Unban" />