Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I set hidden input value to confirmation field?

Status
Not open for further replies.

aojonesoa

Technical User
Apr 25, 2001
40
US
I have a form that sends an email to me, it then displays a custom confirmation page. I would like to retrieve the information in some of the confirmation fields, and use it in a hidden input field to submit via the POST method.

How?
 
just make it Hidden like so

<input type=&quot;hidden&quot; name=&quot;Customer&quot; value=&quot;<%=Customer%>&quot;>

this way get a variable from the form
or

<input type=&quot;hidden&quot; name=&quot;Customer&quot; value=&quot;test&quot;>

this way uses a static value I called test

So the name is Customer and it will contain the value test

DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
I already have a hidden field defined in my confirmation form. What I need is to be able to retrieve the data in the confirmation field(s) and set the value of the hidden field with it.

Is that where the percent syntax (=&quot;<%=Customer%>&quot;>)comes in?

Thanks,
Scott
 
I tried using the method: (=&quot;<%=Customer%>&quot;>). I coudn't get it to work, the server returned an error stating:

Cannot run the FrontPage Server Extensions' Smart HTML interpreter on this non-HTML page: &quot;
I would like it to work in 2 steps:

1. Submit the first form; sends an email, then brings up Confirmation Page with Confirmation Fields.

2. Confirmation Field Results also transferred to hidden input for transfer by POST method.

Any help would be greatly appreciated.
Thank You
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top