Fwd: Parsing and using URL variables

From: Date: Fri, 20 Oct 2006 13:35:12 +0000
Subject: Fwd: Parsing and using URL variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-243395@lists.php.net to get a copy of this message
---------- Forwarded message ---------- From: andrew newman <andjnewman@gmail.com> Date: Oct 20, 2006 2:30 PM Subject: Parsing and using URL variables To: php-general-digest@lists.php.net Hello I am very new to PHP and I am trying to parse the values of variables from a URL into a web page. to build a very simple CMS! For example if the url is www.mywebsite.com?ph=My Website&pt=Welcome Page&cf=home.htm I then have a php file that is something like this: <html> <head> <title> <?php $val = $_GET['ph']; echo $val;?> </title> </head <body> <b><?php $val = $_GET['pt']; echo $val;?></b> <p/> <?php $val = $_GET['cf']; Include '$val'; ?> </body> </html> Any advice would be most welcome! Thanks Andrew

« previous php.general (#243395) next »