Jump to content

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

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.