I have a form like below on my index page:
<form action="send.php" method="POST">
<b>Your name :</b> <input type="text" name="name"><br>
<b>Your e-mail :</b> <input type="text" name="email"><br>
<b>Message</b><br><textarea name="message"></textarea>
<input type="submit" value="Send">
</form>
When I click the submit button, it posts the values on the index form still instead of navigating to send.php
/index.php?name=chris&email=heymega%40gmail.com&message=HELLO!
Notice how its still on the index page. Any ideas why this is happening?
Both files exist in the root directory.
Ok really taking a shot in the dark here since you said that it isnt nested in anyother forms and that it “still” sends to index.php that you need to press ctrl+F5 to refresh the possibly cached version of this page.
If that doesn’t work then post your complete html code with the javascript.