> Thanks for the hidden input thingy. another question, when we use this kind of 
> format in an URL:
> 
> ...../something.php?name=me&address=far
> 
> does it mean I'm using global variables (name and address?) is this a good thing or 
> should I do it some other way?
> if I'm not mistaken, to use this kind of format I need to switch 'register_globals' 
> to on, in the php.ini? and they say 
> to switch this on is not really a good thing bcoz of security problem. so how do I 
> get around this?
> 
> sorry if my question is too basic. or maybe someone can suggest me a good readings 
> for these kind of simple questions?

The question mark ("?") after the ULR indicates a GET of variables. In HTTP
(Hyper Text Transfer Protocol) these variables can be extracted from HTTP
package, and used by the server (HTML is wrapped in an HTTP package). It
is then server (read: implementation) dependent what happens with these
variables, however the page which is referred should always be able to
access these variables by means of the scripting language used.

You can read more about FORM's and POST in the HTML specifications found at

http://www.w3.org/TR/REC-html40/interact/forms.html

For instance, by following the links a bit you will end up with this information:

" If the method is "get" and the action is an HTTP URI, the user agent takes the value
of action, appends a `?' to it, then appends the form data set, encoded using the
"application/x-www-form-urlencoded" content type. The user agent then traverses the
link to this URI. In this scenario, form data are restricted to ASCII codes.

If the method is "post" and the action is an HTTP URI, the user agent conducts an
HTTP "post" transaction using the value of the action attribute and a message created
according to the content type specified by the enctype attribute. "

in general you will find any thing you need at www.w3.org, and in particular
you will find all information about specifications of HTML (version 4.01) you
ever will need at:

        http://www.w3.org/TR/REC-html40/

It might be tricky initially to understand the way they write these documentation,
but it's well worth spending time in learning to read it, because you will never be
able to find any more reliable first hand information than provided by www.w3.org.

        //Anders

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

Reply via email to