[PHP] Passing variables to page via POST - How?

2002-07-18 Thread Monty

This is probably more of an HTML question... Is there a way to pass
variables to another page via POST instead of via the URL? I need to pass
several variables, one that is an array and another that is a fairly long
string, so, I can't really do this via the URL.

My initial idea was to just create a very simple form that only has hidden
fields with the data I want to pass, along with an image Submit button that
would call the page and pass the hidden field variables.

Is that the only/best way to accomplish this?

Thanks.

Monty
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Passing variables to page via POST - How?

2002-07-18 Thread Chris Shiflett

Monty wrote:

This is probably more of an HTML question... Is there a way to pass
variables to another page via POST instead of via the URL?


Yes.

form action=another_page.php method=post
... (form fields here) ...
input name=button_name type=submit value=Button Text
/form


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php