Lamez Posted October 2, 2007 Share Posted October 2, 2007 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? Quote Link to comment https://forums.phpfreaks.com/topic/71475-solved-php-inside-a-print/ Share on other sites More sharing options...
teng84 Posted October 2, 2007 Share Posted October 2, 2007 you can add that any where depending on the usage of that codes Quote Link to comment https://forums.phpfreaks.com/topic/71475-solved-php-inside-a-print/#findComment-359803 Share on other sites More sharing options...
Lamez Posted October 2, 2007 Author Share Posted October 2, 2007 yea when I add it though it displays it as written, not as it was intended to do. Quote Link to comment https://forums.phpfreaks.com/topic/71475-solved-php-inside-a-print/#findComment-359807 Share on other sites More sharing options...
teng84 Posted October 2, 2007 Share Posted October 2, 2007 what do you expect to happen ?? Quote Link to comment https://forums.phpfreaks.com/topic/71475-solved-php-inside-a-print/#findComment-359809 Share on other sites More sharing options...
Lamez Posted October 2, 2007 Author Share Posted October 2, 2007 An image to appear its for my captcha. Quote Link to comment https://forums.phpfreaks.com/topic/71475-solved-php-inside-a-print/#findComment-359811 Share on other sites More sharing options...
teng84 Posted October 2, 2007 Share Posted October 2, 2007 you can put that any where but, to have that thing work you have to include that file having the function Quote Link to comment https://forums.phpfreaks.com/topic/71475-solved-php-inside-a-print/#findComment-359815 Share on other sites More sharing options...
Lamez Posted October 2, 2007 Author Share Posted October 2, 2007 I did look at the first couple lines of the code <?php $cryptinstall="_bin_/crypt/./cryptographp.fct.php"; include $cryptinstall; ?> Quote Link to comment https://forums.phpfreaks.com/topic/71475-solved-php-inside-a-print/#findComment-359818 Share on other sites More sharing options...
Lamez Posted October 2, 2007 Author Share Posted October 2, 2007 I fixed it with includes! Quote Link to comment https://forums.phpfreaks.com/topic/71475-solved-php-inside-a-print/#findComment-359826 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.