Re: newbie question

From: Date: Tue, 23 May 2000 15:39:50 +0000
Subject: Re: newbie question
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-366@lists.php.net to get a copy of this message
Use hidden input tags. So, on the second page: TEST2.PHP <html> <head> <title> Job Entry2</title></head> <body>CSR Order Entry Test<p> <body> <form action="test3.php" method=GET> <input type="hidden" name="job_number" value="<?php print $job_number;?>"> <input type="hidden" name="customer_code" value="<?php print $customer_code;?>"> <?php print $job_number; print $customer_code; ?> <input type=submit> </form> </body> </html> That'd be the easy way to continue to pass the variables across pages, since you're using forms on each page. -r3- ----- Original Message ----- From: Kenn Murrah <warden@bakergrfx.com> To: <php-general@lists.php.net> Sent: Tuesday, May 23, 2000 11:28 AM Subject: [PHP-GENERAL] newbie question > Pardon the elementary nature of this question, but here' > what I'm trying to do: > > I want to use a form to look up customer number and add > a job number, then in the next script to retain the customer > number and job number so that they do not have to be > re-typed on the subsequent script -- sort of cascading of > variables.... > > In a highly simplified form, here's what I tried and failed with -- > can anyone tell me how to get the $customer_code and > $job_number transferred to the final script, test3.php ??? > > Thanks in advance, > > Kenn Murrah > > > TEST1.PHP > <html> > <head> > <title> > Job Entry</title></head> > > <body>CSR Order Entry Test<p> > > <html> <body> <form action="test2.php" method=GET> > > Job Number: <input type=text name=job_number size = 6 maxlength=6><p> > > Customer Code: <input type=text name=customer_code size=4 maxlength=4> <p> > <input type=submit> </form> </body> </html> > > > > TEST2.PHP > <html> > <head> > <title> > Job Entry2</title></head> > > <body>CSR Order Entry Test<p> > > <body> <form action="test3.php" method=GET> > <?php print $job_number print $customer_code ?> > <input type=submit> </form> </body> </html> > > > > > TEST3.PHP > <html> > <head> > <title> > Job Entry3 > </title></head> > > <body>CSR Order Entry Test<p> > > <body> > <?php print $job_number $customer_code ?> > </form> </body> </html> > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#366) next »