JKG Posted August 11, 2011 Share Posted August 11, 2011 i have a page like <form> tonnes of php </form> the php loops aload of data and the page is admittedly pretty big and does a lot of functions. could the size of processing in within the form break it? cos when i put it like above, it doesnt work, but when i put it like below it does: tonnes of php <form> bit of php </form> just so im not misleading you, the file is only 200 lines long, inc html... thanks for reading, joe. Quote Link to comment https://forums.phpfreaks.com/topic/244525-while-loop-break-form/ Share on other sites More sharing options...
JKG Posted August 11, 2011 Author Share Posted August 11, 2011 in actual fact, it cant be the php at all. it must be something to do with this: <form method="POST" action="<?php echo $html_dir . $prerewrite . $link_send_contact . $postrewrite; ?>"> <div style="display: none;"> <div id="send-contact" style="width:400px;height:auto;overflow:auto;"> form stuff </div> </div> </form> <a href="#send-contact" class="submit" id="send-contact-button">contact these people</a> <!-- this is the trigger to open form in fancybox --> click the submit button does nothing... Quote Link to comment https://forums.phpfreaks.com/topic/244525-while-loop-break-form/#findComment-1256001 Share on other sites More sharing options...
JKG Posted August 11, 2011 Author Share Posted August 11, 2011 when you take the submit button out of the two divs it works. so, why cant you have a submit button nested in divs? or is this the fancy box playing up with it? Quote Link to comment https://forums.phpfreaks.com/topic/244525-while-loop-break-form/#findComment-1256013 Share on other sites More sharing options...
JKG Posted August 11, 2011 Author Share Posted August 11, 2011 solved: not sure why it didnt work, but just used js to send the form. src: http://jkgo.co.uk/z Quote Link to comment https://forums.phpfreaks.com/topic/244525-while-loop-break-form/#findComment-1256019 Share on other sites More sharing options...
JKG Posted August 11, 2011 Author Share Posted August 11, 2011 actually this didnt solve it. the input fields within that part of the form were not included within the post. any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/244525-while-loop-break-form/#findComment-1256026 Share on other sites More sharing options...
manix Posted August 11, 2011 Share Posted August 11, 2011 do you mind showing the input button? Quote Link to comment https://forums.phpfreaks.com/topic/244525-while-loop-break-form/#findComment-1256123 Share on other sites More sharing options...
JKG Posted August 11, 2011 Author Share Posted August 11, 2011 <input type="submit" class="submit" value="send details" /> thanks Quote Link to comment https://forums.phpfreaks.com/topic/244525-while-loop-break-form/#findComment-1256126 Share on other sites More sharing options...
manix Posted August 11, 2011 Share Posted August 11, 2011 Well in order for the submit button not to work either the form doesn't recognize it as an input button or you have an error in some javascript (jquery in particular) basically you need to backup the code and start removing things 1 by 1 just to find where the complication is. Quote Link to comment https://forums.phpfreaks.com/topic/244525-while-loop-break-form/#findComment-1256132 Share on other sites More sharing options...
JKG Posted August 12, 2011 Author Share Posted August 12, 2011 i do have jquery installed and i am using fancy box. there are no errors, but any input fields/buttons placed with this html set up are not recognised... any thoughts? <div style="display: none;"> <div id="send-contact" style="width:400px;height:auto;overflow:auto;"> 2 input fields and a submit button </div> </div> Quote Link to comment https://forums.phpfreaks.com/topic/244525-while-loop-break-form/#findComment-1256476 Share on other sites More sharing options...
manix Posted August 12, 2011 Share Posted August 12, 2011 As I said, start removing properties from your elements 1 at a time until it works, then you'll know what's screwing it up Quote Link to comment https://forums.phpfreaks.com/topic/244525-while-loop-break-form/#findComment-1256494 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.