Reply to Re: IF and Radio Buttons

Your name:

Reply:


Posted by Kimmo Laine on 10/31/33 11:20

"Ben Allen" <"ben.allen"@\"your.tonsils\"btinternet.com> kirjoitti
viestissδ:da8n4g$6ta$1@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
>I have the following code which connects to a database and sets the value
>of counter to '0' and the date to be either the current date or a users own
>date. The database connects via an included script as this is a
>contribution for OSCommerce. Each section (the set date today and set date
>custom) works fine by itself (with the other half commented out) but I cant
>make it so the option is available via radio buttons, what am I doing
>wrong?
>
> if ($setdate="true") {...
> if ($setdate="false") {...

== is the comparison operator, = is assignment. When you assign the string
"true" to $setdate, of course it is true. Instead you need to compare
them...

if ($setdate=="true") {...
if ($setdate=="false") {...



--
"I am pro death penalty. That way people learn
their lesson for the next time." -- Britney Spears

eternal.erectionN0@5P4Mgmail.com

[Back to original message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация