| | |
How do I pass a link (webpage) through url?
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Apr 2008
Posts: 34
Reputation:
Solved Threads: 0
Hello,
I'm new in coding in php
I want to transfer a webpage (news5.html) to another webpage (in a table).
(Like it is done on the news websites "www.domain.com/index?ID=4343"
How can I do it?
I read about passing variables through url, but if it is how it should be done how do I include a link in the variable?
Please help me
I'm new in coding in php
I want to transfer a webpage (news5.html) to another webpage (in a table).
(Like it is done on the news websites "www.domain.com/index?ID=4343"
How can I do it?
I read about passing variables through url, but if it is how it should be done how do I include a link in the variable?
Please help me
Last edited by didi00; Apr 30th, 2008 at 6:12 pm.
I am not sure exactly what it is your trying to do.. If you are looking to get the info from the link you would use $_GET['ID'] to retrieve the 4343 from the url.. if you are looking to display the content of news5.html page within the table you have created on another page then you might use include('news5.html').
Do you mean like screenscraping?
If my post is useful please add to my reputation.
Thanks.
Ajtrichards Web Solutions | http://www.ajtrichards.co.uk
Retenovate | http://www.retenovate.com
Thanks.
Ajtrichards Web Solutions | http://www.ajtrichards.co.uk
Retenovate | http://www.retenovate.com
•
•
Join Date: Apr 2008
Posts: 34
Reputation:
Solved Threads: 0
Yes I want to display the content of news5.html page within the table I have created on another page...
I tried this so far...but it doesnt work
and in the other file:
any suggestion?
I tried this so far...but it doesnt work
php Syntax (Toggle Plain Text)
<?php echo "<a href='1.php?ID=2442'>"; echo "click"; ?>
and in the other file:
php Syntax (Toggle Plain Text)
<?php if $_GET['ID'] == 2442 echo file_get_contents("news5.html"); ?>
any suggestion?
Last edited by peter_budo; May 1st, 2008 at 1:16 pm. Reason: Keep It Organized - please use [code] tags
maybe..
on the page
<a href="mypage.php?id=2442" target="_self">Click</a> on the page
php Syntax (Toggle Plain Text)
$page = $_GET['id']; if($page = 2442) { include('news5.html'); }
Last edited by peter_budo; May 1st, 2008 at 1:17 pm. Reason: Keep It Organized - please use [code] tags
![]() |
Similar Threads
- display a different content of a website with XSS (JavaScript / DHTML / AJAX)
- My Daddy (Geeks' Lounge)
Other Threads in the PHP Forum
- Previous Thread: Page refresh
- Next Thread: How can I make image url like this ?
| Thread Tools | Search this Thread |
# 5.2.10 ajax apache api array beginner binary broken cakephp checkbox class clean clients cms code cron curl database date display dissertation dynamic echo echo$_get[x]changingitintovariable... email error file files folder form forms function functions google href htaccess html image images include insert integration ip java javascript joomla ldap legislation limit link local login loop mail memberships menu mlm multiple multipletables mysql mysqlquery oop open paypal pdf persist php problem query radio random recursion regex remote rss script search server sessions sms soap sockets source space spam sql syntax system table tutorial update upload url validator variable video web xml youtube





