Click to See Complete Forum and Search --> : Help me please, just cant work this out


seeker111
09-28-2003, 06:47 PM
I am trying to use a form to send data to a website and send the same data by email. I just cant it to do both things. What am I doing wrong. Here is the code.

<form

action="mailto:homebusinessresourcec

enter@dodo.com.au" Method=post

name="emailform" onSubmit="return

validateform( this.form )"

enctype="text/plain">

<action="http://websitesubmit.hyperm

art.net/free/submit.cgi"

method="POST"><input type="hidden"

name="action" value="submit"><input

type="hidden" name="thankyou"

value="yes">



<table border="0" cellpadding="0"

cellspacing="0" width="290"

bgcolor="lightsalmon"

bordercolor="lightsalmon"><tr><td

align="center"

bgcolor="lightsalmon"><font

color="#FFFF00" size="3"

face="Verdana,Arial"><b>FREE Site

Submission!</b></font></td></tr>

<tr><td><table border="1"

cellpadding="0" width="290"

bgcolor="FFFFCC"

bordercolor="lightsalmon"><tr><td

valign="top" bgcolor="FFFFCC"

width="70"><font size="2"

face="Arial, Helvetica"

color="#000000"> URL: </font></td>

<td valign="top" bgcolor="FFFFCC"

width="220"><font size="2"

face="Arial, Helvetica,

sans-serif"><input type="text"

size="21" name="url"

value="http://"></font></td></tr>

<tr><td valign="TOP"><FONT SIZE="2"

FACE="ARIAL, HELVETICA"

COLOR="#000000"

WIDTH="70">Name:</FONT></td>

<td VALIGN="TOP"

WIDTH="220"><FONTSIZE="2"

FACE="ARIAL, HELVETICA,

SANS-SEROF"><input type="text"

name="name" size=21

value=""></FONT></td></tr>

<tr><td valign="top"><font size="2"

face="Arial, Helvetica"

color="#000000" width="70"> E-mail:

</font></td>

<td valign="top" width="220"><font

size="2" face="Arial, Helvetica,

sans-serif"><input type="text"

size="21" name="email" value="">

</font></td></tr></table></td></tr>

<tr><td align="center"

bgcolor="lightsalmon"><table

border="0" width="290"><tr><td

align="center"

bgcolor="lightsalmon"><b><font

color="#ffff00" size="1" face="Comic

Sans MS"><i>Add FREE Site Submission

on your site -</i> <a

href="http://websitesubmit.hypermart

.net/addscript.htm"><font

color="#ffff00" size="1" face="Comic

Sans MS">CLICK

HERE</font></a>!</font></b></td></tr

></table></td></tr><tr><td

align="center"><table border="0"

cellspacing="1" width="290"

bgcolor="lightsalmon"><tr><td

valign="top" bgcolor="#FFCC99"><font

color="#FFFFFF" size="2"

face="Arial, Helvetica,

sans-serif"><b>Default

Engines</b></font></td><td

valign="top" bgcolor="#FFCC99"><font

color="#FFFFFF" size="2"

face="Arial, Helvetica,

sans-serif"><b>Additional

Engines</b></font></td></tr><tr><td

align="left" valign="top"

bgcolor="#FFFFCC"><font size="1"

face="verdana, Arial, Helvetica"

color="#0000FF"><input

type="Checkbox" name="engines"

value="webtop"

checked>Aeiwi<br><input

type="Checkbox" name="engines"

value="directhit"

checked>Claymont<br><input

type="Checkbox" name="engines"

value="splat"

checked>Evisum<br><input

type="Checkbox" name="engines"

value="exactseek"

checked>ExactSeek<br><input

type="Checkbox" name="engines"

value="altavista"

checked>FindInfo<br><input

type="Checkbox" name="engines"

value="google" checked>Google<br>
<input type="Checkbox"

name="engines" value="hotbot"

checked>HotBot<br><input

type="Checkbox" name="engines"

value="noago"

checked>Noago<br><input

type="Checkbox" name="engines"

value="lycos"

checked>OnSeek<br><input

type="Checkbox" name="engines"

value="searchit"

checked>ScrubTheWeb<br><input

type="Checkbox" name="engines"

value="abacho"

checked>TryAmerica<br><input

type="checkbox" checked

name="engines"

value="wisenut">WebWizard<br></font>

</td><td align="left" valign="top"

bgcolor="#FFFFCC"><font size="1"

face="Arial, Helvetica"

color="#0000FF"><input

type="Checkbox" name="engines"

value="acoon">Acoon (.de)<br><input

type="Checkbox" name="engines"

value="fireball">Fireball

(.de)<br><input type="Checkbox"

name="engines"

value="altavista-au">Google-ca<br><i

nput type="Checkbox" name="engines"

value="hotbot-uk">HotBot-uk<br><inpu

t type="Checkbox" name="engines"

value="entireweb">SearchEngine<br><i

nput type="Checkbox" name="engines"

value="lycos-de">Sympatico<br><input

type="Checkbox" name="engines"

value="lycos-uk">Vindex<br><input

type="Checkbox" name="engines"

value="voila">Voila (.fr)<br><input

type="Checkbox" name="engines"

value="webwombat">WebWombat (.au

.nz)</font>
<p align="center"><font

color="#FF0000" size="2"

face="Arial, Helvetica"><br><font

color="#FF0000" size="1"

face="Arial, Helvetica">Powered by

</font><a

href="http://websitesubmit.hypermart

.net/"><font color="#00aa00"

size="1" face="Arial,

Helvetica">1-2-3 Submit

PRO</font></a></font>

</p></td></tr></table></td></tr><tr>

<td><table border="0"

cellpadding="10" cellspacing="0"

width="290" bgcolor="lightsalmon"

align="center"><tr><td

align="center"><center> <input

type="submit" value=" Submit Your

Site! ">

</center></td></tr></table></td></tr

></table></form></form></center>

Jona
09-28-2003, 07:00 PM
You will have to set the CGI script up so that it will do both...

[J]ona

seeker111
09-28-2003, 07:05 PM
Well, yes I sorta figured that was whatI had to do, but hoiw do I go about doing that, can anybody help me with the code please.

Jona
09-28-2003, 07:07 PM
I'd suggest asking for help in the CGI forum... Also, you'll need to post the code that is currently in the script.

[J]ona

hazza
09-28-2003, 07:30 PM
Dood

Firstly can I recommend that you read the guidelines of using the forum... you'll find that you will get a lot more help.

Try this:

<form action="http://websitesubmit.hypermart.net/free/submit.cgi" Method="post" name="emailform" onSubmit="return validateform( this.form )" >

form contents here

</form>

seeker111
09-28-2003, 07:31 PM
There is no script for this, they both work fine individualy, just not together.

hazza
09-28-2003, 07:36 PM
You need to be a lot more clear about what you mean by "form to send data to a website".

Describe the situation

seeker111
09-28-2003, 07:50 PM
ok, I am using a form which allows people to submit their website to searchengines, the persons url and email is sent to a website that then puts them in the search engines, what I want to do is to add a name field and then have the name and email address enailedto me at the same time the site submission is happening. I am trying to use a form to do these 2 actions

<form

action="mailto:homebusinessresourcec

enter@dodo.com.au" Method=post

name="emailform" onSubmit="return

validateform( this.form )"

enctype="text/plain">


<action="http://websitesubmit.hyperm

art.net/free/submit.cgi"

method="POST"><input type="hidden"

name="action" value="submit"><input

type="hidden" name="thankyou"

value="yes">


I'm very new to this, so may not be explaining myself properly

hazza
09-28-2003, 08:10 PM
a form can only ever have one action. so if you are going to point to a cgi script then this is where you need to send the email to yourself.

Submit this same question in the cgi forum.

Jona
09-28-2003, 09:11 PM
Yes, you cannot have a form inside of another form.

[J]ona