KillZoneZ Posted August 26, 2015 Share Posted August 26, 2015 So, i've been trying to make a browser game, so i created a page with a email input so people can register to the closed beta. Then i created another php page to basically say "An email will be sent to (Email inputed on previous page here) if you are selected to (...)", so i came up with this: First Page (Where the Email is Inputed) Code: <form method="post" action="BetaRegistration.php"> <input type="email" id="email" name="email" placeholder="Type your E-mail Address here" value="<?= isset($_POST['email']) ? htmlspecialchars($_POST['email']) : '' ?>"required="required"/> <input name="submit" type="submit" value="Sign Up" id="SignUpButton"/></form> Second Page (Where the email inputed in the previous page is displayed): <p id="Introduction">An email will be sent to <strong<?php if(isset($_POST['submit'])) { echo htmlspecialchars($_POST['email']); }?></strong> if you are selected to play in the Closed Alpha. Thank You!</p> However, it doesn't work! In the second page it doesn't display the e-mail I really need help i'm new to PHP Thank You! Quote Link to comment https://forums.phpfreaks.com/topic/297935-_post-not-working/ Share on other sites More sharing options...
Solution Ch0cu3r Posted August 26, 2015 Solution Share Posted August 26, 2015 In the code you posted for the second page you have malformed HTML ... <strong<?php if(isset($_POST['submit'])) { ^ | missing closing '>' angle bracket This maybe causing the email to not display correctly. Quote Link to comment https://forums.phpfreaks.com/topic/297935-_post-not-working/#findComment-1519653 Share on other sites More sharing options...
KillZoneZ Posted August 26, 2015 Author Share Posted August 26, 2015 Oh My Gash it was... I think i shouldn't, but i find it really funny when a simple ">" makes me wonder what's wrong for hours. Thank You Very Much Quote Link to comment https://forums.phpfreaks.com/topic/297935-_post-not-working/#findComment-1519654 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.