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 #169362 is a reply to message #169360] Wed, 08 September 2010 15:40 Go to previous messageGo to previous message
GarryJones is currently offline  GarryJones
Messages: 21
Registered: September 2010
Karma:
Junior Member
> 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?

> Then you've been around long enough to recognize the value of
> explicitly checking data and doing research before performing upgrades
> without doing an impact analysis on existing code...

:) Perhaps, but sometimes I have taken sledgehammers to crack nuts.
With 7-8 websites runnung mostly at use withing non-profit making
sports organisations I just want things to work. I love php and wish I
was better at it. I can fix most things but its largely due to the
fantistic help I have received over the years from this newsgroup. I
am forever indebted to all that take the time to help me. This last
week I have been recoding a poorly written asp site that I inherited
into php. Php is really fantastic, but even so its many many hours
googling and trying to understand the syntax better. I often know what
I want to do and know its possible, but can't quite grasp it. I've
spent 16-18 hours a day on this for a week. The closest I came php in
my past was Vollie (tpo06 in an in-house CICS system), certain bits of
php logic remind me of that. We used Vollie mainly to access VSE
queues under CICS but there where so many other uses. I wonder, does
php have its roots in Vollie from the early 80's?
[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: Fri Nov 22 21:36:17 GMT 2024

Total time taken to generate the page: 0.03891 seconds