Home › Forums › Back End › Try out my first PHP web app! › Reply To: Try out my first PHP web app!
August 25, 2014 at 7:57 am
#180496
Participant
"<input type='submit' class='posttitle' value='".$title."'>"
Say your post title was “You’re the Best”. If you put that $title
into your html above, you get this:
<input type='submit' class='posttitle' value='You're the Best'>
The value
is now “You”, there are three nonsense attributes (re
, the
, and Best
), and then there’s an extra trailing quote. See the problem? How could you fix that?