<div id="nav">
      <form action="login.php" method="post" name="login" target="_self" id="login" style="style.css" title="login"><br />
          <input type="text" name="user" id="user" />
          <input type="text" name="password" id="password" />
          <li><a href="#">Homepage</a></li>
			<li><a href="#">Blog</a></li>
			<li><a href="#">About</a></li>
			<li><a href="#">Contact</a></li>
   <div id="content">
      <div id="content1">Content for  id "content1" Goes Here</div>
      <div id="content2">Content for  id "content2" Goes Here</div>
      <div id="content3">Content for  id "content3" Goes Here</div>


I am trying to create adequate position navigation bar, The navigation bar in the code above appears to be too high. Whenever I try to move the position lower for instance cut and paste it outside of the form, the following errors appears:

A sharing violation occurred while accessing C:\xampp\htdocs\php_template2\index.php

Why is it?

5 Years
Discussion Span
Last Post by diafol

Normally this error comes in pc if file you are trying to access is already used by some another app.
You mean to say when you copy paste some html tag this error comes?


Yuk! You need to sit down with a CSS tutorial. All those empty <p> tags. The style attribute in the form should have attribute/values NOT filenames, Also you don't do this:

<div id="content1">Content for  id "content1" Goes Here</div>

Quotes in content MUST be encoded:

<div id="content1">Content for  id &quot;content1&quot; Goes Here</div>

In addition, you're using list items without the list container (e.g. <ul> or <ol>).

Again, perhaps you need to study basic HTML before attempting php.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.