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

Link to comment
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.