php variables

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
lonestreaker
-


Joined: 01 Feb 2004
Posts: 2
Location: Seabeck, WA

PostPosted: Thu Feb 05, 2004 11:58 pm    Post subject: php variables Reply with quote

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 View user's profile Send private message Yahoo Messenger MSN Messenger
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Fri Feb 06, 2004 12:25 am    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
lonestreaker
-


Joined: 01 Feb 2004
Posts: 2
Location: Seabeck, WA

PostPosted: Fri Feb 06, 2004 12:38 am    Post subject: Reply with quote

thanks for the help. couldn't really do anything without the variable stuff :D
Back to top View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group