Jump to content

[SOLVED] Changing an if statement to html page


gavenf

Recommended Posts

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>";
}

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.