Re: [PHP] Question before I end up writing alot of extra code...

2008-07-08 Thread VamVan
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

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-08 Thread VamVan
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

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-07 Thread Chris
> 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

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-07 Thread Wolf
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 $_

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-07 Thread mike
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

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-07 Thread mike
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

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-07 Thread tedd
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...

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-07 Thread Shawn McKenzie
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?

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-07 Thread Jason Pruim
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

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-07 Thread Dan Shirah
> > 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

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-07 Thread Wolf
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

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-07 Thread Per Jessen
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