visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

Languages :: PHP :: call a phtml page stored on a web server from a browser


By: PHP newbee U.S.A.  Date: 06/10/2003 00:00:00  English  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 English  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 English  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 English  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

EContact
browser fav
page generated in 335.234880 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page