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