View previous topic :: View next topic |
Author |
Message |
lonestreaker -
Joined: 01 Feb 2004 Posts: 2 Location: Seabeck, WA
|
Posted: Thu Feb 05, 2004 11:58 pm Post subject: php variables |
|
|
Here are the bodies of the two files:
test.htm
----------
<body>
<form action="processform.php" method=POST>
<input type="text" name="whatever">
<input type="submit">
</form>
</body>
-----------
processform.php
----------
<body>
<?php
print "$whatever /n";
?>
</body>
----------
when ever i submit the data, the php script brings up a notice about not having any values for the $whatever variable. the book that i am teaching myself with shows that as the correct format too. i've reinstalled both abyss and php a number of times now, and i made sure to follow the instruction exactly as they were on the site, so i don't know what to do now. hope you guys can help me. heh, it'll probably end up being something stupid that i didn't do right :D |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Fri Feb 06, 2004 12:25 am Post subject: |
|
|
That is a old PHP varibal , you could use $_REQUEST[whatever] instead
of $whatever and the PHP varibal will become registered , otherwise
turn Register Globals on but that can cause security problems from
what I was told , I know this because I study PHP also. 8)
P.S. /n should be \n (I always get that mixed up also) |
|
Back to top |
|
 |
lonestreaker -
Joined: 01 Feb 2004 Posts: 2 Location: Seabeck, WA
|
Posted: Fri Feb 06, 2004 12:38 am Post subject: |
|
|
thanks for the help. couldn't really do anything without the variable stuff :D |
|
Back to top |
|
 |
|