Jump to content

Help run out of ideas


spooke2k

Recommended Posts

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  :'( :'( :'( :'( :'( :'(

 

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.