PDA

View Full Version : LoadVariablesNum Question....



thisnamesux
September 29th, 2005, 05:14 AM
Hi there,
i've got a form, which i then would like to send using asp (CDO)
anyway, it works a dream when i use the following:

GetUrl("processForm.asp",0,"post");

however when u use:

loadVariables("processForm.asp",0,"post");

It does nothing.
any ideas? the problem with GetURL is that it opens the scrpt in another window, which isnt ideal.

the code in processForm.asp is:

<%@language = "VBScript" %>
<%
strName = Request.Form("FirstName")
strEmail = Request.Form("Email")
strAddress = Request.Form("Address")
strPostCode = Request.Form("Postcode")
strPhone = Request.Form("Phone")
strService = Request.Form("service")
strComments = Request.Form("ToComments")
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Contact from Vibe Site"
myMail.From=""
myMail.To="thisaddressiscrap@hotmail.com"
myMail.HTMLBody =
"<h1>This was submitted on the Vibe Fitness Site:</h1><p><strong>Name: </strong>"&strName&"<br><strong>Email Address: </strong>"&strEmail&"<br><strong>Address: </strong>"&strAddress&"<br><strong>Postcode: </strong>"&strPostCode&"<br><strong>Phone: </strong>"&strPhone&"<BR><strong>Service: </strong>"&strService&"<br><strong>Comments: </strong>"&strComments
myMail.Send
set myMail=nothing
%>


alex

icleric
September 29th, 2005, 05:25 AM
its kinda not clear.
it should be MovieClipName.loadVariables("processForm.asp","post");
or try sendAndLoad

thisnamesux
September 29th, 2005, 05:36 AM
Basically i want to send the data that is entered on the form to an asp script.

when i use GetUrl, it works fine... but opens up in a seperate window...
i want it to use LoadVariablesNum to "use" the script in the backgroud to send it.