View Full Version : Could somebody help me convert ASP to PHP?
DrToaster
September 10th, 2007, 10:08 AM
Hey
I was wondering if anybody could help me convert ASP to PHP. I know only the very basic stuff so I'm pretty lost. Thanks in advance.
:cross-eye
simplistik
September 10th, 2007, 10:55 AM
uhh... could you be more specific?
Digitalosophy
September 10th, 2007, 12:40 PM
yea really, what do you want to convert?
DrToaster
September 10th, 2007, 02:15 PM
I don't really understand this but the code looks like HTML
heres a sample
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<!-- motori INIZIO -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>example</title>
<!-- motori FINE -->
<script language="javascript" type="text/javascript" src="../script.js"></script>
<link rel="stylesheet" type="text/css" href="../style.css">
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" class="table_x100">
<tr>
<td align="center" valign="top" class="sf_bottom"><table width="955" border="0" cellpadding="0" cellspacing="0" class="table_Hx100">
<tr>
<td><table width="955" border="0" cellpadding="0" cellspacing="0" class="table_Hx100">
<tr>
<td class="sf_logo"><a href="index.asp" title="www.example.it" onMouseOver="MM_showHideLayers('sub-modelli','','hide');MM_showHideLayers('sub-azienda','','hide');MM_showHideLayers('sub-people','','hide');MM_showHideLayers('sub-usato','','hide');MM_showHideLayers('sub-media','','hide')"><img src="../images/struttura/example_by_bruno_bate.gif" alt="example" width="209" height="60" border="0"></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="400" align="center" valign="top"><table width="953" border="0" cellpadding="0" cellspacing="0" class="cornice">
<tr>
<td height="14" colspan="3" valign="top"><img src="../images/struttura/spacer.gif" alt="example" width="1" height="14"></td>
</tr>
<tr>
<td width="14" rowspan="2"><img src="../images/struttura/spacer.gif" alt="example" width="14" height="1"></td>
<td height="348" valign="top"><div id="container">
<div class="subMenu" id="sub-modelli">
<table border="0" cellpadding="0" cellspacing="0" class="table_Wx100">
<tr>
<td height="25" align="center" valign="top"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25" valign="middle"><a href="offshore.asp?L1=1&L2=1" title="offshore">offshore</a></td>
<td valign="middle"><a href="speedster.asp?L1=1&L2=2" title="Speedster">Speedster</a></td>
<td valign="middle"><a href="artp.asp?L1=1&L2=3" title="artp - artp pinia">artp - artp pinia</a></td>
<td valign="middle"><a href="best_seller.asp?L1=1&L2=4" title="Best seller">Best seller</a></td>
<td valign="middle" class="chiusura"><a href="special_edition.asp?L1=1&L2=5" title="Special edition">Special edition</a></td>
</tr>
</table></td>
</tr>
</table>
</div>
<div class="subMenu" id="sub-azienda">
<table border="0" cellpadding="0" cellspacing="0" class="table_Wx100">
<tr>
<td height="25" align="center" valign="top"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25" valign="middle"><a href="tecnologia_e_tradizione1.asp?L1=2&L2=6" title="Tecnologia e tradizione">Tecnologia e tradizione</a></td>
<td valign="middle"><a href="centri_produttivi.asp?L1=2&L2=7" title="Centri produttivi">Centri produttivi</a></td>
<td valign="middle"><a href="vocazione_sportiva1.asp?L1=2&L2=8" title="Vocazione sportiva">Vocazione sportiva</a></td>
<td valign="middle"><a href="passaggi_d_autore1.asp?L1=2&L2=9" title="Passaggi d'autore">Passaggi d'autore</a></td>
<td valign="middle" class="chiusura"><a href="museo.asp?L1=2&L2=10" title="Museo">Museo</a></td>
</tr>
</table></td>
</tr>
</table>
</div>
<div class="subMenu" id="sub-people">
<table border="0" cellpadding="0" cellspacing="0" class="table_Wx100">
<tr>
<td height="25" align="center" valign="top"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25" valign="middle"><a href="example_trophy.asp?L1=4&L2=15" title="example trophy">example trophy</a></td>
<td valign="middle"><a href="eventi.asp?L1=4&L2=16" title="Eventi">Eventi</a></td>
<td valign="middle" class="chiusura"><a href="example_people_2006.pdf" title="example people 2006" target="_blank">example people 2006</a></td>
</tr>
</table></td>
</tr>
</table>
</div>
<div class="subMenu" id="sub-usato">
<table border="0" cellpadding="0" cellspacing="0" class="table_Wx100">
<tr>
<td height="25" align="center" valign="top"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25" valign="middle"><a href="usato_example.asp?L1=5&L2=17" title="example">example</a></td>
<td valign="middle" class="chiusura"><a href="usato_altri_cantieri.asp?L1=5&L2=18" title="Altri cantieri">Altri cantieri</a></td>
</tr>
</table></td>
</tr>
</table>
</div>
<div class="subMenu" id="sub-media">
<table border="0" cellpadding="0" cellspacing="0" class="table_Wx100">
<tr>
<td height="25" align="center" valign="top"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25" valign="middle"><a href="comunicati_stampa.asp?L1=7&L2=19" title="Comunicati stampa">Comunicati stampa</a></td>
<td valign="middle"><a href="archivio_foto.asp?L1=7&L2=20" title="Archivio foto">Archivio foto</a></td>
<td valign="middle" class="chiusura"><a href="ricevi_info.asp?L1=7&L2=21" title="Ricevi info">Ricevi info</a></td>
</tr>
</table></td>
</tr>
</table>
</div>
</div>
<table width="921" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="cornice">
<tr>
<td height="346" class="sf_images"> </td>
</tr>
</table></td>
<td width="14" rowspan="2"><img src="../images/struttura/spacer.gif" alt="example" width="14" height="1"></td>
</tr>
<tr>
<td height="35" align="center" valign="top"><script language="javascript" type="text/javascript">
MM_preloadImages('../images/struttura/nav/modelli_hover.gif','../images/struttura/nav/azienda_hover.gif','../images/struttura/nav/example_hover.gif','../images/struttura/nav/people_hover.gif','../images/struttura/nav/usato_hover.gif','../images/struttura/nav/area_clienti_hover.gif','../images/struttura/nav/media_hover.gif');
</script>
<table border="0" cellspacing="3" cellpadding="0">
<tr valign="top">
<td height="29" valign="bottom"><a href="#" onMouseOver="MM_swapImage('modelli','','../images/struttura/nav/modelli_hover.gif',1);MM_showHideLayers('sub-modelli','','show');MM_showHideLayers('sub-azienda','','hide');MM_showHideLayers('sub-people','','hide');MM_showHideLayers('sub-usato','','hide');MM_showHideLayers('sub-media','','hide')" onMouseOut="MM_swapImgRestore()"><img src="../images/struttura/nav/modelli_default.gif" alt="Modelli" name="modelli" width="59" height="20" border="0"></a></td>
<td valign="bottom"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('azienda','','../images/struttura/nav/azienda_hover.gif',1);MM_showHideLayers('sub-azienda','','show');MM_showHideLayers('sub-modelli','','hide');MM_showHideLayers('sub-people','','hide');MM_showHideLayers('sub-usato','','hide');MM_showHideLayers('sub-media','','hide')"><img src="../images/struttura/nav/azienda_default.gif" alt="Azienda" name="azienda" width="59" height="20" border="0"></a></td>
<td valign="bottom"><a href="example.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('example','','../images/struttura/nav/example_hover.gif',1);MM_showHideLayers('sub-modelli','','hide');MM_showHideLayers('sub-azienda','','hide');MM_showHideLayers('sub-people','','hide');MM_showHideLayers('sub-usato','','hide');MM_showHideLayers('sub-media','','hide')"><img src="../images/struttura/nav/example_default.gif" alt="example in the world" name="example" width="135" height="20" border="0"></a></td>
<td valign="bottom"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('people','','../images/struttura/nav/people_hover.gif',1);MM_showHideLayers('sub-people','','show');MM_showHideLayers('sub-modelli','','hide');MM_showHideLayers('sub-azienda','','hide');MM_showHideLayers('sub-usato','','hide');MM_showHideLayers('sub-media','','hide')"><img src="../images/struttura/nav/people_default.gif" alt="People" name="people" width="56" height="20" border="0"></a></td>
<td valign="bottom"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('usato','','../images/struttura/nav/usato_hover.gif',1);MM_showHideLayers('sub-usato','','show');MM_showHideLayers('sub-modelli','','hide');MM_showHideLayers('sub-azienda','','hide');MM_showHideLayers('sub-people','','hide');MM_showHideLayers('sub-media','','hide')"><img src="../images/struttura/nav/usato_default.gif" alt="Usato" name="usato" width="103" height="20" border="0"></a></td>
<td valign="bottom"><a href="../europrivate/" target="_blank" onMouseOver="MM_swapImage('area_clienti','','../images/struttura/nav/area_clienti_hover.gif',1);MM_showHideLayers('sub-modelli','','hide');MM_showHideLayers('sub-azienda','','hide');MM_showHideLayers('sub-people','','hide');MM_showHideLayers('sub-usato','','hide');MM_showHideLayers('sub-media','','hide')" onMouseOut="MM_swapImgRestore()"><img src="../images/struttura/nav/area_clienti_default.gif" alt="Area clienti" name="area_clienti" width="81" height="20" border="0"></a></td>
<td valign="bottom"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_showHideLayers('sub-media','','show');MM_swapImage('media','','../images/struttura/nav/media_hover.gif',1);MM_showHideLayers('sub-modelli','','hide');MM_showHideLayers('sub-azienda','','hide');MM_showHideLayers('sub-people','','hide');MM_showHideLayers('sub-usato','','hide')"><img src="../images/struttura/nav/media_default.gif" alt="Media" name="media" width="49" height="20" border="0"></a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="bottom" class="table_Hx100 linea_bottom">
<table width="955" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="10" align="center"><table width="760" border="0" cellspacing="10" cellpadding="0">
<tr>
<td height="23" class="bottom"><a href="http://www.example.it" title="example S.r.l.">example S.r.l.</a> - hey<br>
Tel.(+32) 4311.31.58.1 - Fax (+23) 5411.31.03.5 - <a href="mailto:example@example.it" title="example@example.it">example@example.it</a></td>
<td width="1" bgcolor="#DDDDDD"><img src="../images/struttura/spacer.gif" alt="example" width="1" height="1"></td>
<td class="bottom">P.IVA 01853580130<br>
<a href="privacy.asp" title="Privacy Policy">Privacy Policy</a></td>
<td width="1" bgcolor="#DDDDDD"><img src="../images/struttura/spacer.gif" alt="example" width="1" height="1"></td>
<td><table border="0" cellspacing="5" cellpadding="0">
<tr>
<td><a href="italiano/" title="ITALIANO"><img src="../images/struttura/lingue/it_hover.gif" alt="IT" width="12" height="12" border="0"></a></td>
<td><a href="../inglese/index.asp" title="ENGLISH"><img src="../images/struttura/lingue/uk_default.gif" alt="UK" width="16" height="12" border="0"></a></td>
<td><a href="#" title="ESPANOL"><img src="../images/struttura/lingue/es_default.gif" alt="ES" width="14" height="12" border="0"></a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="25" align="center" valign="top"><table border="0" cellpadding="0" cellspacing="0" class="menuBottom">
<tr>
<td><a href="index.asp" title="home" class="selected">home</a></td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
Since my webhost is running Linux, I can't use ASP, correct?
Digitalosophy
September 10th, 2007, 02:18 PM
There's not a single line of ASP code in the above post.
MTsoul
September 10th, 2007, 02:18 PM
There is no asp in there. There are only links to asp pages.
Darrrr digital beat me to it.
Digitalosophy
September 10th, 2007, 02:20 PM
^ yea and the variables in the links are hard coded so I'm completely baffled.
DrToaster
September 10th, 2007, 09:04 PM
I'm also confused
All the pages I got (which includes the pages that are linked) look very similar to the one I posted above. The links seem to lead to ASP pages though. If I just changed the file extension to .html it wouldn't work correctly would it?
How does ASP work? Does the original file on the webserver stay in ASP while the pages we view on the browser get converted to html?
Thanks for you help guys.
kaykays
September 11th, 2007, 12:43 AM
Conversion from ASP to PHP requires the knowledge of both scripting languages.
If the sites are database-driven, it also requires the additional knowledge
of mysql and SQL Server or Access.
There are some automatic programs (see asp2php.naken.cc) to
convert ASP Code to PHP Code. But as in any conversion,
the output is not perfect and requires considerable rework,
understanding of the original code and matching with
converted code, filling out the missing pieces and testing.
If it is a hobby site, you may study asp/php at w3schools,
and try it yourself. You will learn both asp/php in the process.
We have done a similar work earlier. If you need professional help,
PM me with details.
hl
September 11th, 2007, 01:38 AM
Depends on the content of the pages. You probably could just change the extension to .html for most of them by the looks of it.
kaykays
September 11th, 2007, 08:14 AM
Many of the Links have 2 parameters L1 & L2.
archivio_foto.asp?L1=7&L2=20
artp.asp?L1=1&L2=3
best_seller.asp?L1=1&L2=4
centri_produttivi.asp?L1=2&L2=7
comunicati_stampa.asp?L1=7&L2=19
eventi.asp?L1=4&L2=16
example_trophy.asp?L1=4&L2=15
museo.asp?L1=2&L2=10
offshore.asp?L1=1&L2=1
passaggi_d_autore1.asp?L1=2&L2=9
ricevi_info.asp?L1=7&L2=21
special_edition.asp?L1=1&L2=5
speedster.asp?L1=1&L2=2
tecnologia_e_tradizione1.asp?L1=2&L2=6
usato_altri_cantieri.asp?L1=5&L2=18
usato_example.asp?L1=5&L2=17
vocazione_sportiva1.asp?L1=2&L2=8
If these paramaters have any siginificance, simple change of
extension to .html will not work for these.
Digitalosophy
September 11th, 2007, 09:56 AM
^ yup. You would have to check and see if other pages are expecting a query string variable.
Look for something like
my = Request.QueryString("L1")
If so that variable is being used.
DrToaster
September 11th, 2007, 01:13 PM
Ok I'm going to take a look
Theres a box/area/page in the middle of the main page which is were the content is loaded. Could those parameters be telling it to load the content pages in that middle section?
Digitalosophy
September 11th, 2007, 02:04 PM
Show me this page for example
archivio_foto.asp
DrToaster
September 11th, 2007, 02:23 PM
Archivio_foto:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<!-- motori INIZIO -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Example</title>
<!-- motori FINE -->
<script language="javascript" type="text/javascript" src="../script.js"></script>
<link rel="stylesheet" type="text/css" href="../style.css">
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" class="table_x100">
<tr>
<td align="center" valign="top" class="sf_bottom"><table width="955" border="0" cellpadding="0" cellspacing="0" class="table_Hx100">
<tr>
<td><table width="955" border="0" cellpadding="0" cellspacing="0" class="table_Hx100">
<tr>
<td class="sf_logo"><a href="index.asp" title="www.Example.it" onMouseOver="MM_showHideLayers('sub-modelli','','hide');MM_showHideLayers('sub-azienda','','hide');MM_showHideLayers('sub-people','','hide');MM_showHideLayers('sub-usato','','hide');MM_showHideLayers('sub-media','','hide')"><img src="../images/struttura/Example_by_bruno_bate.gif" alt="Example" width="209" height="60" border="0"></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="400" align="center" valign="top"><table width="953" border="0" cellpadding="0" cellspacing="0" class="cornice">
<tr>
<td height="14" colspan="3" valign="top"><img src="../images/struttura/spacer.gif" alt="Example" width="1" height="14"></td>
</tr>
<tr>
<td width="14" rowspan="2"><img src="../images/struttura/spacer.gif" alt="Example" width="14" height="1"></td>
<td height="348" valign="top"><div id="container">
<div class="subMenu" id="sub-modelli">
<table border="0" cellpadding="0" cellspacing="0" class="table_Wx100">
<tr>
<td height="25" align="center" valign="top"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25" valign="middle"><a href="offshore.asp?L1=1&L2=1" title="Offshore">Offshore</a></td>
<td valign="middle"><a href="speedster.asp?L1=1&L2=2" title="Speedster">Speedster</a></td>
<td valign="middle"><a href="artp.asp?L1=1&L2=3" title="artp - artp prim">artp - artp prim</a></td>
<td valign="middle"><a href="best_seller.asp?L1=1&L2=4" title="Best seller">Best seller</a></td>
<td valign="middle" class="chiusura"><a href="special_edition.asp?L1=1&L2=5" title="Special edition">Special edition</a></td>
</tr>
</table></td>
</tr>
</table>
</div>
<div class="subMenu" id="sub-azienda">
<table border="0" cellpadding="0" cellspacing="0" class="table_Wx100">
<tr>
<td height="25" align="center" valign="top"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25" valign="middle"><a href="tecnologia_e_tradizione1.asp?L1=2&L2=6" title="Tecnologia e tradizione">Tecnologia e tradizione</a></td>
<td valign="middle"><a href="centri_produttivi.asp?L1=2&L2=7" title="Centri produttivi">Centri produttivi</a></td>
<td valign="middle"><a href="vocazione_sportiva1.asp?L1=2&L2=8" title="Vocazione sportiva">Vocazione sportiva</a></td>
<td valign="middle"><a href="passaggi_d_autore1.asp?L1=2&L2=9" title="Passaggi d'autore">Passaggi d'autore</a></td>
<td valign="middle" class="chiusura"><a href="museo.asp?L1=2&L2=10" title="Museo">Museo</a></td>
</tr>
</table></td>
</tr>
</table>
</div>
<div class="subMenu" id="sub-people">
<table border="0" cellpadding="0" cellspacing="0" class="table_Wx100">
<tr>
<td height="25" align="center" valign="top"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25" valign="middle"><a href="Example_trophy.asp?L1=4&L2=15" title="Example trophy">Example trophy</a></td>
<td valign="middle"><a href="eventi.asp?L1=4&L2=16" title="Eventi">Eventi</a></td>
<td valign="middle" class="chiusura"><a href="Example_people_2006.pdf" title="Example people 2006" target="_blank">Example people 2006</a></td>
</tr>
</table></td>
</tr>
</table>
</div>
<div class="subMenu" id="sub-usato">
<table border="0" cellpadding="0" cellspacing="0" class="table_Wx100">
<tr>
<td height="25" align="center" valign="top"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25" valign="middle"><a href="usato_Example.asp?L1=5&L2=17" title="Example">Example</a></td>
<td valign="middle" class="chiusura"><a href="usato_altri_cantieri.asp?L1=5&L2=18" title="Altri cantieri">Altri cantieri</a></td>
</tr>
</table></td>
</tr>
</table>
</div>
<div class="subMenu" id="sub-media">
<table border="0" cellpadding="0" cellspacing="0" class="table_Wx100">
<tr>
<td height="25" align="center" valign="top"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25" valign="middle"><a href="comunicati_stampa.asp?L1=7&L2=19" title="Comunicati stampa">Comunicati stampa</a></td>
<td valign="middle"><a href="archivio_foto.asp?L1=7&L2=20" title="Archivio foto">Archivio foto</a></td>
<td valign="middle" class="chiusura"><a href="ricevi_info.asp?L1=7&L2=21" title="Ricevi info">Ricevi info</a></td>
</tr>
</table></td>
</tr>
</table>
</div>
</div>
<table width="921" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="cornice">
<tr>
<td height="346" valign="top"><iframe src="iframe_archivio_foto.asp" name="" align="top" scrolling="yes" class="layout"></iframe></td>
</tr>
</table></td>
<td width="14" rowspan="2"><img src="../images/struttura/spacer.gif" alt="Example" width="14" height="1"></td>
</tr>
<tr>
<td height="35" align="center" valign="top"><script language="javascript" type="text/javascript">
MM_preloadImages('../images/struttura/nav/modelli_hover.gif','../images/struttura/nav/azienda_hover.gif','../images/struttura/nav/Example_hover.gif','../images/struttura/nav/people_hover.gif','../images/struttura/nav/usato_hover.gif','../images/struttura/nav/area_clienti_hover.gif','../images/struttura/nav/media_hover.gif');
</script>
<table border="0" cellspacing="3" cellpadding="0">
<tr valign="top">
<td height="29" valign="bottom"><a href="#" onMouseOver="MM_swapImage('modelli','','../images/struttura/nav/modelli_hover.gif',1);MM_showHideLayers('sub-modelli','','show');MM_showHideLayers('sub-azienda','','hide');MM_showHideLayers('sub-people','','hide');MM_showHideLayers('sub-usato','','hide');MM_showHideLayers('sub-media','','hide')" onMouseOut="MM_swapImgRestore()"><img src="../images/struttura/nav/modelli_default.gif" alt="Modelli" name="modelli" width="59" height="20" border="0"></a></td>
<td valign="bottom"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('azienda','','../images/struttura/nav/azienda_hover.gif',1);MM_showHideLayers('sub-azienda','','show');MM_showHideLayers('sub-modelli','','hide');MM_showHideLayers('sub-people','','hide');MM_showHideLayers('sub-usato','','hide');MM_showHideLayers('sub-media','','hide')"><img src="../images/struttura/nav/azienda_default.gif" alt="Azienda" name="azienda" width="59" height="20" border="0"></a></td>
<td valign="bottom"><a href="Example.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Example','','../images/struttura/nav/Example_hover.gif',1);MM_showHideLayers('sub-modelli','','hide');MM_showHideLayers('sub-azienda','','hide');MM_showHideLayers('sub-people','','hide');MM_showHideLayers('sub-usato','','hide');MM_showHideLayers('sub-media','','hide')"><img src="../images/struttura/nav/Example_default.gif" alt="Example in the world" name="Example" width="135" height="20" border="0"></a></td>
<td valign="bottom"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('people','','../images/struttura/nav/people_hover.gif',1);MM_showHideLayers('sub-people','','show');MM_showHideLayers('sub-modelli','','hide');MM_showHideLayers('sub-azienda','','hide');MM_showHideLayers('sub-usato','','hide');MM_showHideLayers('sub-media','','hide')"><img src="../images/struttura/nav/people_default.gif" alt="People" name="people" width="56" height="20" border="0"></a></td>
<td valign="bottom"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('usato','','../images/struttura/nav/usato_hover.gif',1);MM_showHideLayers('sub-usato','','show');MM_showHideLayers('sub-modelli','','hide');MM_showHideLayers('sub-azienda','','hide');MM_showHideLayers('sub-people','','hide');MM_showHideLayers('sub-media','','hide')"><img src="../images/struttura/nav/usato_default.gif" alt="Usato" name="usato" width="103" height="20" border="0"></a></td>
<td valign="bottom"><a href="../europrivate/" target="_blank" onMouseOver="MM_swapImage('area_clienti','','../images/struttura/nav/area_clienti_hover.gif',1);MM_showHideLayers('sub-modelli','','hide');MM_showHideLayers('sub-azienda','','hide');MM_showHideLayers('sub-people','','hide');MM_showHideLayers('sub-usato','','hide');MM_showHideLayers('sub-media','','hide')" onMouseOut="MM_swapImgRestore()"><img src="../images/struttura/nav/area_clienti_default.gif" alt="Area clienti" name="area_clienti" width="81" height="20" border="0"></a></td>
<td valign="bottom"><a href="#" onMouseOver="MM_showHideLayers('sub-media','','show');MM_showHideLayers('sub-modelli','','hide');MM_showHideLayers('sub-azienda','','hide');MM_showHideLayers('sub-people','','hide');MM_showHideLayers('sub-usato','','hide')"><img src="../images/struttura/nav/media_hover.gif" alt="Media" name="media" width="49" height="20" border="0"></a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="bottom" class="table_Hx100 linea_bottom">
<table width="955" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="10" align="center"><table width="760" border="0" cellspacing="10" cellpadding="0">
<tr>
<td height="23" class="bottom"><a href="http://www.Example.it" title="Example S.r.l.">Example S.r.l.</a> - Test<br>
Tel.(+39) 5333.86.55.1 - Fax (+34) 3433.11.23.5 - <a href="mailto:Example@Example.it" title="Example@Example.it">Example@Example.it</a></td>
<td width="1" bgcolor="#DDDDDD"><img src="../images/struttura/spacer.gif" alt="Example" width="1" height="1"></td>
<td class="bottom">P.IVA 3423224130<br>
<a href="privacy.asp" title="Privacy Policy">Privacy Policy</a></td>
<td width="1" bgcolor="#DDDDDD"><img src="../images/struttura/spacer.gif" alt="Example" width="1" height="1"></td>
<td><table border="0" cellspacing="5" cellpadding="0">
<tr>
<td><a href="italiano/" title="ITALIANO"><img src="../images/struttura/lingue/it_hover.gif" alt="IT" width="12" height="12" border="0"></a></td>
<td><a href="../inglese/index.asp" title="ENGLISH"><img src="../images/struttura/lingue/uk_default.gif" alt="UK" width="16" height="12" border="0"></a></td>
<td><a href="#" title="ESPANOL"><img src="../images/struttura/lingue/es_default.gif" alt="ES" width="14" height="12" border="0"></a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="25" align="center" valign="top"><table border="0" cellpadding="0" cellspacing="0" class="menuBottom">
<tr>
<td><a href="index.asp" title="home" class="selected">home</a></td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
I have a couple of pages which are like this:
example.asp?page1
example.asp?page2
example.asp?page3
The pages differ from each other. Can I just move the 'page1' before the extension, rename to html and change the link that leads to it?
Digitalosophy
September 11th, 2007, 02:30 PM
The code you posted doesn't contain any ASP code either.
As far as example.asp?page1, example.asp?page2 is more then likely
example.asp?page=1, example.asp?page=2, example.asp?page=3
Basically by using a query string (what i posted above) who ever wrote this is displaying different information on one page based on what the page variable equals.
So no you cannot move the page 1 and expect this to work.
DrToaster
September 11th, 2007, 04:52 PM
I have gone through and messed around a bit and it works if I just rename the extensions to .html and also change the links to .html. In regards to that example.asp?page=01, since I have all the variations of the pages saved, I just need to rename to html like the other files and it works. Thanks for all the help guys. ;)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.