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
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
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.
Summary: I have this problem: I downloaded a Php form from the net, but... When I test it and I submit it, it will just create some \ with all the '. example: I\'ll go to the cinema next week with my friend\'s...
Summary: Hi everyone. I am kind of new to web programming. I have made a webpage that uses php and is linked to a postges database. I have a select box on my main page that obtains its information from the ...
Summary: I was wondering if someone would be able to help me out with this . I fill my PHP form(1) and click Submit, pass all variables to the second php script(2). This script(2) forms PreView page, where i s...