Newbie Needs Help Echoing PHP HTML and PHP CODE
Posted: Tue Jan 31, 2012 12:32 pm
Okay, I am a PHP programming newbie but I am having a lot of fun learning and implementing it however I have hid a roadblock and as a result my website is not performing as well. Basically ai am trying to ECHO php and html code on a webpage. I know this is not easy. Basically this is what I am trying to do:
A customer fills in an html web form. That data is then sent to a MYSQL database. In addition: after the data is sent I am using PHP IF statements to display an "Approved" logo on the following page that is displayed if certain "application" conditions are met. And then once the "APPROVED" logo is displayed after it is clicked they are taken to another html form where they can input their secure credit card details for payment. This information is then stored in a seperate MYSQL table. So when a customer comes in they make 2 records in 2 different tables. The first is their application and second is their payment details in a seperate table.
Because of the volumes of orders I get sometimes it is difficult to figure out what payment details go to what customer (application) so I am trying to incorporate an "APPID" variable on the application that goes through to the payment page. So I can lookup the application data from a seperate table from the data in their payment table. What I want to do is make a php variable echo in the HTML link of the Appoved logo. Something like this. http://MYDOAMIN.com/paymentpage.php?appid=$POST_APPID however I cannot get that working. So instead what I did was make a cookie of the APPID and get the cooking information on the payment page but about a third of the time that does not work due to cookies being disabled.
What can I do here?
A customer fills in an html web form. That data is then sent to a MYSQL database. In addition: after the data is sent I am using PHP IF statements to display an "Approved" logo on the following page that is displayed if certain "application" conditions are met. And then once the "APPROVED" logo is displayed after it is clicked they are taken to another html form where they can input their secure credit card details for payment. This information is then stored in a seperate MYSQL table. So when a customer comes in they make 2 records in 2 different tables. The first is their application and second is their payment details in a seperate table.
Because of the volumes of orders I get sometimes it is difficult to figure out what payment details go to what customer (application) so I am trying to incorporate an "APPID" variable on the application that goes through to the payment page. So I can lookup the application data from a seperate table from the data in their payment table. What I want to do is make a php variable echo in the HTML link of the Appoved logo. Something like this. http://MYDOAMIN.com/paymentpage.php?appid=$POST_APPID however I cannot get that working. So instead what I did was make a cookie of the APPID and get the cooking information on the payment page but about a third of the time that does not work due to cookies being disabled.
What can I do here?