Jump to content

how to display an external website?


sorupcikacam

Recommended Posts

hi all. i am a newbie here and sorry for my bad english. here i'll try to explain my question:

 

there is a "digg" style website which i want to retrieve the list of topics on a particular day from. for example everyday people are posting something on that website.

 

now my question is:

 

for example i want to display the list of the topics on 23 October 2007 on my website. i want to allow users select the date and click to button to display the topics. how can i do this? Can you please give me some ideas?

 

this is how url looks like:

 

http://?????????.com/index.php?day=1&month=1&year=2007

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/130140-how-to-display-an-external-website/
Share on other sites

http://domain.com/index.php?day=<?php echo intval($_POST['day']); ?>&month=<?php echo intval($_POST['month']); ?>&year=<?php echo intval($_POST['year']); ?>

 

inval() should keep their posting values non threatening.

 

Are you using a frame?

ok, now this code works for me. it displays the topics on current day.

 

<?php

 

$currentday=date(j);

$currentmonth=date(n);

$currentyear=date(Y);

 

echo("<br><br>today's popular topics on website XXX are: <br><br>");

 

echo"<IFRAME src=\"http://websiteXXX.com/index.php?day=$currentday&month=$currentmonth&year=$currentyear\" width=\"240\" height=\"800\">"

. "<p>sorry your browser does not support frames.</p>"

. "</IFRAME>";

 

?>

 

but how can i include a date combo so users can select day, month and year and then they can retrieve the topics from that date? which function should i have to use? can you please be more specific.

 

Thank you very much.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.