I have a newsletter script that allows me to integrate it with my shopping cart, but it is not that easy...well not for me!
I want to add the name and email from the orders, which use the variables: $ordName and $ordEmail in the shopping cart, to the php script provided by newsletter script coder, but can't figure out how.
Here is the script, I should use for integration, provided by the newsletter script coder:
//RegisterProspect function will send all information to register.cgi
//Here is exaple of using this fuction
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, 1);
I have made it work as a test by simply uncommenting the fourth line: "//RegisterProspect('firstname.lastname@example.org','John Doe');" and the sample data was added to my newsletter list.
However, I don't want to add "email@example.com" and "John Doe" to my newsletter list since that was only a test with some samples. So, my questions are:[/B]
- [B]How can I grab the contents from the order itself knowing that the variables I am supposed to use are $ordName and $ordEmail ?
- [B]How could I transfer/add those order variables automatically to the function on the fourth line?
Thanks in advance!