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 input type='checkbox' name='something' value='1' input type='checkbox' name='something' value='2' input type='checkbox' name='something' value='3' Once u submit it, do a small server side validation if(isset($_POST['something'] || $_POST['something']) != ){

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. input type='checkbox' name='something[]' value='1' input type='checkbox' name='something[]' value='2' input type='checkbox' name='something[]' value='3' On Tue, Jul 8,

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

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 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 field

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 application

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

2008-07-07 Thread Shawn McKenzie
Jason Pruim wrote: MAIN PAGE: ?PHP echo $row['Tab']; //what do you get? if($row['Tab'] == done){ $Tchecked1 = CHECKED; $Tchecked2 = NULL; }else{ $Tchecked1 = NULL; $Tchecked2 = CHECKED; } echo fieldsetTabBR input type=radio name=rdoTab value=done $Tchecked1Done BR input

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 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: ?PHP echo $row['Tab']; //what do you get? if($row['Tab'] == done){ $Tchecked1 =

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: MAIN PAGE:

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 $_POST

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: ?PHP if($row['Tab'] == done){ $Tchecked1 = CHECKED; $Tchecked2 = NULL; }else{ $Tchecked1 = NULL; $Tchecked2 = CHECKED; } echo fieldsetTabBR input type=radio name=rdoTab value=done $Tchecked1Done BR input type=radio