I've been trying to get forms and php working forever, using code from everywhere like http://hotwired.lycos.com/webmonkey/01/ ... rogramming
for forms examples, butwhenever I put the files on my computer, the variables never get sent. I'm using Apache 2.0, and I know it's not apache because it happens with 1.3 with me, and PHP 4.3.4.
PHP with forms not working
Moderator: General Moderators
I think u must b accessing ur form data directly by its name such as if u have
then u r accesing it in php as
try it with
coz by default the global variables r off in php.ini file either turn them on
Code: Select all
<input type="text" name="me">Code: Select all
echo $me;Code: Select all
echo $_POSTї'me'];The article is dated. To get it working, change
in file "bad_words.php" to
For further reading regarding forms and variables in PHP I suggest http://www.devnetwork.net/forums/viewtopic.php?t=511 which deals exactly with your problem.
Code: Select all
<?php
print $YourName;
?>Code: Select all
<?php
print $_POST["YourName"]
?>