Please help a newbie

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
User avatar
xlordt
New php-forum User
New php-forum User
Posts: 34
Joined: Thu Dec 12, 2002 9:00 pm
Location: NJ
Contact:

Post by xlordt » Sat Feb 22, 2003 1:31 am

post your code.. please =)

pootergeist
New php-forum User
New php-forum User
Posts: 191
Joined: Wed Jan 29, 2003 7:11 am
Location: UK
Contact:

Post by pootergeist » Sat Feb 22, 2003 3:49 am

php4.3 would have register_globals set to OFF in the .ini file, therefore accessing variables means having to reference the array then var name.

echo $_POST'name'];
or
echo $_GET['name'];

User avatar
xlordt
New php-forum User
New php-forum User
Posts: 34
Joined: Thu Dec 12, 2002 9:00 pm
Location: NJ
Contact:

Post by xlordt » Sat Feb 22, 2003 9:25 pm

actually you first have to add a value to your <INPUT TYPE="text" NAME="username" VALUE=\"" . $_GET['username']>

User avatar
Redcircle
Moderator
Moderator
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA
Contact:

Post by Redcircle » Sun Feb 23, 2003 12:10 pm

I wouldn't reccomend having the username within the URL

http://www.php-forum.com/p/viewtopic.php?t=1483

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests