This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 4
Send form to URL by POST not working as it should
Started 9 years ago by samji | 2 posts |
-
Hi,
I'm using a form to send all answers to another URL by POST, so I can use the values like I want. I've made this in Machform without any problem with 2 forms with 10 questions each, but the latest form I've made is not working as it should and it has 800 questions :)
Let me explain.
My form has 800 questions and 300 the questions has 3 multiple choice for the answers: "OK", "WRONG", "N/A". The others questions are for text and numbers.
In my PHP I have:
$pg[1] = $_POST['pg1']; //answer should be OK, WRONG or N/A
$pg_obs[1] = $_POST['pg_obs1']; //answer can be anything that the user can write
$pg_nota[1] = $_POST['pg_nota1']; //answer will be the default value of the formThe settings for pg_obs1 and pg_nota1 are correct, since I can receive these values without any problem.
But, the 'pg1' do not send the answer in the form, it does send all the time the answer "WRONG", even If I choose another OK, N/A or do not choose anything at all.
I dont know what to do, since I've made this with another forms and it worked, it also work with the other 2 variables of this form, its not working only with this question
If you need any more details, just let me know and I will try to answer :)
Thanks
SamjiPosted 9 years ago # -
OMG, I had an error in my code.
Never mind :)
Thanks
Posted 9 years ago #
Reply
You must log in to post.