proctk Posted September 19, 2007 Share Posted September 19, 2007 Hi I have a form within a form and when I submit one of the forms it freezes the browser. Can I change the below code to submit to make sure that it only submit the form numItems <form name="numItems" method="post" action="<?php $_SERVER['PHP_SELF']; ?>"> <select name="numItems" id="numItems" onchange="this.form.submit()"> Quote Link to comment https://forums.phpfreaks.com/topic/69963-form-within-a-form/ Share on other sites More sharing options...
Barand Posted September 19, 2007 Share Posted September 19, 2007 AFAIK, HTML does not permit nesting of forms within forms. Quote Link to comment https://forums.phpfreaks.com/topic/69963-form-within-a-form/#findComment-351425 Share on other sites More sharing options...
fanfavorite Posted September 19, 2007 Share Posted September 19, 2007 What is the need for a form within a form? Like Barand said it is invalid code to do this. If you need to get information from fields, you should use AJAX Quote Link to comment https://forums.phpfreaks.com/topic/69963-form-within-a-form/#findComment-351481 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.