Passing variables to multiple pages using input type hidden

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

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

Post by feyd »

notice anything odd about lines 47-59 ? ;)
PHP_Ste
Forum Newbie
Posts: 19
Joined: Thu Mar 10, 2005 8:42 am

Post by PHP_Ste »

:lol: oops, knew it would be something simple.
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post by n00b Saibot »

Since you are starting the string of echo with the {'} thats why its giving errors.
Change this line

Code: Select all

<input type="text" name="<? echo 'member'.$i; ?>" style="width: 175px">
to this

Code: Select all

<input type="text" name="member'.$i.'" style="width: 175px">
EDIT: I noticed that the next two echo's have the same prob. change them the same way as above.
PHP_Ste
Forum Newbie
Posts: 19
Joined: Thu Mar 10, 2005 8:42 am

Post by PHP_Ste »

OK thanks, that problem is solved but it is just inserting blank strings into the database, I'm pretty sure this is to do with it not reading the form vars properly but only being a rookie I am unsure.
Post Reply