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

Posted by Geoff Berrow on 05/23/07 09:40

Message-ID: <f311au$11i$00$1@news.t-online.com> from Joe Scylla
contained the following:

>well if a guest user (like a spider) is able to delete you've made
>something terrible wrong ;).

Agreed, but it happens. :-)
>
>Also afaik spider don't execute javascript code.
>
>I use a solution like this:
>
><a href="#" onclick="gui_delete('delete.php?id=123');">delete</a>
>function gui_delete(url)
> {
> var r = confirm("Delete entry?");
> if (r)
> {
> document.location.href = url;
> }
> }


Fair enough, but I don't like solutions that rely on JavaScript
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/

 

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

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