EDIT: Darn it, you beat me to it Chris :P
The $_POST in your main.php should be using $_GET since you're sending the vote parameter in the url, and you have two closing </form> tags.
Although, it would be much simpler to have it all on the same page. Something in this style
PHP Code:
if (isset($_POST['submit_vote'])) { // Thank you etc. } else { // show the form }
This simple checks if the form has been submited and if so says "thank you", otherwise it shows the form. The 'submit_vote' from my example should be the name of the submit button. You can ofcourse change it to what you want, as long as you add it to the button (as in <input type="submit" name="submit_vote" ... />)
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
Last edited by lizciz; 05-21-2011 at 03:43 PM..
|