How to send this form? |
[eluser]Unknown[/eluser]
Hallo, I just made a form with addRow function. (my first form with javascript) see image de code Code: <?php perhaps someone can help me. thanks in advance
[eluser]obiron2[/eluser]
Short answer - exactly the same as you would any other form. Long answer - Whe you usesr the POST method, the http request includes an array called $_POST which contains all of the fields. Where you have many fields with the same name and they are arrayed, you will need to process the fields in groups based on their array indexes. (I am guessing that each row creates one line in your database) If you want to do validation and represent the form then things are a little more complicated as you would need to appy the validation rules to each field in the array and rebuild the form dynamically based on the number of records. Obiron P.S. please don't use tables to force layout. use DIVs and SPANs and CSS. you will thank me in the long run.
[eluser]Unknown[/eluser]
Thanks for reply. P.S. please don’t use tables to force layout. use DIVs and SPANs and CSS. Do you mean by this that i should use divs on my index page? Long answer would be nice to learn. because i want to deposite the data into database. Right know i am writing validation with javascript.
[eluser]jonhurlock[/eluser]
With regards to the P.C. about the use of DIVS, SPANS, and CSS. Try reading the following: A list apart - pretty accessible forms Hope that helped |
Welcome Guest, Not a member yet? Register Sign In |