|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
Call PHP from HTML
Relative PHP newbie....
Can you call a PHP script from an HTML file and have it return something? I have a small area on a HTML web page that I want to dislay some data returned by a PHP program. Is there anyway to call and get text returned from an html file besides using a form? thanks, TGW |
|
#2
|
|||
|
|||
|
RE: Call PHP from HTML
If this HTML area is a html frame you can call a php script in src tag
zareef ahmed |
|
#3
|
|||
|
|||
|
RE: Call PHP from HTML
Hi zareef,
No this is not a frame. I have php code that retrieves a stock quote and want to put that quote inside of a small rectangular area on the page. The page is an existing html and I did not want to change it to a php page..... TGW |
|
#4
|
|||
|
|||
|
RE: Call PHP from HTML
If you dont mind using js, make everything you echo in php begin with:
document.write(' and end with: '); then add: <SCRIPT language=JavaScript src="yourpage.php"></SCRIPT> |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Call PHP from HTML |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|