Jump to content

print forms


Username:

Recommended Posts

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...  :shrug:

 

before you reply saying you forgot the php tags, no i didn't. I can't use php tags inside php tags...

Link to comment
https://forums.phpfreaks.com/topic/216057-print-forms/
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/216057-print-forms/#findComment-1122890
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.