Re: Question before I end up writing alot of extra code...
| From: | tedd | Date: | Mon, 07 Jul 2008 20:19:51 +0000 |
| Subject: | Re: Question before I end up writing alot of extra code... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-276412@lists.php.net to get a copy of this message | ||
At 3:25 PM -0400 7/7/08, Jason Pruim wrote:
Hi everyone! So it's been a nice long weekend, I come in to work and try and mess with a project that I'm working on to get some new features added. All was going well until I realized that now my application is breaking... Here's the details... PHP 5.2 MySQL 5.2 I store the info in the database which is submitted from a HTML form.. Some of it text boxes, some check boxes, some radio buttons... I $_POST the info from the form into the processing script. The problem I'm running into though, is when a value has not changed it doesn't get $_POSTed back and my update script erases the info in the database... I'm trying to avoid using $_GET since it can be quite a few variables. Is there anyway I can do it without comparing the original field to what I am displaying?Try print_r($_POST); to see if everything is OK. Sometimes I get get tripped up on what html controls actually are set to (i.e., 'on' instead of 1). Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com