I must be doing something wrong...!
I made the changes you noted, but unable to view results in my browser 🙁
So far, I have uploaded two pages to my server. They include an HTML page and a PHP page. The HTML has the form that presumably passes the data to the PHP page. Here is the code for both pages:
HTML (form) Page:
<html>
<head>
<title>Parse URL</title>
<body>
<p><font face="Arial"><b>Parse URL</b></font></p>
<form action="ParseUrl.php" method="POST">
<font face="Arial" size="2"><b><i>
Enter URL: </i></b></font>
<input type="text" name="urltoparse" size="97"><br>
<input type="submit" name="submit">
</form>
</body>
</htm>
PHP Page:
<html>
<head>
<title>
</head>
<body>
<h3> Parsed URL Results</h3>
<?
$urltoparse = $_POST['urltoparse'];
$myparsedurl = parse_url($urltoparse);
$params = explode("&", $myparsedurl['query']);
$countparams = count($params);
FOR($i = 0; $i < $countparams; $i++) echo "<BR/>".$params[$i];
?>
</body>
</html>
I take it that the echo command should display the results... ! However, nothing is displayed.
Here is the URL that was tested:
http://jobsearch.monster.com/jobsearch.asp?q=engineer&lid=552&fn=4&sort=rv&vw=b&cy=US&re=14&brd=1%2C1862%2C1863
Have I done something wrong or should my server have different settings?
Thanks for your help!