pankaj_garg
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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);'>
<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...
<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...
So ... what aabout my points? :)
xabi
xabi
ASKER