Username: Posted October 17, 2010 Share Posted October 17, 2010 print("<form name='form1' method='post' action='create-b.php' enctype='application/x-www-form-urlencoded' style='margin:0px'> <input type='hidden' name='time' value='werwRG/443gooa22a04c0c2d46c802cc7e3b262398852$glg/WE?F'> <input name='name' value='Anonymous' type='text' MAXLENGTH='15' style='position:absolute;width:650px;left:67px;top:142px;z-index:11'> <input name='subject' value='(No subject)' MAXLENGTH='15' type='text' style='position:absolute;width:650px;left:67px;top:166px;z-index:11'> <textarea name='body' MAXLENGTH='255' type='text' style='position:absolute;left:67px;top:191px;width:650px;height:98px;z-index:11'></textarea> <input name='submit' type='submit' value='Create thread' style='position:absolute;left:614px;top:291px;z-index:11'> <div id='captcha' style='position:absolute; overflow:hidden; left:10px; top:296px; z-index:10'> require_once('captc/recaptchalib.php'); $publickey = '*******************************************'; echo recaptcha_get_html($publickey); </form> </div>"); How can I make the highlighted text be read as PHP and not just text? It has to be in the form tags... before you reply saying you forgot the php tags, no i didn't. I can't use php tags inside php tags... Quote Link to comment https://forums.phpfreaks.com/topic/216057-print-forms/ Share on other sites More sharing options...
ngreenwood6 Posted October 17, 2010 Share Posted October 17, 2010 just move what is not needed to be inside the print statement outside....try this: require_once('captc/recaptchalib.php'); $publickey = '*******************************************'; print("<form name='form1' method='post' action='create-b.php' enctype='application/x-www-form-urlencoded' style='margin:0px'> <input type='hidden' name='time' value='werwRG/443gooa22a04c0c2d46c802cc7e3b262398852$glg/WE?F'> <input name='name' value='Anonymous' type='text' MAXLENGTH='15' style='position:absolute;width:650px;left:67px;top:142px;z-index:11'> <input name='subject' value='(No subject)' MAXLENGTH='15' type='text' style='position:absolute;width:650px;left:67px;top:166px;z-index:11'> <textarea name='body' MAXLENGTH='255' type='text' style='position:absolute;left:67px;top:191px;width:650px;height:98px;z-index:11'></textarea> <input name='submit' type='submit' value='Create thread' style='position:absolute;left:614px;top:291px;z-index:11'> <div id='captcha' style='position:absolute; overflow:hidden; left:10px; top:296px; z-index:10'>".recaptcha_get_html($publickey)." </form> </div>"); Quote Link to comment https://forums.phpfreaks.com/topic/216057-print-forms/#findComment-1122890 Share on other sites More sharing options...
Username: Posted October 17, 2010 Author Share Posted October 17, 2010 >It has to be in the form tags... Sorry I am retard . I get it now, thanks! EDIT: Works great! Solved Quote Link to comment https://forums.phpfreaks.com/topic/216057-print-forms/#findComment-1122891 Share on other sites More sharing options...
ngreenwood6 Posted October 17, 2010 Share Posted October 17, 2010 lol so does that mean you have it working now? Quote Link to comment https://forums.phpfreaks.com/topic/216057-print-forms/#findComment-1122892 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.