Re: Re: php form action breaks script

From: Date: Thu, 28 Jun 2012 00:22:35 +0000
Subject: Re: Re: php form action breaks script
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-318314@lists.php.net to get a copy of this message
On Thu, Jun 28, 2012 at 2:17 AM, Tim Dunphy <bluethundr@gmail.com> wrote: > Hey guys, > > It's been a little while since I've toyed with this, and I hope you > don't mind my coming back to you for some more advice. But I've > enjoyed some limited success with David R's advice regarding adding > some strong quoting to the mix. Here is what I last tried - Please bottom post on this (and probably any) mailing list. > >  <form method="post" action="' . $_SERVER['[PHP_SELF'] > .'"> This must be some typo, it should read <form method="post" action="' . $_SERVER['PHP_SELF'] .'"> > > >  $from = 'bluethundr@jokefire.com'; >  $subject = $_POST['subject']; >  $text = $_POST['elvismail']; >  $output_form = "false"; > Try using $subject = isset($_POST['subject']) ? $_POST['subject'] : ""; $subject = isset($_POST['elvismail']) ? $_POST['elvismail'] : ""; Cheers, Matijn

« previous php.general (#318314) next »