|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
Problem to submit a form
Hello i have a problem that several ppl cant submit form to get another webpage.
The form itself is simple and it should be correct: <form action="leht.php?id=1" method="post" name="start"> <input type="submit" value="RULES AND CONDITIONS. START" class="nupp"> </form> This form goes another page leht.php?id=1 but sometimes it aint go just hangs in the same page. What could be wrong. You can check it out yourself from http://quiz.mfa.ee/. Give me information if it aint work and maybe you can explaine too. I would very appreciate it! Thank you alot! |
|
#2
|
|||
|
|||
|
RE: Problem to submit a form
I tried refreshing it a couple of times and see no problem with it -- IE6 SP1.
What browser are you using? [edit]I tried using Opera and it works fine, too. I guess it's not a server-side problem but instead something with your browser...[/edit] |
|
#3
|
|||
|
|||
|
RE: Problem to submit a form
Well realy I dont know what side the error is but the strangest thing is that I had IE6 too and it worked fine! Others have mainly IE5.5 so I decided to uninstall IE6 and try IE5.0 but the darn thing still worked in my computer with IE5.0, when the others had IE5.5 and screamed about it, that it doesnt work.
And the problem gomes and goes dont know how! Strange was also that when they can't submit form they cant get the GET parameters like they would ignore them. When i but in to url something http://quiz.mfa.ee/link.php?id=1 then it did'nt do anything!!! Some browsers work in mysteriouse ways and sometimes they work like a smooth codfish balls! |
|
#4
|
|||
|
|||
|
RE: Problem to submit a form
yeah, it is a known problem with some browsers when you use get variables in url, and you try to post to it, just like you did with
<form method="post" action="/dir/post.php?blah=truc"> there is realy not much you can do.. if you can avoid using get variables in this case, or change url to smth like /dir/post.php/blah/truc and later, read variables from $_SERVER['PATH_INFO'] variable... (btw, whach out for relative links to other pages (and images) from that page, since base url will be /dir/post.php/blah/ and if you link to second.php, it will try to fetch /dir/post.php/blah/second.php which is bad) |
|
#5
|
|||
|
|||
|
RE: Problem to submit a form
never ever ever mix get variables with post variables!
If you want to sent the additional var id in your form, put it in a hidden field: <form action="leht.php" method="post" name="start"> <input type="hidden" name="id" value="1" /> <input type="submit" value="RULES AND CONDITIONS. START" class="nupp"> </form> and get it in your script using $_POST['id'] instead of $_GET['id'] |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Problem to submit a form |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|