Jump to content

Looking code for simple php website


harryfs

Recommended Posts

Looking code for simple php website. Logo, menu, three pages. I got code for menu but stuck on logo and how to create three pages and how to upload on hosting account. Code for menu. <html><body><a href="url">Home</a> - <a href="url/about.php">About Us</a> - <a href="url/contact.php">Contact Us</a> - <a href="url/privacy.php">Privacy</a> <br /><html><body>

post-121796-0-82193900-1360474062_thumb.png

Edited by harryfs
Link to comment
Share on other sites

What is your menu code? Will you be having dynamic content? I'd have one main index.php page and load in some content for the two other pages. Post us your code please. Regards, Lab.

Link to comment
Share on other sites

<html><body><a href="url">Home</a> -<a href="url/about.php">About Us</a> -<a href="url/contact.php">Contact Us</a> -<a href="url/privacy.php">Privacy</a> <br /><html><body>
Firstly i recommend you to go learn bit html, there is awesome tutorial by w3schools. If you would learned bit html you would know that you havent closed either your body or html tag. And body tag will be closed before html tag.http://w3schools.com/html/default.asp http://w3schools.com/css/default.asp
<html><body><a href="url">Home</a> -<a href="url/about.php">About Us</a> -<a href="url/contact.php">Contact Us</a> -<a href="url/privacy.php">Privacy</a> <br /></body></html>

Secondly you should learn what is FTP client and how to use it. Many websites use this method to upload files.

Here would be bit basic code for you, but you have to learn css + html to modify it. Name the file to index.php or index.html depending do you want it to be php page or html page.

<html><head><title>My very first page</title><style>* {margin:0;padding:0;}#everything {margin: 0 auto;width:1000px;margin-top:30px;text-align:center;}#navigation {width:1000px;text-align:center;font-size:24px;font-weight:bold;}footer {font-size:12px;margin-top:35px;}</style></head><body><div id="everything"><div id="content"><div id="logo"><img src="http://newmediaangels.com/wp-content/uploads/2013/01/Your-Logo-Here-Black-2.jpg" width="800px" height="200px"></div><div id="navigation"><a href="index.php">Home</a> -<a href="about.php">About Us</a> -<a href="contact.php">Contact Us</a> -<a href="privacy.php">Privacy</a></div><hr style="margin: 0 auto;width:600px;margin-top:10px;"><p>Welcome to my new websites, hope you enjoying viewing it.</p><footer>© 2013 Yourname</footer></div></div><html><body>

Also this code doesn't have to be php unless you want add some login script to it or include files for easier editing.

Edited by Mudsaf
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...