faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

52 of 81 people (64%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

How and when to use $php_self and $query_string????

Mar 1st, 2009 08:47
Sarah Turner, healthy man, dman, Onno Benschop, GamerZ Chan, http://www.ttnr.org


You could create a form that posts to itself:
   echo "<form action=$PHP_SELF>" ;
Or you could generate a URL in a list that points to itself:
   echo "<a href='$PHP_SELF?cmd=view&id=12'>bob</a>" ;
This would set a variable called $cmd, with a value 'view' and a 
variable called $id, with a value 12, which you could use to view the 
details of the record with id 12.
The possibilities are endless.
http://www.healthdothealth.com
http://www.healthxhealth.com
http://www.mesotheliomainmesothelioma.com
http://www.healthfirewall.com
http://www.flathealth.com
http://voyagevacances.blogtact.com/
http://rejseferie.blogtact.com/
http://flyvningertilschweiz.blogtact.com/
http://volssuisse.blogtact.com/
http://volsromeitalie.blogtact.com/
http://viajesvacaciones.blogtact.com/
http://reisenchina.blogtact.com/
http://flugeschweiz.blogtact.com/
http://resasemester.blogtact.com/
http://viaggivacanze.blogtact.com/
http://reisenurlaub.blogtact.com/
http://reizenvakanties.blogtact.com/
http://volisvizzera.blogtact.com/
http://gartenpflege.blogtact.com/
http://geschenkideeen.blogtact.com/
http://vluchtenromeitalie.blogtact.com/
http://www.healthbodyguard.com