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

Hi,

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?

Recommended Answers

All 2 Replies

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?

Member Avatar for diafol

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.