gavenf Posted June 6, 2007 Share Posted June 6, 2007 How do I change the following code from my process page to a new page with the detials on it. I made a html page cut and pasted it into this spot but it did not work. What do I need to change in order for it to be a html page is shows. if ($AutoSend == 1) { print "<p><font size=\"2\" face=\"Verdana, Arial, Helvetica, sans-serif\">"; print "A confirmation email was sent to the email address you specified. <br>"; print "Please confirm your membership as soon as you receive the email."; print "</font></p>"; print "<p><font size=\"2\" face=\"Verdana, Arial, Helvetica, sans-serif\">"; print "Please click <a href=\"$RelLogin\">here</a> to go back to the login area"; print "</font></p>"; } Link to comment https://forums.phpfreaks.com/topic/54415-solved-changing-an-if-statement-to-html-page/ Share on other sites More sharing options...
MasterACE14 Posted June 6, 2007 Share Posted June 6, 2007 you could display it like a HTML page, when it is actually a PHP page making the page more flexible. like so... <?php //Processed Page - if $AutoSend == 1 then display $ifstatement1 $ifstatement1 = '<p><font size=\"2\" face=\"Verdana, Arial, Helvetica, sans-serif\"> A confirmation email was sent to the email address you specified. <br> Please confirm your membership as soon as you receive the email. </font></p> <p><font size=\"2\" face=\"Verdana, Arial, Helvetica, sans-serif\"> Please click <a href=\"$RelLogin\">here</a> to go back to the login area </font></p>'; if ($AutoSend == 1) { echo("$ifstatement1"); } ?> hope that helps. Regards ACE Link to comment https://forums.phpfreaks.com/topic/54415-solved-changing-an-if-statement-to-html-page/#findComment-269071 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.