Re: newbie question
| From: | Ryan Adams | Date: | Tue, 23 May 2000 16:07:57 +0000 |
| Subject: | Re: newbie question | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-372@lists.php.net to get a copy of this message | ||
Also, you can pass variables in anchor tags.
ex. <a
href='test3.php?job_number=$job_number&customer_code=$customer_code'>Test.php3</a>
use the urlencode() and urldecode() functions if the values that
you're passing have spaces or other non url-friendly chars in them.
Hope this helps
Ryan
*************************************
Ryan Adams
Online Systems Development
College of Family & Consumer Sciences
The University of Georgia
Athens, GA 30602
(706) 583-0344
radams@fcs.uga.edu
*************************************
On Tue, May 23, 2000 at 10:28:17AM -0500, Kenn Murrah wrote:
> 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
---end quoted text---