Submit Button Question

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
BigAbe
Forum Commoner
Posts: 66
Joined: Fri Mar 31, 2006 7:41 pm

Submit Button Question

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

hidden form elements would work just fine.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

Code: Select all

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