Jump to content

storing variables from a form within same page


chris4321

Need help storing variables from post form  

1 member has voted

  1. 1. Need help storing variables from post form

    • ghfg
      1
    • fghfg
      0


Recommended Posts

Yes like Corbin had said if you want to carry it over and store it in a database or compare the information you would use the following:

Say this is your form on your 'text.html' file page.  My example is a userName.

<input type="text" name="userName" />

On the page that your trying to put it into a variable you would have it as

$userName = $_POST['userName'];

It doesn't have to necessarily be userName you can make it whatever you want username, text, whatever you would like.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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.