You are here: Re: '?' usage « All PHP « IT news, forums, messages
Re: '?' usage

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&param2=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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация