Computing.Net > Forums > Programming > PHP - form

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

PHP - form

Reply to Message Icon

Name: delr2691
Date: March 11, 2005 at 23:25:43 Pacific
OS: Windows XP PRO
CPU/Ram: 2.6 Gh / 512 Mb
Comment:

Hi..
I need help with a code...
Look, I want to do something like this:
In a form..
if the value of a menu is 'abc'
show a list [allowing multiple selection] wich name es 'xyz'
i already did this in JavaScript...
now, when submitted the form,
the page must get the values of 'xyz' and insert each value in a database table...
for example:
'xyz' values were 1, 2 and 3
so the page must insert this:

COL 1 | COL 2
1 | abc
2 | abc
3 | abc

please help me with this one...
thanx

>>-----------------<<
Diego Luces
delr_91@hotmail.com



Sponsored Link
Ads by Google

Response Number 1
Name: Michael J (by mjdamato)
Date: March 12, 2005 at 15:48:02 Pacific
Reply:

Diego,

I'm not very clear on exactly what part you need. I'm assuming that your problem is entering the multiple values of the xyz field as separate rows in the table. If so, . . .

Use the split function to split the value of xyz using a comma as a delimiter (I believe multiple values are separated by a comma). This will create an array with each of the values. Then just loop through the array inserting each value into the database.

Michael J


0
Reply to Message Icon

Related Posts

See More


I need help with C#!! flexigrid and dbgrid



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: PHP - form

php form bugged? www.computing.net/answers/programming/php-form-bugged/3975.html

Post + php + Forms + Select Box www.computing.net/answers/programming/post-php-forms-select-box/10864.html

How to save form settings (PHP) www.computing.net/answers/programming/how-to-save-form-settings-php/5265.html