php - Display users email address on form thank-you page -
php - Display users email address on form thank-you page -
i'm creating forms thank-you page, thank-you page read:
<p>an activation link beingness sent email address <b>custom-email@gmail.com</b>. if not receive it, please check spam filter. </p>
i want email address appear on thank-you page (where custom-email@gmail.com shows above).
what code need put, show this? form coded php , can seen at:
http://www.workbooks.com/sign-up/free-edition
many thanks,
sam
there answers suggestions output straight $_post/$_get unsafe, particularly if don't know how validated user input has been point. rule 1 of dealing user input - unsafe , should never trust it.
at to the lowest degree run through basic php string sanitization function filter_input. like:
<p>an activation link beingness sent email address <b><?php echo filter_input(input_post,'email',filter_validate_email) ; ?></b>. if not receive it, please check spam filter.</p>
if input not valid email address you'll "false" coming out there it's infinitely improve allowing user set whatever want on page.
php html css
Comments
Post a Comment