Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 73905

is there a way for me to link my php form to a confirmation page php?

$
0
0

this is the code for my form :

<!DOCTYPE html>
    <html lang="en">
    <?php include 'header.inc';?>

    <center>
<form class="form" action="/confirmation.php" method="POST">
<label for="TITLE"><h1>REGISTER</h1></label><br><br>
<label for="email">Email:</label><br>
<input type="text" id="email" name="email"><br><br>
<label for="name">Name:</label><br>
<input type="text" id="name" name="name"><br><br>
<label for="Pword">Password:</label><br>
<input type="text" id="Pword" name="Pword"><br><br>
<input type="submit" value="Submit">
</form>
</center>>
<?php include 'footer.inc';?>    

and this is my confirmation page:

<?php


<?php include 'header.inc';?>
<body>
    <h1>Thank You<?php echo $_POST["name"]; ?></h1>
    <h3>please check you email</h3>
        <?php echo $_POST["email"]; ?> 
    <h3>for further information on how to complete your setup</h3>
    <h3>Having trouble? <a href="index.php">contact us</a>></h3>
     <a href="#" class="w3-btn w3-black">return to home page</a>
</body>

<?php include 'footer.inc';?>    

I'm having trouble trying to link the register.php to the confirmation page, I tried using post or would it be better to use get method instead?


Viewing all articles
Browse latest Browse all 73905

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>