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

3
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by diafol
0

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?

1

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.