Jump to content

link filename get another file.


faces3

Recommended Posts

Well to start off, idk if you just forgot to paste them in but in file1.php home/1.php and home/2.php dont have semicolons at the end. It should be...

<?php 
$home['1']='home/1.php';
$home['2']='home/2.php';
?>

Second, not really sure why you have a / between "home" and 1. Just name the file home1.php. Also, just name your variables $home1 and $home2. Correct me someone if I am wrong, but I am pretty sure the 1 and 2 are only used after a variable to identify them in a common array.

 

Correction: multidimensional array, not common array

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.