Forums

Include PHP with API

eugenevz 17 Feb, 2010
Hi

I have a PHP file with API code. This PHP file subscribes the from user to 3rd party newsletter service. This PHP work perfectly if I execute in url ie. <!-- w --><a class="postlink" href="http://www.xx.com/subscribe.php">www.xx.com/subscribe.php</a><!-- w -->

BUT

1. When I insert the file using include ('subscribe.php'); the data does not get submitted to 3rd party. Are their special instructions?
2. How would I post the info user form to subscribe.php ie First Name...will this work? $_Post = ['First_Name'];?

Thanks Chrono is the best!

Eugene
GreyHead 17 Feb, 2010
Hi Eugene,

It really depends what is in the subscribe.php file. Can you send me a copy to look at?

Bob
This topic is locked and no more replies can be posted.