Search Engine Submission HTML Coding Help?

  • Thread starter Thread starter Joseph W
  • Start date Start date
J

Joseph W

Guest
Where can I find an html code I can add to my site so other viewers can submit their site? Also what are some site where I can submit my site to search engine cheap?
 
both of those will not come in only html, you MUST have php and a database to store information in.
with php, a user can submit something like this:
<form method='post' action='../submit.php'>
<input type='text' name='site' value='http://' />
<input type='text' name='author' value=' />
<input type='submit'>
</form>
That was an example... on the php page (..submit.php for example), youll need something like this script:
<?php
$author = $_POST['author']
$site = $_POST['site'] (['site'] being the name of the input where its grabbing.)
then: mysql_query("INSERT INTO `user_submitted_site` (`site`,`author`) VALUES ($site, $author);

If you have no clue what I'm talking about, learn php at w3schools.com (as well as learning sql).
 
Back
Top