Title: page HTML
Last modified: August 20, 2016

---

# page HTML

 *  [mrhussein](https://wordpress.org/support/users/mrhussein/)
 * (@mrhussein)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/page-html/)
 * hi 🙂
 * i have created new page in WP and chose HTML and enter the following code:
 *     ```
       <html>
       <head>
       <script type="text/javascript">
       function showUser(str)
       {
       if (str=="")
         {
         document.getElementById("txtHint").innerHTML="";
         return;
         }
       if (window.XMLHttpRequest)
         {// code for IE7+, Firefox, Chrome, Opera, Safari
         xmlhttp=new XMLHttpRequest();
         }
       else
         {// code for IE6, IE5
         xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
         }
       xmlhttp.onreadystatechange=function()
         {
         if (xmlhttp.readyState==4 && xmlhttp.status==200)
           {
           document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
           }
         }
       xmlhttp.open("GET","http://localhost:14296/getuser.php?q="+str,true);
       xmlhttp.send();
   
       }
       </script>
       </head>
       <body>
   
       <form>
       <select name="users" onchange="showUser(this.value)">
       <option value="">Select a person:</option>
       <option value="1">1</option>
       <option value="2">2</option>
       <option value="3">3</option>
       <option value="4">4</option>
       </select>
       </form>
       <br />
       <div id="txtHint"><b>Person info will be listed here.</b></div>
   
       </body>
       </html>
       ```
   
 * but im getting error in displaying the pge in the status bar (Done, with errors)
 * so could you help me how to solve this
 * thanks 🙂

Viewing 1 replies (of 1 total)

 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [13 years, 8 months ago](https://wordpress.org/support/topic/page-html/#post-3077713)
 * Putting raw HTML into the WordPress post editor is always a tricky thing to do
   and that snippet with the `<html><head>` … `</html>` just will not work. Also
   referencing something via localhost will break if you don’t actually have that
   on your PC or Mac.
 * If you want to insert something like that into a page then give these links a
   read.
 * [http://codex.wordpress.org/Pages#Page_Templates](http://codex.wordpress.org/Pages#Page_Templates)
 * [http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates](http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates)
 * When you are ready to create your page then you can apply that new template to
   the page.

Viewing 1 replies (of 1 total)

The topic ‘page HTML’ is closed to new replies.

## Tags

 * [ajax](https://wordpress.org/support/topic-tag/ajax/)
 * [html](https://wordpress.org/support/topic-tag/html/)
 * [page](https://wordpress.org/support/topic-tag/page/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/page-html/#post-3077713)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
