noslenwerd said:
sorry.. no need to be condescending
Even as a designer and someone who has posted claiming to know some PHP - you should know what a variable is and what a variable assignment looks like.
noslenwerd 6 Apr 09 said:
I have a bit of php experience so it wasn't too bad,
The equivilant of vbScript's request.form("myField") in PHP is $_POST['myField']; and for request.querystring("myField") is $_GET['myField'];.
If you are using POST the variable assignment in VBscript is (you don't start variables with a dollar sign in VBScript):
myVar = request.form("myField")
in PHP
$myVar = $_POST['myField'];
Anyway (end rant)
----
If you implement the code I provided, you'll see how to get a value from a form on one page and insert it into a variable and output it to the screen on a second page.
Now, instead of outputting it to the screen, simply assign that variable to the appropriate field on your mailing script.
Going back to the original link I sent you
and if you have a form with a text field where you collect the TO field (say the name attribute is "tbxTo" and you are using a "POST" method):
Code:
<%
valueEntered = request.form("tbxTo") [b]' get the value[/b]
Set myMail = CreateObject("CDO.Message")
myMail.Subject = "Sending email with CDO"
myMail.From = "mymail@mydomain.com"
myMail.To = valueEntered [b]'assign it to the mailing object[/b]
myMail.TextBody = "This is a message."
myMail.Send
set myMail=nothing
%>
You may need to use one of the other examples on the w3schools page to get it working exactly how you want, I just used the first one as an example.
--------
GOOGLE is a great resource to find answers to questions like "how do i..."
If you don't know exaclty what you want to do or what to search on, try Google Suggest:
--------
I have recently been semi-converted to ensuring all my code (well most of it) works in both javascript and non-javasc