Problems with PHP code tag

  • whatlikesit12345
  • Guru
  • Guru
  • User avatar
  • Joined: Dec 22, 2003
  • Posts: 1215
  • Status: Offline

Post February 20th, 2005, 12:27 pm

In my topic here


I have php included in my post. Well in the first post it added an ?> at the end thats not there so its throwing off people. Next in my latest post in that topic it didn't include 1 \ even though it is there. So is there something that can be done about it. because its leaving out stuff that could be important.

example.

PHP Code: [ Select ]
<INPUT TYPE="radio" NAME="grade" VALUE="9" CHECKED>9th
 
<INPUT TYPE="radio" NAME="grade" VALUE="10">10th
 
<INPUT TYPE="radio" NAME="grade" VALUE="11">11th
 
<INPUT TYPE="radio" NAME="grade" VALUE="12">12th
  1. <INPUT TYPE="radio" NAME="grade" VALUE="9" CHECKED>9th
  2.  
  3. <INPUT TYPE="radio" NAME="grade" VALUE="10">10th
  4.  
  5. <INPUT TYPE="radio" NAME="grade" VALUE="11">11th
  6.  
  7. <INPUT TYPE="radio" NAME="grade" VALUE="12">12th


see the closing ?>. its not there. here is the code thats in the php tag.

Code: [ Select ]
<INPUT TYPE="radio" NAME="grade" VALUE="9" CHECKED>9th
<INPUT TYPE="radio" NAME="grade" VALUE="10">10th
<INPUT TYPE="radio" NAME="grade" VALUE="11">11th
<INPUT TYPE="radio" NAME="grade" VALUE="12">12th
  1. <INPUT TYPE="radio" NAME="grade" VALUE="9" CHECKED>9th
  2. <INPUT TYPE="radio" NAME="grade" VALUE="10">10th
  3. <INPUT TYPE="radio" NAME="grade" VALUE="11">11th
  4. <INPUT TYPE="radio" NAME="grade" VALUE="12">12th


so is there anything that can be done?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post February 20th, 2005, 12:27 pm

  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8925
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post February 20th, 2005, 2:58 pm

The problem is the excerpt you are only posting is not PHP, it is just HTML. Post the entire function or code and it should be better, or simply use the code tag instead.
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • whatlikesit12345
  • Guru
  • Guru
  • User avatar
  • Joined: Dec 22, 2003
  • Posts: 1215
  • Status: Offline

Post February 20th, 2005, 4:25 pm

o, well it was inside a echo so i just thought i could. ok now i know

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 28 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.