|
Editing the files
We are going to start off with the HTML files to get you warmed up a little before tackling the
script itself. So, start your text editor, and open the files and edit them as follows:-
bnbform.html
Edit the copy in the web directory of your drive, not the original one.
Change the line that reads
<FORM METHOD="POST" ACTION="/cgi-bin/bnbform.cgi">
to
<FORM METHOD="POST" ACTION=
"http://cgi-bin.spaceports.com/~user/bnbform/bnbform.cgi">
replacing user with your real username. Don't forget the ~ character. This
is the location of the script itself.
The full URL is required, as we are calling the script from the other server.
Update Start
Find the line that reads:-
<INPUT TYPE="HIDDEN" NAME="submit_to" VALUE="yourname@domain.com">
and either delete it, or enclose it in comment tags, so it looks like:-
<!-- <INPUT TYPE="HIDDEN" NAME="submit_to" VALUE="yourname@domain.com"> -->
(Sendmail has been disabled, so there's no point trying to send the message via email).
Find the line that reads:-
<INPUT TYPE="HIDDEN" NAME="outputfile" VALUE="form1">
and change it to read:-
<INPUT TYPE="HIDDEN" NAME="outputfile" VALUE="data/form1">
Update End
Change the line that reads
<INPUT TYPE="HIDDEN" NAME="ok_url" VALUE="http://domain.com/test/thanks.html">
to
<INPUT TYPE="HIDDEN" NAME="ok_url" VALUE=
"http://io.spaceports.com/~user/bnbform/thanks.html">
replacing io with the server your website is on and user with your
username. This is so the script knows where to find the correct page after submission.
Change the line that reads
<INPUT TYPE="HIDDEN" NAME="not_ok_url" VALUE="http://domain.com/test/oops.html">
to
<INPUT TYPE="HIDDEN" NAME="not_ok_url" VALUE=
"http://io.spaceports.com/~user/bnbform/oops.html">
replacing io and user as appropriate.
Save the file!
The reasons for editing the above should be obvious to you, if you are familiar with HTML, so I
won't go into details.
The other two HTML files are fine as they are, if a trifle dull. Edit them later when this
is all working - don't get sidetracked with the details.
|