Click to See Complete Forum and Search --> : I know a form cant do 2 actions, but thats what I need to do.
seeker111
09-28-2003, 08:49 PM
Firstly I'd like to apologise for my previous post.. I have a form that submits peoples websites to search engines, I also want the info that is submited with the site subbmission to be emailed to me, how do I go abotu this
<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">
this what I am trying to use now, though I know kkknow I cant do two actions in a form, how do I get around this.
Thanks
Brett
Aronya1
09-29-2003, 12:32 PM
What about editing your CGI script to email the data to you?
Aronya1, that seems to be seeker111's dilema, according to the action of the site-submission form, it appears that he is using a ready-made free-hosted script of which he has no configuration capabilities...
<form action="http://websitesubmit.hypermart.net/free/submit.cgi" method="POST">
Aronya1
09-29-2003, 01:12 PM
Originally posted by CyCo
Aronya1, that seems to be seeker111's dilema, according to the action of the site-submission form, it appears that he is using a ready-made free-hosted script of which he has no configuration capabilities...
<form action="http://websitesubmit.hypermart.net/free/submit.cgi" method="POST">
"I see," said the blind man. In other words, the script isn't on his site, so he can't make changes?
sclark
09-29-2003, 03:01 PM
Why not just use a bit of javascript to submit two forms. Something like this:
<SCRIPT LANGUAGE="JavaScript">
<!--
function doit(){
document.moveme.submit();
document.moveyou.submit();
}
-->
</SCRIPT>
<FORM METHOD=POST ACTION="/cgi-bin/yourscript.pl" NAME="moveme" >
<INPUT TYPE="text" VALUE="Enter your email address here">
<INPUT TYPE=BUTTON VALUE="Go" onClick=doit()>
</FORM>
<FORM METHOD=POST ACTION="cgi-bin/yourscript.pl" NAME="moveyou" >
<INPUT TYPE="hidden" VALUE="whatever">
</FORM>
Then, the user would submit the first form, and the JS function would then submit both the hidden and visible form. Just a thought...
SA Heat
10-04-2003, 06:15 PM
I asked the same question in the java script forum, I have a form and want it to save it as a file in my web shell that it currently does as a savefile.txt and I also want it to send me by e-mail as well. I tried many tags such as <FORM action=/cgi-bin/script_library/form_handler_file method=post,mail> before the form and at the end I put <INPUT type=hidden
value=johndoe@stic.net name=email_to>
It didnt work