sorupcikacam Posted October 26, 2008 Share Posted October 26, 2008 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 More sharing options...
Brian W Posted October 26, 2008 Share Posted October 26, 2008 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? Link to comment https://forums.phpfreaks.com/topic/130140-how-to-display-an-external-website/#findComment-674838 Share on other sites More sharing options...
sorupcikacam Posted October 26, 2008 Author Share Posted October 26, 2008 Thanks for your reply Brian. Yes i am using frame. Link to comment https://forums.phpfreaks.com/topic/130140-how-to-display-an-external-website/#findComment-674839 Share on other sites More sharing options...
sorupcikacam Posted October 26, 2008 Author Share Posted October 26, 2008 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. Link to comment https://forums.phpfreaks.com/topic/130140-how-to-display-an-external-website/#findComment-674885 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.