Hi,
I'm really new to the php community. Please provide some helps on calling a php webservice within a html file.
Thank you,
needhelpdude
Hi,
I'm really new to the php community. Please provide some helps on calling a php webservice within a html file.
Thank you,
needhelpdude
Not sure if this will help, but HTML is a static page. HTML with AJAX is dynamic, but can be complex when dealing with certain items. PHP is a server-side language. You can't "call" a PHP function from an HTML page without using either Javascript or an SSI Include to include a php file. To interface with the response from the web app you either need some hefty javascript or another PHP file.
Maybe I should put it more clearly. I intend to create a html page (.html) for each new member. And everytime anyone opens one of the html pages, the html should call a php web service (.php) which would update a record into the mySQL. Could you tell me how exactly should I embed the call inside the html page? Thank you.
Okay, so even still, you can't call a PHP function or service from a STATIC HTML page. You have to use either PHP, or AJAX to call the item. So either (1) convert the .html pages to .php and have them include a one-liner call to the web-app or (2) include a basic javascript call to the PHP script that doesn't see a response.
Got it. Thank you very much, bpat1434.
needhelpdude