Reputation: 5141
I am using PHP and MySql and running inside of VS.PHP. I have written the following:
<form action="../register.php" method="post">
<input type="button" value="Submit" id="submit" />
</form>
But when I click, nothing actually happens. Am I not allowed to use relative paths for actions?
Upvotes: 0
Views: 4423
Reputation: 69937
You need to change
<input type="button" value="Submit" id="submit" />
to
<input type="submit" value="Submit" id="submit" />
The button input type is mostly used with javascript, but will not submit your form automatically.
EDIT:
Here is a reference on the input button tag
Upvotes: 5