•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 375,199 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,054 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 352 | Replies: 7
![]() |
•
•
Join Date: Apr 2008
Posts: 7
Reputation:
Rep Power: 0
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 5:12 pm.
•
•
Join Date: Feb 2008
Location: Ottawa, Ontario
Posts: 15
Reputation:
Rep Power: 1
Solved Threads: 3
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').
•
•
Join Date: Nov 2006
Location: South Wales
Posts: 159
Reputation:
Rep Power: 2
Solved Threads: 10
Do you mean like screenscraping?
If you find my post useful please add to my reputation!! Thanks!
ajtrichards web solutions
http://www.ajtrichards.co.uk
ajtrichards web solutions
http://www.ajtrichards.co.uk
•
•
Join Date: Apr 2008
Posts: 7
Reputation:
Rep Power: 0
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 12:16 pm. Reason: Keep It Organized - please use [code] tags
•
•
Join Date: Aug 2007
Location: Cavite,Philippines
Posts: 473
Reputation:
Rep Power: 1
Solved Threads: 62
•
•
Join Date: Feb 2008
Location: Ottawa, Ontario
Posts: 15
Reputation:
Rep Power: 1
Solved Threads: 3
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 12:17 pm. Reason: Keep It Organized - please use [code] tags
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
- 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 ?


Linear Mode