Hi Joe, Went to http://www.upquick.com/message/ to test the form. When I submit the form it takes me to https://www.bluehost.com/bluemail which returns a 404 error. Your form :
--- Notice the very first line that has the action directive : action=https://www.bluehost.com/bluemail That is the first thing to resolve. Note your form does nothing to sanitize the data which needs to be addressed also. --- Keith On 2019-12-29 17:16, 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/ > > 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?: > > > > //if "email" variable is filled out, send email > if (isset($_REQUEST['email'])) { > > //Email information > $admin_email = "joe@actionline.com"; > $email = $_REQUEST['email']; > $subject = $_REQUEST['subject']; > $comment = $_REQUEST['comment']; > > //send email > mail($admin_email, "$subject", $comment, "From:" . $email); > > //Email response > echo "Thank you for contacting us!"; > } > > //if "email" variable is not filled out, display the form > else { > ?> > > > } > ?> > > > --------------------------------------------------- > PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org > To subscribe, unsubscribe, or to change your mail settings: > https://lists.phxlinux.org/mailman/listinfo/plug-discuss --------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org To subscribe, unsubscribe, or to change your mail settings: https://lists.phxlinux.org/mailman/listinfo/plug-discuss