How to submit a form with more than 1 submit button. Sending a POST to a website. (Python)?

I had the same problem as you. A form with two submit buttons, first was preview, second was submit. At first, mechanize was using only the first button, I could see the server answer using response = browser.submit() print response.read() I put the submit button name as a parameter to the mechanize submit function, and it worked!

Response = browser. Submit("submit") Test it, it should work for you too!

This method worked for me too – user567879 May 7 at 5:02.

Problem solved. Do not use python mechanize. It won't let you send other post data.

For some reason, the post data currently in the question is NOT sufficient. There are other stuff that needs to be sent to the server. Therefore, you must use the regular opener/cookiejar method to send all the data through.

I got the additional data (besides subject, message, E, identity) from Firebug (looking at the NET).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions