Callling web page from php
|
Newbie Member
|
|
| 19Jun2011,02:08 | #1 |
|
Does anyone know af an easy way to transfer control to an HTML page from within php code?
|
|
Go4Expert Founder
|
![]() |
| 19Jun2011,08:51 | #2 |
|
Many type of transfer you can achieve. The easiest is the redirect to an html page.
|
|
Newbie Member
|
|
| 20Jun2011,01:56 | #3 |
|
what is the format of the command to do that? I am brand new to php and can barely spell php...
|
|
Newbie Member
|
|
| 20Jun2011,02:02 | #4 |
|
AHA - header command!
|
|
Ambitious contributor
|
|
| 20Jun2011,04:08 | #5 |
|
Technically speaking html doesn't do anything aside from mark up text and media to be presented on the web, css does the presentation and style, javascript does the dynamic content portion and php does the server side backend and data control. You could use ajax to do this and there exist multiple ways to do this which include 3 common methods all of which can be done via php. Theres outputting a meta refresh, javascript and the plan php redirect.
meta tag refresh HTML Code:
<meta http-equiv="refresh" content="600;url=www.mysite.com" />
Code: JavaScript
php header PHP Code:
Last edited by pein87; 20Jun2011 at 04:12.. |
|
Skilled contributor
|
![]() |
| 3Jul2011,20:51 | #6 |
|
proabably javascript is your choice because php cannot handle anything once it is parsed
so you need JS + Ajax would be a good solution if it is dynamic
Last edited by ManzZup; 3Jul2011 at 20:52.. Reason: only a part was typed |


