spooke2k Posted July 26, 2007 Share Posted July 26, 2007 hello i will try and explain this best as i can as i dont really understand whats wrong with code. TO start with the php page i have created works fine on its own as a stand alone page but i need to move it into zen cart define page editor. this then holds my code as it was in website source code etc and where the page was originally is now changed to this <?php header('Location: /index.php?main_page=test'); ?> so when i visit my website www.whateversite.com/test it redirects to the define page which should then bring up my header of the website and my page in it. After many hours or pain and problems i have narrowed it down and can get the page to display but the php barely works, it is a right mess and im so confussed as to why? however after playing around i found the page doesnt like the following types of commands in it. // echo "<form name='post1' action='{$_SERVER['PHP_SELF']}' method='POST'>"; '{$_SERVER['PHP_SELF']}' THIS DOESNT WORK I NEED IT TO DESPRATELY whatever address i try and put in the doesnt work NExt thing and this is more complicated to explain but i will try is this // $URL="test.php"; // header("Cache-control: private"); // header ("Location: $URL"); I use this as a refresh as i need the page to reload itself. // It has about 4 forms and html templates in the php page and i need it to drop its previous form when it reloads so the new form can loaded if not it seems to remeber old form and just adds new one under it. if anyone knows how to solve these to issues please help ive tried everything i can think off. Thanks :'( :'( :'( :'( :'( :'( Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.