Locked

Posting code in this forum

LEGEND ,
May 03, 2009 May 03, 2009

Copy link to clipboard

Copied

When posting code in this forum, do NOT use "Insert Raw HTML". Use Syntax Highlighting > Plain instead, as shown here:

syntax_highlighting.png

You can also paste code directly into your post. However, using Syntax Highlighting > Plain has the advantage of preserving code formatting like this:

<h1>User Login</h1>
<form id="form1" name="form1" method="POST" action="<?php echo $loginFormAction; ?>">
  <p>
    <label for="username">Username:</label>
    <input type="text" name="username" id="username" />
  </p>
  <p>
    <label for="pwd">Password:</label>
<input type="password" name="pwd" id="pwd" />
  </p>
  <p>
<input type="submit" name="doLogin" id="doLogin" value="Login" />
  </p>
</form>

If you use "Insert Raw HTML", the forum interprets the tags as HTML, in effect hiding your code. This is the same code entered using "Insert Raw HTML":

<h1>User Login</h1>
<form id="form1" name="form1" method="POST" action="<?php echo $loginFormAction; ?>">
  <p>
    <label for="username">Username:</label>
    <input type="text" name="username" id="username" />
  </p>
  <p>
    <label for="pwd">Password:</label>
<input type="password" name="pwd" id="pwd" />
  </p>
  <p>
<input type="submit" name="doLogin" id="doLogin" value="Login" />
  </p>
</form>

Views

25.0K

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines