PHP form not posting submit button correctly
P粉450079266
P粉450079266 2024-04-03 12:46:54
0
1
478

I am making an application form but the form is not working. When I click the submit button, it doesn't even run the if statement to post the variables.

My form tags look like this:

<form method="post" enctype="multipart/form-data">

My submit button looks like this:

<button name="submeter" type="submit" class="btn btn-gfort">Submeter</button>

The if statement in my form looks like this:

if(isset($_POST['submeter'])) {

I even tried running the JS alert just to see if it actually made it into the if statement, but it didn't. There are no console errors either.

Thanks for any help

P粉450079266
P粉450079266

reply all(1)
P粉066224086

Have you added method="post" to the

tag?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template