Grow your CSS skills. Land your dream job.

Value from one page to then form this page to next

  • # June 16, 2013 at 4:33 am

    can i get the form values just as

    Name

    this to first page and then from 2nd page to 3rd??

    __
    # June 16, 2013 at 4:55 am

    are you trying to get values submitted from a form to be automatically available in your script, as in (for example) `$name`, instead of having to do `$_POST`?

    If so, be advised that this is a **very bad idea**. `register_globals` used to do this (it has since been **deprecated** and **removed**). Go read the PHP manual page on [using register_globals](http://php.net/manual/en/security.globals.php).

    You should not try to duplicate this functionality. It is a severe security risk. Instead, always take the time to deliberately **validate** _(check that the value IS what it is SUPPOSED TO BE)_ and **sanitize** _(make the value SAFE TO USE, e.g., to put in the database, to print to the browser, etc.)_ **all user input**.

    remember,

    ## NEVER TRUST USER INPUT.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".