MySQL Forums
Forum List  »  Newbie

Re: DB Not Updating
Posted by: Barry Galbraith
Date: March 22, 2024 09:02PM

I put this file on my webserver.
<?php
if (!$_POST)
{
	$display = 
"<html>
<head>
</head>
<body>
<form  method=\"post\" enctype=\"multipart/form-data\">
<li id=\"li_15\" >
<label class=\"description\" for=\"element_15\">Property Identification Number: </label>

<div>
<input id=\"element_15\" class=\"myDiv\" type=\"text\" maxlength=\"30\" name=\"propertypin\" Required />
</div>
</li>
<input type=\"submit\" value=\"Save\"/>
</form>
</body>
</html>";
echo $display;
}
else

print_r($_POST);
?>

I opened it with my browser, filled in the input box, Saved it, and got this
Array
(
    [propertypin] => 123 456 7890 1111 1111
)
So, it works for me.
You don't happen to have two inputs with the same name of propertypin do you? POST will send the last one of the two. If the second one is blank, ....

Good luck,
Barry.

Options: ReplyQuote


Subject
Written By
Posted
March 21, 2024 04:57PM
March 21, 2024 10:43PM
March 22, 2024 07:45AM
Re: DB Not Updating
March 22, 2024 09:02PM
March 22, 2024 11:47AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.