ahref.com > Guides >
Technology
Building a Site Submission Program
How to build your own site submission tool with CGI
5/25/98
by Edward Piou
In connection with our site marketing guide, I wrote a program that automatically submits your site to several major search engines for indexing. This guide will show you how to build your own such program for either personal or commercial use.
You may want to view the text of this program in a separate browser window so you can see it in its entirety while reading through this guide.
The Input Form
The form which takes in input for this program needs input boxes for two variables: the URL to be indexed (named input_url) and the email address of the person submitting the URL (named input_email). For example:
Note: This is not a functioning version of the submitter form. You'll find a working form here.
The HTML markup for this form is below. Make sure the path to the CGI bin and the filename for the program match what you've used.
<FORM METHOD="POST" ACTION="/cgi-bin/multisubmit.pl">
<B>URL:</B>
<INPUT TYPE="TEXT" NAME="input_url" SIZE="32" MAXLENGTH="200" VALUE="http://">
<BR>
<B>Your email:</B>
<INPUT TYPE="TEXT" NAME="input_email" SIZE="18" MAXLENGTH="200">
<INPUT TYPE="SUBMIT" NAME="action" VALUE="Submit">
</FORM>
|