SitePoint Sponsor |
|
User Tag List
Results 1 to 9 of 9
Thread: using many scripts
-
Jul 17, 2006, 18:23 #1
using many scripts
I was wondering if anyone could tell me how to get variables from other scripts.
Thanks. Pete
-
Jul 17, 2006, 19:01 #2
Please elaborate....
-
Jul 17, 2006, 19:03 #3
O erm.. i want to open a submitted link in a different page
-
Jul 17, 2006, 19:58 #4
like from one page to another?
you use a forum
Code:<html> <head> <title>Page1.html</title> </head> <body> <form action="Page2.php" method="get"> <input type="text" name="input" value=""> <input type="submit" value="Send!"> </form> </body> </html>
PHP Code:<?PHP
//Page2.php
echo $_GET['input'];
?>
-
Jul 18, 2006, 00:31 #5
No i mean from one php script to another php script
-
Jul 18, 2006, 03:45 #6
include the script?
-
Jul 18, 2006, 04:46 #7
No, the point of the script is to open the link in a different page. So google can't index them. So the url is sent to the script which Header("Location: "$url"); thing.
-
Jul 18, 2006, 04:55 #8PHP Code:
echo '<a href="mypage.php?link=www.google.com">click<.a>';
// mypage.php
$url = $_GET['link'];
header("Location: $url");
-
Jul 18, 2006, 05:35 #9
Thanks
works perfectly
Bookmarks