Click to See Complete Forum and Search --> : Forms, POST and values


nnhubbard
10-29-2007, 10:36 AM
I know how to build forms, that is easy. But I recently have been interested in using POST to display the form values in my url, which can then be passed on to other pages. When I try making a form using post, it does not do this automatically.

How can I make a form, using POST, display the values of the form fields in the URL, so that I can pass these to the next page? Or am I going about this all wrong?

KDLA
10-29-2007, 12:56 PM
It would depend upon the type of coding you are using to process the form.

KDLA

Kravvitz
10-29-2007, 12:57 PM
That's what GET is for. POST is for when you're transferring more data or files or just don't want the name/value pairs to be added to the query string.

nnhubbard
10-29-2007, 01:01 PM
That's what GET is for. POST is for when you're transferring more data or files or just don't want the name/value pairs to be added to the query string.

Ok, so what I am after is using GET if I want the form results to show up in the query string?

Kravvitz
10-29-2007, 01:08 PM
Yes.

nnhubbard
10-29-2007, 01:17 PM
Yes.

Can this be done by just creating a normal form in HTML. Or do I need to use some php in order to make the form results end up in my query string?

Kravvitz
10-29-2007, 01:28 PM
Just us a normal form. The PHP would be used to process the form submission. (And of course PHP could be used to generate the HTML for the form dynamically.)