RE: [PHP] A really fun one
| From: | Sander Pilon | Date: | Thu, 13 Jul 2000 00:33:34 +0000 |
| Subject: | RE: [PHP] A really fun one | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-6345@lists.php.net to get a copy of this message | ||
DHTML *is* Javascript (usually) modifying HTML.
And what you ask for is, by definition, client-side. There's no way you can
update a client side with php without having interaction with the server.
(And in that case you're looking at a multi-step/page date control.)
You can do that perfectly in Javacsript. Everyone NOT having javascript by
now should consider upgrading anyway. And the paranoid people out there that
disabled javascript wouldnt want to submit that 'private information' to you
anyway :)
-S
>
> We do this on our site (www.sportsmvp.com) in several places. We did not
> want to Javascript to accoplish this but I don't see any other way except
> maybe DHTML. What we did was to confirm the date after they
> submit the form
> and display nice looking warnings that display if they enter say 31 for
> February. They then would have to use the back button in the browser and
> correct the mistake themselves.
> --
> Brett M. Delia
> Software Engineer / Web Developer
> SportsMVP.com - Active Arts, Inc.
> 6650 S.W. Redwood Lane, Suite 200
> Portland OR 97224
> 503.684.5806 x775
> mailto:brettd@sportsmvp.com
> http://www.sportsmvp.com -
> http://www.activearts.com
>
> Do what you can, with what you have, where you are.
> --Theodore Roosevelt
>
> I have simply tried to do what seemed best each day, as each day came.
> -- Abraham Lincoln
> ----- Original Message -----
> From: Jason Bryner <jason@focusdesigngroup.com>
> To: PHP General <php-general@lists.php.net>
> Sent: Wednesday, July 12, 2000 3:38 PM
> Subject: [PHP] A really fun one
>
>
> > Okay, this one oughta be lots of fun. How would you make to pulldown
> menus,
> > one with the month (text i.e. "January"), and one with the days
> (1, 2, 3,
> > etc...) so that when you select a month, the day list updates to the
> amount
> > of days in that month.
> >
> > i.e. If you select December from the month list, there would be
> 1 - 31 in
> > the day list. Or if you select Febuary , there would be 1 - 29.
> >
> > Jason Bryner
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>