PHP and Javascript... Form help...

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
shoxlx
Forum Newbie
Posts: 23
Joined: Tue Oct 11, 2005 10:42 pm

PHP and Javascript... Form help...

Post by shoxlx »

i have a javascript that allows a user to add/remove a text box from a form dynamically. i need help on how to process the form after the user adds/removes how many text boxes he/she wants.

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

Post by feyd »

name the field such that php can load it via an array method such as:

Code: Select all

<input type="text" name="foo[]" />
They data will be stored in $_POST['foo'] when passed via the post method..
shoxlx
Forum Newbie
Posts: 23
Joined: Tue Oct 11, 2005 10:42 pm

Post by shoxlx »

thank you...

shox
Post Reply