FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Eregi possible problem
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Eregi possible problem [message #169397 is a reply to message #169379] Thu, 09 September 2010 12:46 Go to previous messageGo to previous message
matt[1] is currently offline  matt[1]
Messages: 40
Registered: September 2010
Karma:
Member
On Sep 8, 4:25 pm, "Peter H. Coffin" <hell...@ninehells.com> wrote:
> On Wed, 8 Sep 2010 08:40:05 -0700 (PDT), GarryJones wrote:
>>> That's PHP telling you that your code is sloppy.  Unchecked checkboxes
>>> don't get passed with POST/GET operations, so you are in effect doing
>>> the same as the following:
>
>> I "solved" this today in a different way....
>> First I set all values to nej.
>> <input name="boksin" type="hidden" value="nej">
>> <input name="boksil" type="hidden" value="nej">
>> <input name="boktav" type="hidden" value="nej">
>> <input name="boklic" type="hidden" value="nej">
>> <input name="bokncg" type="hidden" value="nej">
>> <input name="bokpap" type="hidden" value="nej">
>
>> Then if they are later displayed as checkboxes the value is
>> redeclared, if not then the "post" reads from the above. Your answer
>> was obviously more professional and correct but isn't the main thing
>> to get things working?
>
> Some right answers are better than others. Something involving checking
>
> if (isset($_POST['foo']) && $_POST['foo']="bar") { ...

<nitpick>

$_POST['foo'] == "bar"

</nitpick>

:)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Another heredoc question
Next Topic: php filling in listbox value based on db record ??
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 16:14:50 GMT 2024

Total time taken to generate the page: 0.04916 seconds