IwnfuM Posted September 15, 2010 Share Posted September 15, 2010 hi , i want to make 5 forms with 1 submit button , how i do that? thanks , Mor. Quote Link to comment Share on other sites More sharing options...
IwnfuM Posted September 15, 2010 Author Share Posted September 15, 2010 i don't get replays and maybe it's not the right forum , maybe someone can move the topic or at least help? thanks , Mor. Quote Link to comment Share on other sites More sharing options...
Psycho Posted September 15, 2010 Share Posted September 15, 2010 Or maybe you can post a question with enough information for us to actually help you. I have no idea what you mean by 5 forms. Do you mean five different forms on the same page or 5 forms that the user would enter data into one by one. We are not mind readers here, please give some details instead of a generalized statement and we will be happy to help. Quote Link to comment Share on other sites More sharing options...
IwnfuM Posted September 16, 2010 Author Share Posted September 16, 2010 well , sorry if you don't understand. i want to make 5 forms in 1 page. each form will have 2 options of radio buttons . and i want to make only 1 submit button to send all the 5 forms as one. thanks , Mor. Quote Link to comment Share on other sites More sharing options...
prasanthmj Posted September 16, 2010 Share Posted September 16, 2010 Why not put all those options in to one form? The link below may be useful How to create a multi-submit form Quote Link to comment Share on other sites More sharing options...
Psycho Posted September 16, 2010 Share Posted September 16, 2010 i want to make 5 forms in 1 page. each form will have 2 options of radio buttons . and i want to make only 1 submit button to send all the 5 forms as one. That makes no sense. As prasanthmj stated, why not have one form with the various radio buttons. You can present the radio buttns in such a way as they look like five different forms. If you were to explain exactly what you were trying to achieve it would be easier to provide a solution. The only thing that would possibly make sense for what you are asking is if the five forms are supposed to subbmit to different domains. If that is not the case then you do not need/want separate forms. If you are trying to simultaneously submit data to multiple domains then you have at least two options that I can think of. 1. Use AJAX to submit the data from the form data to the appropriate domains (this, however, doesn't require multiple forms since the logic would be handled in javascript) 2. Create one form as already proposed and create a single PHP processing page that will then repost the appropriate data to the appropriate domains. Quote Link to comment Share on other sites More sharing options...
IwnfuM Posted September 16, 2010 Author Share Posted September 16, 2010 you maybe don't get it right or I didn't explain my self good. heres what I mean : http://mrmor.beastserv.com/gettest.php?test=sdfasdf1284308423 since i have 3 questions in 1 form I can't choose 3 answers , so what i want to do it's to make 3 forms with 3 questions and than send it as one. thanks , Mor. Quote Link to comment Share on other sites More sharing options...
Psycho Posted September 16, 2010 Share Posted September 16, 2010 ... or I didn't explain my self good. Why would you give all the answers inputs the same name - across all questions? You should give them the same name for the same question. You don't give them the same name for ALL questions. So, for example, you give all the asnwers for question 1 a name such as "answer[1]", the answers for question 2 would be "answer[2]", etc. Then, the user will be able to select an answer for each question. On the receiving page you can access the answers using the appropriate names above. Example, based on the page you linked to: Question number 1 : adfasdf<br /> <input type="radio" name="answer[1]" value="good"/>adfasdf<br /> <input type="radio" name="answer[1]" value="bad"/>asdfasd<br /> <input type="radio" name="answer[1]" value="nogood"/>fasdf<br /> Question number 2 : sdafasd<br /> <input type="radio" name="answer[2]" value="good"/>fasd<br /> <input type="radio" name="answer[2]" value="bad"/>asdfasd<br /> <input type="radio" name="answer[2]" value="nogood"/>adfasdf<br /> Question number 3 : sadf<br /> <input type="radio" name="answer[3]" value="good"/>adfasdf<br /> <input type="radio" name="answer[3]" value="bad"/>adfasdfasdf<br /> <input type="radio" name="answer[3]" value="nogood"/>sadfasfd<br /> Quote Link to comment Share on other sites More sharing options...
IwnfuM Posted September 16, 2010 Author Share Posted September 16, 2010 it work great ! thanks , Mor . Quote Link to comment Share on other sites More sharing options...
Psycho Posted September 16, 2010 Share Posted September 16, 2010 Just to follow up, please heed the advice I gave previously. If I had provided a solution based upon how your first query was posted it would not have been what you needed. In the future provide a better description and/or details so the persons viewing your topic can understand better. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.