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']) != ){
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,
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
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
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
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
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
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...
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 =
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:
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
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
12 matches
Mail list logo