Jump to content

Strange _POST problem


mananx

Recommended Posts

Very strange problem .

I have the same site hosted on two servers

1) go daddy

2) my local server apache / mysql /php 5

 

This code is working good on godaddy server , but on my server , sql update query is not executed .

Database connection is being made because it shows the data from database .

 

if(isset($_POST['save']))

{

$page_name=$_REQUEST['show'];

$description=htmlentities( $_POST['elm1']);

$sql="UPDATE  pages SET description = '".$description."' WHERE page_name = '".$page_name."'";

 

$db->ExecuteQuery($sql);

header("location:index.php?show=".$page_name);

exit();

 

}

 

<form method="post" action="index.php?show=<?=$show?>">

<textarea id="elm1" name="elm1" rows="35" cols="80" style="width: 80%">

<?=$desc?>

</textarea>

 

<br />

<input type="submit" name="save" value="submit" />

<input type="reset" name="reset" value="Reset" />

</form>

 

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.