sorry it needs to be a array for checkbox for the example below. So you
could use is_empty() instead. something like that.
On Tue, Jul 8, 2008 at 7:37 PM, VamVan <[EMAIL PROTECTED]> wrote:
> Hey,
>
> Dude you could use it this way
>
>
>
>
>
> Once u submit it,
>
> do a small server side
Hey,
Dude you could use it this way
Once u submit it,
do a small server side validation
if(isset($_POST['something'] || $_POST['something']) != ""){
insert...
}
This way you could avoid replacing the values with nulls.
Thanks,
Vam
On Mon, Jul 7, 2008 at 12:25 PM, Jason Pruim
> Here is a VERY simplified test :)
> MAIN PAGE:
> if($row['Tab'] == "done"){
> $Tchecked1 = "CHECKED";
> $Tchecked2 = NULL;
> }else{
> $Tchecked1 = NULL;
> $Tchecked2 = "CHECKED";
> }
>
> echo"
> Tab
> Done
> Not Done
> ";
> ?>
> PROCESSING:
> $tab = $_POST['rd
Oh, and make sure you bottom post too so you actually follow everything! ;)
mike <[EMAIL PROTECTED]> wrote:
> doh - and mysql_escape_string or equivalent.
>
>
>
> On 7/7/08, mike <[EMAIL PROTECTED]> wrote:
> > please oh please also run that through filter_input() before throwing
> > a $_
doh - and mysql_escape_string or equivalent.
On 7/7/08, mike <[EMAIL PROTECTED]> wrote:
> please oh please also run that through filter_input() before throwing
> a $_POST directly into the db query ;p
>
>
> On 7/7/08, Shawn McKenzie <[EMAIL PROTECTED]> wrote:
> > Jason Pruim wrote:
> > >
> > > M
please oh please also run that through filter_input() before throwing
a $_POST directly into the db query ;p
On 7/7/08, Shawn McKenzie <[EMAIL PROTECTED]> wrote:
> Jason Pruim wrote:
> >
> > MAIN PAGE:
> > >
>
> echo $row['Tab']; //what do you get?
>
> > if($row['Tab'] == "done"){
> >$Tchec
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...
Jason Pruim wrote:
MAIN PAGE:
echo $row['Tab']; //what do you get?
if($row['Tab'] == "done"){
$Tchecked1 = "CHECKED";
$Tchecked2 = NULL;
}else{
$Tchecked1 = NULL;
$Tchecked2 = "CHECKED";
}
echo"
Tab
Done
Not Done
";
?>
PROCESSING:
print_r($_POST); //what do you get?
On Jul 7, 2008, at 3:36 PM, Wolf wrote:
Jason Pruim <[EMAIL PROTECTED]> 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 applicatio
>
> 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 f
Jason Pruim <[EMAIL PROTECTED]> 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
Jason Pruim wrote:
> The problem I'm running into though, is when a value has not changed
> it doesn't get $_POSTed back
Are you certain about that? I'm pretty certain _all_ values are posted
back, regardless of whether they've changed or not. Otherwise, how
would you ever get a hidden value P
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 d
13 matches
Mail list logo