i'm trying to send the user to a page stored in a variable,
How do i do it?
i cant get it to work, the above 2 will not work, how can i do this?PHP Code:header('Location: '$ipath'.');
header('Location: '$ipath');
Printable View
i'm trying to send the user to a page stored in a variable,
How do i do it?
i cant get it to work, the above 2 will not work, how can i do this?PHP Code:header('Location: '$ipath'.');
header('Location: '$ipath');
If you use double quotes variables inside them will be executed :)Quote:
Originally Posted by Pino
Or, if you want to use the single ones:PHP Code:header("Location: $ipath");
Just remember the dot opperator (.) is to PHP what the amperstand (&) is to VB :)PHP Code:header('Location: ' . $ipath);
Cheers,
RyanJ :)
cheers bud, i managed to fix it before i looked at your reply, i'm rushing trying to get this project done so i can get paid tommorow and making silly mistakes :( thanks for the help!
does that work?PHP Code:<?php
header("Location: http://" . $ipath);
?>
All, the path contained the http etc, it was quotes were well out :( thanks anyhows