The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Try out my first PHP web app! Reply To: Try out my first PHP web app!

"<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?