Hello,
I am trying to save information from a text box if the checkbox is selected. The checkboxes are dynamically created with php from mysql tables, so I don't know the index of the array that I would like to delete. My plan is use javascript to delete the null values from the textboxes so the length of that element will correspond with the length of the checkbox element, but I can't figure out how to use the splice method correctly......
User Profile
Collapse
-
Splice Method Question
-
I decided to go with checkboxes instead and use the onclick event handler to display the drop down choices.
Thanks, -
Multiple select box to populate another select box
Hi There,
I am creating a survey that asks users what countries they have worked in, and which regions in those countries. Because there can be many answers, I was thinking I could populate a multiple select box, using php and mysql, containing the countries. When the user selects a country, another select box containing the regions in that country would appear (using Javascript onchange event handler).
My problem is that... -
Leave a comment:
-
ok, i knew it would happen that I figure it out AFTER i post something. Anyway, if someone else has this problem, i found a solution here:
I had to tweak it a bit (i erased the control.value+= control.value in the reallySetValue javascript function) because it was entering the input twice and therefore not searching the mysql database correctly.Leave a comment:
-
using onchange to insert text variable into url?
Hi there,
I am trying to get a zip code lookup script to work. Basically, I want the user to input a zip code and the city and state are displayed without using a button to find it. I already have a zip code table in mysql. if i manually enter the ?zip= into the url, the city and state are displayed. my problem is getting the input into the url.
any suggestions on where to look for solutions?
here is my... -
I don't know too much about this, but if i were you, i would try putting curly braces around your variable...
.../search/{$recent_query} target...
that technique has helped me out while inserting into databases, but i'm not sure that it works for url's.......Leave a comment:
-
text array not posting as null when empty!
Hi There,
I am building a form that allows a business to enter at most 2 mailing addresses. i have the form set up so both inputs are there, storing as a post array. the problem is, when i try to use php to enter the data into in the mysql database, it enters empty data even when a field is null.
html
...Code:<form method='POST' action='entry2.php' name='entry'> <table> <tr><td colspan='4'
No activity results to display
Show More
Leave a comment: