Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

php to vbscript conversion

Status
Not open for further replies.

captnops

IS-IT--Management
Feb 12, 2003
141
0
0
I am attempting to convert PHP code functionality for a site I am working as to vbscript. I am not a programmer, so I thought I would ask. The functionality allows frame behavior in the site without using frames (using CSS)

Here is the php:

<?php
if (!isset($_GET['page'])) $page= 'accueil'; else $page= $_GET['page'];
switch($page)
{
case 'accueil': include ('accueil.htm');break;
case 'presentation': include ('presentation.htm');break;
case 'suite':include ('suite.htm');break;
case 'fin':include ('fin.htm');break;
}
?>

Thank you
 
The asp would be something like this:
<%
Dim Page

if request("page") = "" then
Page = "accueil"
else
Page = request("page")
end if

select case Page
case "accueil"
%>
<!--#include virtual="/accueil.htm" -->
<%
case "presentation"
%>
<!--#include virtual="/presentation.htm" -->
<%
case "suite"
%>
<!--#include virtual="/suite.htm" -->
<%
case "fin"
%>
<!--#include virtual="/fin.htm" -->
<%
end select

%>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top