Re: Newbie: How do I test for "reposting" a form to itself?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Newbie: How do I test for "reposting" a form to itself?

From: Alvaro G Vicario <alvaro_QUITAR_REMOVE@telecomputeronline.com>
Date: Fri Jul 29 2005 - 14:18:17 CEST

*** Larry Woods wrote/escribió (Fri, 29 Jul 2005 05:02:53 -0700):
> if ($HTTP_POST_VARS["postback"]=="y") {

$HTTP_POST_VARS is deprecated, use $_POST unless you have a good reason not
to.

> <input type="hidden" name="postback" value="y">

> Notice: Undefined index: postback in C:\Inetpub\wwwroot\PHP\sendemail.php on
> line 5

if( isset($_POST['postback']) && $_POST['postback']=='y' ){ // Not tested

-- 
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
Received on Mon Oct 17 21:22:35 2005