1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Rep Power

    Pass variable to another *.php file..

    I have a basic question.

    I have a html submit page. After clicking the submit button, the input variables are passed (using <form action="1.php" method="post">) to 1.php. Then, the 1.php does some pattern matching works. Now I want to pass the output values of 1.php to 2.php. How do I do it? Any example on the web already?

    Because 2.php will be used/called by other files as well to access MySQL database, I do not want to combine 1 and 2 together. Thanks a lot.
  2. #2
  3. Sarcky
    Devshed Supreme Being (6500+ posts)

    Join Date
    Oct 2006
    Pennsylvania, USA
    Rep Power
    HEY! YOU! Read the New User Guide and Forum Rules

    "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin

    "The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002

    Think we're being rude? Maybe you asked a bad question or you're a Help Vampire. Trying to argue intelligently? Please read this.
  4. #3
  5. Known to taste like chicken
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    In front of my computer
    Rep Power
    Originally Posted by gs02wcjao
    Any example on the web already?
    yes, about 13,700,000 of them

    Comments on this post

    • ManiacDan agrees : lulz
    • portcitysoftwar agrees : My calculations differ google only found ~10,900,000
    "Take thy beak from out my heart, and take thy form from off my door" - Homer J Simpson / Edgar Allan Poe

    Looking for a project Idea?

IMN logo majestic logo threadwatch logo seochat tools logo