HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
How to show contents on a web server not supporting php
Post new topic   Reply to topic    HTML Help Forum Index -> DHTML
View previous topic :: View next topic  
Author Message
aaah



Joined: 15 Jul 2005
Posts: 2

PostPosted: Fri Jul 15, 2005 10:10 pm     How to show contents on a web server not supporting php Reply with quote

Hello friends

I'd like to show a ip-to-country mapping result which is produced on my php supporting server, such as
www.media-interface.biz/ipmatch.php
to a web site which only supports html, not cgi nor php. I thought about using frameset but this is not so pretty as the other web address is visible in the source code in t he frame src= line. The core problem is how to output the variables current values, in this case, visitor's country name and the flag (php variables such as $nameofcountry and $nationalflag ), in the target web page. Using form is excluded because form must be activated by clicks by the user, therefore it doesn't work automatically, besides ip address which is inevitably sent to the web server, there's no necessities for the users to do anything in this case.
The php supporting server can get the visitor's ip address everytime the page is visited on the php non supporting server as the page name such as index.html being redirected to the remote php supporting server page using htaccess redirect directive. This server returns, depending on the country, a correct page in php's header command. In this page can be easily included the country name and flag variables with the current values for the visitor.
On the php non supporting side, I'd prefer showing these in a table structure so I can show them where I want. frameset is very rigid and also the scrollbar issues are not pretty, too.
Do you have any idea?


Last edited by aaah on Sat Jul 30, 2005 6:27 am; edited 1 time in total
degsy



Joined: 23 Feb 2005
Posts: 2440
Location: North East, UK

PostPosted: Sat Jul 16, 2005 5:09 am     Reply with quote

If your server does not support PHP then your only option is Frames.
aaah



Joined: 15 Jul 2005
Posts: 2

PostPosted: Sat Jul 16, 2005 6:00 am     Re: how to show ... properly Reply with quote

Thanks for your reply!
Yes I was thinking that frame is the only answer even though the link to a remote server is visible in the source code.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> DHTML All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial