You are here: Re: making an alert with php « PHP Programming Language « IT news, forums, messages
Re: making an alert with php

Posted by Jerry Stuckle on 05/24/07 04:24

Geoff Berrow wrote:
> Message-ID: <256ei4-s96.ln1@ophelia.g5n.co.uk> from Toby A Inkster
> contained the following:
>
>>> What am I missing? It's javascript that appends the 'sure' variable to
>>> the URL and without that delete.php won't do anything.
>> As I said, when ($_GET['sure']==1) is false, delete.php should display an
>> "are you sure?" form. (And although I didn't explicitly state it, I meant
>> that that form should not require Javascript.)
>
> But if delete.php is going to handle it like that (and indeed that's how
> I'd do it) the Javascript is redundant. It just makes it a little
> quicker for people with JS enabled, which is, I'll grant you good use of
> JS, but hardly worth the effort in this case IMO.
>

Actually, I think Toby has the right idea. It is worth it to make it
easier for those who have javascript.

Javascript is a great tool - but all pages should degrade gracefully if
it is not enabled. And Toby's method does just that.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this 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

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация