Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POST variables end up as GET variables #72

Closed
patrickhno opened this issue Jun 20, 2011 · 2 comments
Closed

POST variables end up as GET variables #72

patrickhno opened this issue Jun 20, 2011 · 2 comments

Comments

@patrickhno
Copy link

I have this HTML:

<form action'rollout_edit.php?sign=$sign' id='editform' method='POST'>
                < .... input fields .... >
                <input type='submit' value='Lagre endringer'>
</form>

And click the link with 'click_link'

And the apache log shows:

127.0.0.1 - - [21/Jun/2011:19:23:31 +0200] "GET /rollout/rollout_edit.php?mode=SAVE&name=TESTNAME&adr=TESTADR&pno=0870&city=Oslo&municipality=Oslo&max_speed =512&comm=Cucumber+test&tk_sign=&length_to_tk= HTTP/1.1" 200 598

And sign is neither in the POST or GET variables.

(All the variables in the apache log are input fields.)

@Nerian
Copy link
Contributor

Nerian commented Jun 22, 2011

There is not an equal '=' sign after the action method.

This should work:

<form action='rollout_edit.php?sign=$sign' id='editform' method='POST'>
            < .... input fields .... >
            <input type='submit' value='Lagre endringer'>
</form>

@patrickhno
Copy link
Author

That is quite correct!
Firefox/selenium somehow figure it out anyways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants