Jump to content

form validation js/php


vurentjie

Recommended Posts

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?

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.