Click to See Complete Forum and Search --> : form submitting question


dedix
09-03-2003, 05:56 AM
I have a form (sends an ecard) and it has a preview function.
On the preview page that shows how the card looks like are two buttons (send the card, back to edit).
This page is a form too, that has hidden fields with the ecard data that user entered. I want the button "back to edit" just to submit the form and passing the hidden fields data back to the composing page (fills back the data into the fields). It works fine, but I'm having troubles with "send the card" button. I want it to submit the form with "action=send" but I don't want that the button will be shown as "send" on the page, because it's a multi-language site, so I use variables as texts.
So, is that possible to use value1, value2 etc. or something like that?

Here is the code I use now

<INPUT TYPE=\"submit\" class=\"form\" VALUE=\"$MsgSendButton\" name=\"action\" WIDTH=200>
<INPUT TYPE=\"submit\" class=\"form\" VALUE=\"$MsgBackEditButton\" WIDTH=200></FORM>";

Khalid Ali
09-03-2003, 09:30 AM
this shows that you are using serverside lineguage(?php)

to give a button value from a server side language say php use the following

value="<?php echo $MsgSendButton?>"