Jump to content

[SOLVED] PHP inside a print<<<


Lamez

Recommended Posts

ok I want to know how can I add a php block inside a php block?

 

here is my code

<?php
$getlink = $_GET["process"];

if ($getlink == "signup") { //the registration form
print <<<SU

<div class="box">
<h4>Register</h4>
  <form action="_bin_/register.php" method="post" onSubmit="return validate()">
    <p class="center">Note: Marked <font color="#000099">*</font> are required</p>
    <p class="center">Username: <font color="#000099">*</font><br />
    <input type="text" name="username" size="20">
    <br />
    <br />
    Password: <font color="#000099">*</font><br />
    <input type="password" name="password" size="20" maxlength="12"> 
<br />
<br />
Verify Password: <font color="#000099">*</font><br />
<input type="password" name="password2" size="20" maxlenth="12">
    <br />
    <br />
    First Name:<br />
    <input type="text" name="name1" size="20">
    <br />
    <br />
    Email: <font color="#000099">*</font><br />
    <input type="text" name="email" size="20">    
    <br />
    <br />
//need to add a php code here for security capatcha<br />
    Security Code:<font color="#000099">*</font>
    <input id="security_code" name="security_code" type="text" autocomplete='off' />
<br />
<br />
    <input type="submit" value="Sign Up">
   </p>  
</form>
</div>
SU;

}else{

print <<<HERE
<div class="ann">
   <p class="center">
Welcome Soon To Be User, before sigining up you will have to provide a correct e-mail address, we do not check to make sure it is correct,    we assume. We    need your e-mail address incase you ever loose your password, and so we can e-mail you important updates. So please provide a correct e-mail address.
   </p>
     <p class="center">-Lamez</p>
     <p class="center"><a href="?process=signup">Continue!</a></p>
  </div>
HERE;
}
?>

 

I need to add this in my script

 

<?php dsp_crypt(0,1); ?>

where I commented the line about adding a php code.

 

 

any ideas? Was I clear enough?

Link to comment
https://forums.phpfreaks.com/topic/71475-solved-php-inside-a-print/
Share on other sites

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.