---------- Forwarded message ----------
From: andrew newman <[EMAIL PROTECTED]>
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

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

Reply via email to