Passing variables in URL
Posted: Thu Jan 30, 2003 12:13 pm
Hi,
When i run the following php script on my local machine it doesn't pass the variables in the URL but it will do it on my server. I am currently running Apache and mySQL locally.
<html>
<head>
<title>Dev Page</title>
</head>
<body>
<font face="Arial" size=2>
<?php
if(isset($add)) { // if the user wants to add a joke
?>
<form action="index.php" method="POST">
<p>Type your text here:<br>
<textarea name="text" rows="10" cols="40" wrap></textarea><br>
<input type="submit" name="submit_text" value="SUBMIT"/>
</p>
</form>
<?php
} else { // default page display
echo ("<p><a href='index.php?add=1'>Add some text</a></p>");
}
?>
</font>
</body>
</html>
Could anyone tell me why this is happening?
Thanks
When i run the following php script on my local machine it doesn't pass the variables in the URL but it will do it on my server. I am currently running Apache and mySQL locally.
<html>
<head>
<title>Dev Page</title>
</head>
<body>
<font face="Arial" size=2>
<?php
if(isset($add)) { // if the user wants to add a joke
?>
<form action="index.php" method="POST">
<p>Type your text here:<br>
<textarea name="text" rows="10" cols="40" wrap></textarea><br>
<input type="submit" name="submit_text" value="SUBMIT"/>
</p>
</form>
<?php
} else { // default page display
echo ("<p><a href='index.php?add=1'>Add some text</a></p>");
}
?>
</font>
</body>
</html>
Could anyone tell me why this is happening?
Thanks