Jump to content

<input type="image" problem


otuatail

Recommended Posts

In addition to needing to access the image as submit buttons as $_POST['NewContent_x'] and $_POST['EditContent_x'], your page has 10 HTML validation errors, some of which might render it invalid in some browsers - http://validator.w3.org/check?uri=http%3A%2F%2Fwww.des-otoole.co.uk%2Fcms%2Fadmin%2Fpages.php&charset=%28detect+automatically%29&doctype=Inline&group=0

Link to comment
https://forums.phpfreaks.com/topic/189753--/#findComment-1001466
Share on other sites

Ok I have found a fix in the second page

 

if(isset($_POST[NewContent_x]))

    $Button = "1";

if(isset($_POST[EditContent_x]))

    $Button = "2";

 

 

if($Button == 1)

  header('Location: NewContent.php');

if($Button == 2)

  header('Location: EditContent.php');

 

Desmond.

 

Link to comment
https://forums.phpfreaks.com/topic/189753--/#findComment-1001869
Share on other sites

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.