how can i echo a url into php include ? ?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
djcritch
Forum Newbie
Posts: 11
Joined: Thu Mar 20, 2008 5:55 am

how can i echo a url into php include ? ?

Post 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?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

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

Post by John Cartwright »

Can you explain what you are trying to do a bit more please?

(modifiers: confused x 10)
User avatar
Mini
Forum Newbie
Posts: 23
Joined: Mon Dec 04, 2006 4:39 am
Location: Netherlands

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

Post 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)
Post Reply