Link to home
Start Free TrialLog in
Avatar of pankaj_garg
pankaj_gargFlag for India

asked on

Form button to have different diplay and CGI value

Hi,
   I want a form button to have different display value than
the value passed to the CGI . How do I do that?
Any pointers are appreciated.


Regards,
Pankaj
ASKER CERTIFIED SOLUTION
Avatar of xabi
xabi

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pankaj_garg

ASKER

Thanks a lot...
Avatar of knightEknight
Another way is to change the value only when the button is pressed -- that way the user sees the correct display value, and the new value is only displayed for a second or so while the form submits:

<INPUT type='submit' value='display val' onClick='this.value="new value";return(true);'>

oops, as xabi already said  :)
can't you just use:

<INPUT TYPE="submit" NAME="sub1" VALUE="Click Me">

the name of the submit button will be "sub1" in the cgi scripts, but will show "Click Me" on the page...
Sorry! I misread the question...  I don't know what made me think you wanted a submit button...
Avatar of xabi
xabi

So ... what aabout my points? :)

xabi