Hi all,
Strange question. I have an ASP script that is simply used for handling post responses from a form. This script allows me to easily define the output of the form as html (very eleborate html layouts) and then email nicely formatted html email to specified users etc. I know I can email with blat or some other script within my embedded speedscript, but the ASP script I use works extremely well for sending nicely formatted HTML email as opposed to just text
My issue is regarding the post. On the submit of my form, I first create a record on the ACTION. Thats easy enough within my speedscript to simply call the form itself or another file to CREATE the record, At the same time, however, the action must also do a post to my ASP file with form values which sends sends the email.
I've tried an Onload feature, so when I submit the form, It creates the record with speedscript, and if Request_method = "post" The Onload changes the form action. Doesnt work.
<!--WSS if request_method eq "post" then do:-->
<body onLoad="postform();">
<form name="myform" method=post action="myfile.asp">
<script language="javascript">
function postform(){
document.myform.value="yes";
document.myform.submit();
}
</script>
<!--WSS end. else do:-->
Is there a way to define a post and action within speedscript? Any help is appreciated.
Strange question. I have an ASP script that is simply used for handling post responses from a form. This script allows me to easily define the output of the form as html (very eleborate html layouts) and then email nicely formatted html email to specified users etc. I know I can email with blat or some other script within my embedded speedscript, but the ASP script I use works extremely well for sending nicely formatted HTML email as opposed to just text
My issue is regarding the post. On the submit of my form, I first create a record on the ACTION. Thats easy enough within my speedscript to simply call the form itself or another file to CREATE the record, At the same time, however, the action must also do a post to my ASP file with form values which sends sends the email.
I've tried an Onload feature, so when I submit the form, It creates the record with speedscript, and if Request_method = "post" The Onload changes the form action. Doesnt work.
<!--WSS if request_method eq "post" then do:-->
<body onLoad="postform();">
<form name="myform" method=post action="myfile.asp">
<script language="javascript">
function postform(){
document.myform.value="yes";
document.myform.submit();
}
</script>
<!--WSS end. else do:-->
Is there a way to define a post and action within speedscript? Any help is appreciated.