passing variables - php.ini?
| From: | matt stewart | Date: | Mon, 25 Feb 2002 10:44:06 +0000 |
| Subject: | passing variables - php.ini? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-86063@lists.php.net to get a copy of this message | ||
Hi guys,
Looking for help on how to activate the automatic passing of variables -
think i need to change something in my php.ini file maybe?
got scripts that work fine on one server, but i've recently got a new
virtual server, and it won't pass variables though - example script......
<html>
<head>
<title>Matt's PHP</title>
</head>
<body>
<center><h2>Message</h2>
<form method="post" action="<?php echo $PHP_SELF?>">
<?php
if($message) {
echo "$message";
}else{
?>
<table width="500" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td>
message:
</td>
<td>
<textarea name="message" cols="40"
rows="8"></textarea>
</td>
</tr>
<tr>
<td colspan=2>
<input type="Submit" name="submit" value="Send">
</td>
</tr>
</table>
<?php
}
?>
</form>
</center>
</body>
</html>
This always just gives the form for entering your message, it never does the
bit where it prints it out.
hope this is clear enough,
cheers,
Matt
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.323 / Virus Database: 180 - Release Date: 08/02/02