Problems with PHP code tag

  • whatlikesit12345
  • Guru
  • Guru
  • User avatar
  • Posts: 1211

Post 3+ Months Ago

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?
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9099
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

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.
  • whatlikesit12345
  • Guru
  • Guru
  • User avatar
  • Posts: 1211

Post 3+ Months Ago

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 1 guest
  • 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.