vurentjie Posted May 25, 2008 Share Posted May 25, 2008 hi, i have a form on a page was well as a button panel that scrolls along with the form, as it is really long, i am having a bit of a problem submitting the form, i dont think the hidden fields are being passed through, what happens is the button gets clicked and i fire a document.form.submit(), from here php takes over and (is supposed to ) collect the information; the method of the form is post-so this might be one of the problems. what i have tried is document.form.action='?id=98574395375394&place="+seven+"' but this means i need to use get method, now I am attempting to set the hidden fields in the form, athough i dont think this is going to help as they are already set to the correct values, this is my first time trying to submit form with javascript, so any advice or pointers appreciated? Quote Link to comment Share on other sites More sharing options...
vurentjie Posted May 25, 2008 Author Share Posted May 25, 2008 ok after running some tests, the input fields get submitted, however the hidden fields do not, hmmm,gonna go check that out Quote Link to comment Share on other sites More sharing options...
vurentjie Posted May 25, 2008 Author Share Posted May 25, 2008 never mind i did fix it, it had nothing to do with the hidden fields not being sent, actually had to do wit one of my conditionals for updating, basically one of my check params was if <input type='submit' name='save'/> was being submitted before updating, however i had change this to <input type='button' name='save' /> so now it wasnt posting the name, so i add that name as a hidden field and hey presto! 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.