Jump to content
xisto Community
suicide1405241470

invisible element

Recommended Posts

I have a sign-up form with multiple boxes. The customer will put their username in a text box. After they submit the form they will be taken to a payment screen. On this payment screen there is a text box and an add to cart buttom for adding products to their cart. (this is done via paypal. My question is, I need the text box on the second page to automaticly fill in the member name they put in on the first screen, and make it invisible. Is there anyway to do this? Thanks for your help

Share this post


Link to post
Share on other sites

A hidden textbox in HTML can be made by including a tag like this inside the form field:

<input type=hidden name="memname" value="John Netherfarm">
So if you are using a PHP-script to generate the second page, in that script you will need to write
echo '<input type=hidden name="memname" value="'.$_POST['membername'].'">';
That is assuming that the member name input field on the first page is
<input name="membername" value="">
and that the form field uses POST method.
On the second page, a tag like the first one in this post will be printed.

I hope that helps! :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.