Re: passing variables between pages without using url??
| From: | Steve Werby | Date: | Sun, 04 Nov 2001 05:17:30 +0000 |
| Subject: | Re: passing variables between pages without using url?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-73375@lists.php.net to get a copy of this message | ||
"sunny AT wde" <sandeep_wde@yahoo.com> wrote:
> Ok, but how do I use post when using Header??
You don't. What are you trying to achieve that makes this necessary?
> I would like to have a form, but I don't know how I would make the
> script automatcially re-direct in a form... becase I know how to use
> form variables that way.
In the HTML <form> element the "action" attribute specifies the file that
will process the form. If your first form is form1.php and your second is
form2.php then on form1.php you'd have this:
<form method='post' action='form2.php'>
And form2.php would include the PHP code necessary to process form1.php. If
that doesn't make sense maybe you can include some code or explain in more
detail what you're trying to accomplish and what the problem you're facing
is. It's late here so maybe I'm just not thinking clearly.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/