Let's think this is your HTML form in step2.php
step2.php
<form name="new user" method="post" action="step2_check.php"> <input type="text" name="mail"/> <br /> <input type="password" name="password"/><br /> <input type="submit" value="continue"/> </form>
I think this is necessary for your database, so you can assign the value of the HTML form to the php variable, now you can use the Real Escape String, and below should be your
step2_check.php
if(isset($_POST['mail']) && !empty($_POST['mail'])) { $mail = mysqli_real_escape_string($db, $_POST['mail']); }
Where $ db is your database connection.
AleksAnderson IT Apr 04 '19 at 19:09 2019-04-04 19:09
source share