View Full Version : Sending values thru a form in only HTML?


GaryW
05-24-2004, 01:53 AM
I've seen some sites where the URL is like form.html?name=Bob&lastname=Parsons

How can you submit values only through HTML? Or if it uses another scripting language in association with HTML, how does it do this/how does this work?

Or maybe this could be some URL rewriting (mod_rewrite for Apache) at work?

pb&j
05-24-2004, 06:04 AM
they are appending extra information onto the URL to be used by the next page or script. if the info was done on a form, they used the GET method.

your example is probably going to a processing script done in PHP or ASP.

GaryW
05-24-2004, 01:27 PM
I don't think it can be done via PHP though? How would the logic work, could you explain?

pb&j
05-24-2004, 04:24 PM
form information gets submitted using the GET method.
info gets appended to the URL and directed to PHP processing page.
PHP script gathers the info via the URL and does whatever.