Scripting aid please

  • Thread starter Chris van den Heever
  • Start date
C

Chris van den Heever

I have my script from a form i wish to have send an email to the selected
email address that varies according to a lookup and I have the script from
my" isp" to allow it to work however i cant figure out where to place the
"isp"script in the form could someone please take a look and let me know

many thanks in advance!
Cheers
Chris

attached 1
My page script
"""""name="FrontPage_Form1">

<!--webbot bot="SaveResults" startspan
S-Email-Format="TEXT/PRE" S-Email-Address="&lt;&lt;Email&gt;&gt;"
B-Email-Label-Fields="TRUE" S-Date-Format="%d %B, %Y" S-Time-Format="%I:%M
%p" S-Builtin-Fields="Date Time" S-Form-Fields="Name Returnemail Request
Contactno " --><!--webbot bot="SaveResults" endspan --><p
align="center">Gotit.co.za</p><p align="center">

<!--webbot bot="DatabaseResultColumn"
s-columnnames="ID,Business,Dealing,Contactperson,Landline,Remote_computer_na
me,User_name,Browser_type,Timestamp,Resultscatagory,newsubcategory,Email,Pai
d detail,Description,Services,Address,classifieds,Website" s-column="Email"
b-tableformat="FALSE" b-hashtml="FALSE" b-makelink="FALSE" clientside
b-MenuFormat preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Email&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;" startspan
s-ColumnTypes="3,202,202,202,202,202,202,202,135,202,202,202,202,203,203,203
,202,202" --><%=FP_FieldVal(fp_rs,"Email")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="8328" --></p>

<p align="center"><font size="1">Business
Reference</font></p>

<p>Name<input type="text" name="Name"
size="34"></p><p>Email<input type="text" name="Returnemail" size="34"></p>

<p><!--webbot bot="Validation" s-display-name="enter your
request" b-value-required="TRUE" i-minimum-length="3"
i-maximum-length="100" --><textarea rows="2" name="Request"
cols="39"></textarea></p><p>Contact no<input type="text" name="Contactno"
size="27"></p><p align="center"><input type="submit" value="Submit"
name="submit"><input type="reset" value="Reset" name="B2"></p>

</form>""""""



Isp script

"""""


SMTP.UserID = "(e-mail address removed)" 'use your isat mailbox
SMTP.FromName = "A.N. Other" 'Your name
SMTP.FromAddress = "(e-mail address removed)" 'your email address
SMTP.ToAddress = Request("Email") 'recipient addresses
SMTP.Subject = Request("Name") 'Subject
SMTP.Body = _
"Name: " & Request("Name") & Chr(13) & Chr(10) & _
"Email: " & Request("EMail") & Chr(13) & Chr(10) & _
"Description: " & Request("Description")
if not SMTP.Send then
Response.Write("<p>Error: " & SMTP.Error & "</p>")
else
Response.Write("<p>Order sent.</p>")
end if
Set SMTP = Nothing
%>
</body>
</html""""""

thanks for any help
 
S

Stefan B Rusynko

Not supported by the FP Forms handler
- you need to use a Server side script (using ASP or PHP or Perl/CGI)




| I have my script from a form i wish to have send an email to the selected
| email address that varies according to a lookup and I have the script from
| my" isp" to allow it to work however i cant figure out where to place the
| "isp"script in the form could someone please take a look and let me know
|
| many thanks in advance!
| Cheers
| Chris
|
| attached 1
| My page script
| """""name="FrontPage_Form1">
|
| <!--webbot bot="SaveResults" startspan
| S-Email-Format="TEXT/PRE" S-Email-Address="&lt;&lt;Email&gt;&gt;"
| B-Email-Label-Fields="TRUE" S-Date-Format="%d %B, %Y" S-Time-Format="%I:%M
| %p" S-Builtin-Fields="Date Time" S-Form-Fields="Name Returnemail Request
| Contactno " --><!--webbot bot="SaveResults" endspan --><p
| align="center">Gotit.co.za</p><p align="center">
|
| <!--webbot bot="DatabaseResultColumn"
| s-columnnames="ID,Business,Dealing,Contactperson,Landline,Remote_computer_na
| me,User_name,Browser_type,Timestamp,Resultscatagory,newsubcategory,Email,Pai
| d detail,Description,Services,Address,classifieds,Website" s-column="Email"
| b-tableformat="FALSE" b-hashtml="FALSE" b-makelink="FALSE" clientside
| b-MenuFormat preview="&lt;font
| size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Email&lt;font
| size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;" startspan
| s-ColumnTypes="3,202,202,202,202,202,202,202,135,202,202,202,202,203,203,203
| ,202,202" --><%=FP_FieldVal(fp_rs,"Email")%><!--webbot
| bot="DatabaseResultColumn" endspan i-checksum="8328" --></p>
|
| <p align="center"><font size="1">Business
| Reference</font></p>
|
| <p>Name<input type="text" name="Name"
| size="34"></p><p>Email<input type="text" name="Returnemail" size="34"></p>
|
| <p><!--webbot bot="Validation" s-display-name="enter your
| request" b-value-required="TRUE" i-minimum-length="3"
| i-maximum-length="100" --><textarea rows="2" name="Request"
| cols="39"></textarea></p><p>Contact no<input type="text" name="Contactno"
| size="27"></p><p align="center"><input type="submit" value="Submit"
| name="submit"><input type="reset" value="Reset" name="B2"></p>
|
| </form>""""""
|
|
|
| Isp script
|
| """""
|
|
| SMTP.UserID = "(e-mail address removed)" 'use your isat mailbox
| SMTP.FromName = "A.N. Other" 'Your name
| SMTP.FromAddress = "(e-mail address removed)" 'your email address
| SMTP.ToAddress = Request("Email") 'recipient addresses
| SMTP.Subject = Request("Name") 'Subject
| SMTP.Body = _
| "Name: " & Request("Name") & Chr(13) & Chr(10) & _
| "Email: " & Request("EMail") & Chr(13) & Chr(10) & _
| "Description: " & Request("Description")
| if not SMTP.Send then
| Response.Write("<p>Error: " & SMTP.Error & "</p>")
| else
| Response.Write("<p>Order sent.</p>")
| end if
| Set SMTP = Nothing
| %>
| </body>
| </html""""""
|
| thanks for any help
|
|
 
M

MD Websunlimited

Hi Chris,

This sounds like a server side script that would be used in the action attribute of the form tag. You'll need to consult with your
ISP WPP for specific usage instructions.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top