Languages :: PHP :: call a phtml page stored on a web server from a browser |
|||
| By: PHP newbee |
Date: 06/10/2003 00:00:00 |
Points: 80 | Status: Answered Quality : Excellent |
|
Hi, I'm very new to PHP and need to know how to do the following. I have this Apache web server. Stored on it are our phtml pages. Now say I have a browser opened and it has a 'Next button'. When clicked it will retrieve a certain page from the web server. How do you do this in PHP ? thanks ..Joe |
|||
| By: VGR | Date: 06/10/2003 16:19:00 | Type : Answer |
|
| you simply generate appropriate HTML code like : <input type=button name=nextbutton value="Next" onClick="window.location.href='nextpage.phtml';"> NB : usually, that kind of links are pointing towards the same PHP script passing an action=next,previous,first etc and the script react accordingly on reload (server-side navigation). Here, it's a client-side navigation |
|||
| By: jvize | Date: 08/10/2003 00:48:00 | Type : Comment |
|
| But will this find say 'Final_Page.phtml' on a remote server ? Would I not have to include <A HREF="http://www.SomeServer/SomeDirectory/Final_Page.phtml...?">www.SomeServer/SomeDirectory/Final_Page.phtml...?</a> Also there seems to be no reference to PHP ( <PHP....../>Do i not need to use this scripting language to call a remote web page on a web server? Remember I'm new to this so the actual code would be brilliant thanks |
|||
| By: VGR | Date: 08/10/2003 17:01:00 | Type : Comment |
|
| 1) yes, use <A HREF="http://">http://</a>... 2) no, what I gave you is a 100% (D)HTML code 3) it IS the actual code I don't understand you problem. You've phtml files (what a strange idea for an extension ;-). Cool. And you want to go on "next" button press to a page on a different server ? No problem, but then what is the purpose of YOUR PHP site if it goes to an other's ? |
|||
|
Do register to be able to answer |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








