Re: Why does this not work?

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: James Dugger
Date:  
To: Main PLUG discussion list
Subject: Re: Why does this not work?
Joe,
Have you tried using the $_POST array instead of the $_REQUEST array?

<?php
//if "email" variable is filled out, send email
if (isset($_POST['email'])) {

//Email information
$admin_email = "";
$email = $_POST['email'];
$subject = $_POST['subject'];
$comment = $_POST['comment'];


The form puts items in the $_POST array not the $_REQUEST array. Your
condition resolves to false and your conditional exits with out doing
anything



On Sun, Dec 29, 2019 at 5:58 PM David Schwartz <>
wrote:

> I’d ask them, especially if they sent you the code.
>
> In particular, I’d see if they changed their PHP recently.
>
> -David Schwartz
>
> On Dec 29, 2019, at 5:16 PM, Joe Lowder <> wrote:
>
> For years, I have used bluemail form input for a simple way to invite
> comments from visitors to my websites; but recently discovered that this
> quit working:
>
> http://www.upquick.com/message/
> <https://u2206659.ct.sendgrid.net/wf/click?upn=tzJbcg2o-2FNh3kfIF32sRUbct3oiXTUUBrLOg0XztaVjpWgmnE3bgmeIIgqYhyKAP_6lpMB7VLnN-2Fj9-2FEErg8-2F-2BMBpb5QxlByTgv2M3fbWD9ebvC-2BWrN3h7jImK8EVWYBe3HIwYayKP83-2FfqFjTgQnqfyRpAJ4pHmxAdvAuph0dJFzh9N1ZBp7y7S1hqLMQugdU5sVMTf3yZ4DI-2B86-2BLrtPdZmf-2Fz5VLqTE6ouMGx-2FdQx-2FmJDxLD7ogqau7W5FaNgE2lWa-2B3J-2FYSj-2BrcPPiCZsnm2ee3wjykGtXAvaoY5q3XltRTD3bQmwipfWrexdtLwF>
>
> So, I asked bluehost support for a remedy and they sent the code sample
> shown below, which I uploaded to a test site:
> upquick.com/message/forminput4.htm to try to use, but it does not work.
>
> What do I need to change to get this to work?:
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change your mail settings:
> https://lists.phxlinux.org/mailman/listinfo/plug-discuss




--
James

*Linkedin <http://www.linkedin.com/pub/james-h-dugger/15/64b/74a/>*
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss