Anything wrong with this

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
pinehead18
Forum Contributor
Posts: 329
Joined: Thu Jul 31, 2003 9:20 pm

Anything wrong with this

Post by pinehead18 »

<input type=hidden name=name value=".$_GET['name'].">

Anything wrong with that? If i echo $_GET['name']; it shows the right info however in that form above it will not work.

Any ideas?

Thanks
Anthony
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

what's the code leading up to this?
User avatar
Bill H
DevNet Resident
Posts: 1136
Joined: Sat Jun 01, 2002 10:16 am
Location: San Diego CA
Contact:

Post by Bill H »

Code: Select all

"<input type=hidden name=name value='" . $_GET&#1111;'name'] . "'>"
The dots mean nothing unless this is a php quoted string, so I assume that's what it is.
Notice the quotes. The value probably needs to be quoted.
Post Reply