Link to home
Start Free TrialLog in
Avatar of Jegajothy vythilingam
Jegajothy vythilingamFlag for United States of America

asked on

PHP Programming

My OS is win 7 prof 64 bit.  I am just trying to learn PHP, and am running into trouble.
Attached are 3 small files, one is Index.html, icontact.php and the other is newrighbar.php.
In the Index.html there is a email submit field, and it calls the file icontact.php.  the Form to capture the variables are in newrightbar.php.  
Alas I am at a lost on how to map the fields.  Also I am not sure whether the fields have been declared correctly.  Hope someone can please give me a hand.  
I think the code in newrightbar may be in error or even in icontact.php, but I am sure the experts looking at them can spot them.  
Thank u.
icontact.php
index.html
newrightbar.php
SOLUTION
Avatar of Frosty555
Frosty555
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jegajothy vythilingam

ASKER

In response to bigeven, Yes, the emaill is supposed to be grabbed from Index page and then processed at the rightbar.php page.  I am also working on Frosty555's suggestions.
Thank u.
In response to Frosty555's i tried your suggestion, and I just put a test email address when the Index page loaded, and when I ran your code on the rightbar.php, I got the following result :

Array ( [mail] => jothy@msn.com ) Array ( )

Now the question is how do I pass this to  the label "Your Primary Email" in the rightbar.php file.  
This email is supposed to be entered into the List at iContact.com.  The other variables like listid, etc identifies the List correctly to paste the email.
I am lost.  if u respond, please elaborate a bit.  Thank u.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of Brad Brett
Brad Brett
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
In response, Medo's recommendations are excellent, thank u.   Ray's link are equally good.  While I go thru and digest the material, any one care to help for a quick fix.  Thank u.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I would like to personally thank each and every one of u for your responses and advice.  Looks like I have a ton of material to go thru and he suggestions were excellent, thank u.
Awesome suggestions and advice.  Thank u so much.