doesn't want to execute.
I made a simple script to send and recieve test, but for some reason the second page doesn't load any $ variables.
here is a piece of script of the second page:
<b>Posted on:</b><?php print($date); ?>.
<b>By:</b><?php print($name); ?>.
<?php print($news); ?>.
And this is the first page sending to the script at the second page:
<form action="dnp.php" methode="post">
<input type="text" name="date"
value="<?php print($date); ?>" size="15"> <br />
<input type="text" name="name"
value="<?php print($name); ?>" size="35"> <br />
<input type="text" name="news"
value="<?php print($news); ?>" size="150"> <br />
<input type="submit" Value="go!" Size="15" />
Can you help me?
If you have a newish version of PHP you might well have register globals set to off, thus indicting a need to access the post vars array with slightly different syntax
<?php echo $_POST['name']; ?>
<?php echo $HTTP_POST_VARS['name']; ?>
also - in your form coding, methode is generally spelled without the trailing e.
Well i am kinda of a newbe to php, but how can i change this forum so that it posts and makes an html script and adds new visible text every time you execute the form?
|All times are GMT +1. The time now is 10:14 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.