yosii Posted August 15, 2012 Share Posted August 15, 2012 i want to write the submit out of the from so i do this <input type="submit" value="send it!" name="send_simple" form="addli" /> <form id="addli" action="123.php" enctype="multipart/form-data" method="post"> <input name="userfile[]" type="file" /> <br/> <input name="userfile[]" type="file" /> <br/> <input name="userfile[]" type="file" /> <br/> </form> that not work in mobile and not send the form but if i do this <form id="addli" action="123.php" enctype="multipart/form-data" method="post"> <input type="submit" value="send it!" name="send_simple" form="addli" /> <input name="userfile[]" type="file" /> <br/> <input name="userfile[]" type="file" /> <br/> <input name="userfile[]" type="file" /> <br/> </form> this work why?? how can i do this in my mobile why this code not good thank Quote Link to comment https://forums.phpfreaks.com/topic/267148-submit-out-of-from/ Share on other sites More sharing options...
requinix Posted August 15, 2012 Share Posted August 15, 2012 Unless you use HTML 5 features, all form elements must be contained in the they go with. And unless you're doing something weird, both of those snippets will look the same. Quote Link to comment https://forums.phpfreaks.com/topic/267148-submit-out-of-from/#findComment-1369746 Share on other sites More sharing options...
xyph Posted August 16, 2012 Share Posted August 16, 2012 Why does it need to be outside of the form?! Quote Link to comment https://forums.phpfreaks.com/topic/267148-submit-out-of-from/#findComment-1369753 Share on other sites More sharing options...
jardrake Posted August 19, 2012 Share Posted August 19, 2012 You cannot submit form inputs outside the form. What if you had multiple forms? How would you decide what inputs to submit then, hence the logic of what stays in the form is sent with the form. Quote Link to comment https://forums.phpfreaks.com/topic/267148-submit-out-of-from/#findComment-1370723 Share on other sites More sharing options...
hakimserwa Posted August 31, 2012 Share Posted August 31, 2012 http://www.w3schools.com/html/html_forms.asp Quote Link to comment https://forums.phpfreaks.com/topic/267148-submit-out-of-from/#findComment-1374169 Share on other sites More sharing options...
Christian F. Posted August 31, 2012 Share Posted August 31, 2012 Don't reference W3schools, please. Most of the information there is outdated, wrong or both. Besides, this was last replied to 12 days ago, with no further posts from the OP. I think it's fair to say it's solved a long time ago. Quote Link to comment https://forums.phpfreaks.com/topic/267148-submit-out-of-from/#findComment-1374172 Share on other sites More sharing options...
hakimserwa Posted August 31, 2012 Share Posted August 31, 2012 you know much now but tell me if you have never referenced to that site in you beginning stop thinking that every one is as good as you. yes it old but dont you think someone in feuture might use this post without creating a new one? comeon Quote Link to comment https://forums.phpfreaks.com/topic/267148-submit-out-of-from/#findComment-1374174 Share on other sites More sharing options...
White_Lily Posted August 31, 2012 Share Posted August 31, 2012 Christian, whats wrong with w3schools? Yes - Its an old site. However most of their code still validates within the set standards - so imo w3schools is the place, considering they also allow you to see snippets, and edit the code with the site. They also give simple explanations as to what the code does. Quote Link to comment https://forums.phpfreaks.com/topic/267148-submit-out-of-from/#findComment-1374198 Share on other sites More sharing options...
xyph Posted August 31, 2012 Share Posted August 31, 2012 Many people avoid w3schools on principle. They have no ties to w3, offer BS certificates, incomplete information, etc. If you Google around you'll find lots of reasons to avoid its use. There are generally better, more accurate, and more complete sources out there that aren't hard to find. Look beyond the first couple search results. Quote Link to comment https://forums.phpfreaks.com/topic/267148-submit-out-of-from/#findComment-1374240 Share on other sites More sharing options...
Christian F. Posted August 31, 2012 Share Posted August 31, 2012 hakimserwa: Even if I did reference that site in the past, and thought it gave out good advice, there is no reason for others to repeat my mistakes. Is there? Also, I know a lot of people don't know as much as I do (about web development), same as there are a lot of people who knows a whole lot more than me. It's just how things are, as no-one can know everything. Nothing joys me more than people actually willing to learn and/or share knowledge, in fact. So I don't have a problem with people not knowing, but I do expect/hope that people who're trying to help actually post accurate and correct information. Otherwise it's not helping, I'm afraid. So if I see someone posting wrongful information, I'll do my part in correcting it and clearing up any potential misunderstandings. Also, whenever someone corrects any wrongful information I've posted I've felt thankful for their corrections; That is one of the ways I've gotten to learn as much as I know these days, after all. White_Lily: Please see the site I linked to, it explains why in great detail. Especially when you consider my position on wrongful knowledge and not caring. Quote Link to comment https://forums.phpfreaks.com/topic/267148-submit-out-of-from/#findComment-1374352 Share on other sites More sharing options...
hakimserwa Posted September 1, 2012 Share Posted September 1, 2012 Sorry men but there is always a say that goes ""philosopher's work is appreciated after death"" Quote Link to comment https://forums.phpfreaks.com/topic/267148-submit-out-of-from/#findComment-1374458 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.
× Pasted as rich text. Restore formatting
Only 75 emoji are allowed.
× Your link has been automatically embedded. Display as a link instead
× Your previous content has been restored. Clear editor
× You cannot paste images directly. Upload or insert images from URL.