Page 1 of 1

how can i echo a url into php include ? ?

Posted: Thu Mar 20, 2008 8:32 am
by djcritch
Hi im trying to echo url from a form into php include on my page

here is what ive come up with

Code: Select all

 
<?php
include("echo $_SESSION['url']");
?>
 
all i get from this is an error can anyone expain how to do this?

Re: how can i echo a url into php include ? ?

Posted: Thu Mar 20, 2008 8:36 am
by John Cartwright
Can you explain what you are trying to do a bit more please?

(modifiers: confused x 10)

Re: how can i echo a url into php include ? ?

Posted: Thu Mar 20, 2008 9:16 am
by Mini
hehe It's indeed a bit wierd, I don't see why you want to have a session with a url ^^ but here is what I think that you need:

Code: Select all

<?php
include($_SESSION['url']);
?>
8)