nikky_d16 Posted February 15, 2007 Share Posted February 15, 2007 Hi, I am very very new to PHP, im using oscommerce to set up a web store. Basically i need to know how to put the code <script> window.location="http://www.welshit.co.uk/suport"; </script> on a php page so that when the "support.php" page is clicked on its redirected to this link instead. I know there is probably a way of putting a redirect in PHP rather than trying to integrate html code, but i dont know how to do that either. If anyone could help i would greatly appreciate it Many Thanks Nikky Link to comment https://forums.phpfreaks.com/topic/38642-solved-html-commands-within-php/ Share on other sites More sharing options...
trq Posted February 15, 2007 Share Posted February 15, 2007 That is Javascript, not html. Anyway... all you need do is place the code in the page. Link to comment https://forums.phpfreaks.com/topic/38642-solved-html-commands-within-php/#findComment-185494 Share on other sites More sharing options...
nikky_d16 Posted February 15, 2007 Author Share Posted February 15, 2007 Ahh, ive done it now thank you, i had tried just putting it in the code but it didnt work, but i tried again putting it at the end after the exisiting code that was already on the page and that seemed to do the trick. Thank you for help, i feel like a complete idiot with all the coding stuff!! many thanks nikky Link to comment https://forums.phpfreaks.com/topic/38642-solved-html-commands-within-php/#findComment-185498 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.