Posted by George on 10/26/05 21:07
In article <11lqeta1rr76qe4@corp.supernews.com>, Doug Eilertson says...
>
>I have seen ? used on url's. What does it mean and what is it's usage? I
>have two books on php and they don't mention diddly squat about it.
>
>
From my understanding it's not limited to PHP, but part of how forms are used
with HTML. Information can be sent through a form with input fields (using the
post method), or can put the information in the URL (using the get method) that
you described. With the get method you normally have the script name, followed
by a "?" and the parameters added after it, such as
http://domain.com/form.php?param1=1¶m2=t
In PHP you would use the $_GET['param1'] and $_GET['param2'] to get those
values. The "?" just provides another way to send the information to a program.
George
--
Newsguy -- 30 GB monthly -- $14.95 / month
http://newsguy.com/overview.htm
[Back to original message]
|