Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

submit HTML form - Variables passed to PHP Page. How to e-mail results?

1.Submit 2. Review to Confirm 3. Go Back to edit or Submit (E-mail)



6:01 pm on May 22, 2013 (gmt 0)

Okay - 1st off. I am a WYSIWYG Flash animator, Web Author, Photoshop Guy. I am totally unschooled in the practice of syntax programming. That being said, I have sucessfully programmed my HTML Form ( which contains Text Fields, Check Boxes, and Radio Buttons), and passed the inputted variables to my gdform4.php page using: echo $_POST["myvariable"]. This page has all needed posted data displayed and formatted nicely. No errors that I am aware of. Below all of the variables displayed, I have 2 graphics I am using. 1 graphic is a red thumbs down, that is a URL back to the order page. The green Thumbs up graphic is a URL to a grthankyou.php page.

How do I get all of the submitted variables from my HTML form that is now displyed on my gdform4.php to be e-mailed when I select the green thumbs up button and I am forwarded to my thank you page?

Since I am a total hack that is just now getting my feet wet, I would appreciate assistance in the simplest and quickest solution to my issue. I have been experimenting with arrays, but I'm just not ready.

Thank you to the mind that rescues mine! :)


8:36 pm on May 22, 2013 (gmt 0)

WebmasterWorld Senior Member swa66 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

You make the page you output from your "gdform4.php" to contain a html form itself. The fields can be hidden and the green button a submit button. The action would then be another php script on your server that would use the hidden fields (they are just normal fields to that script and send the email, and issue a location header to the user.

Pretty straightforward, but there's a but, a big one: security.

There's no need to pass through the first form to get to submit anything to the second one (http is stateless ... ). Which essentially means that you're almost better off with doing the confirmation with the user in javascript in his browser.

Spammers will find your second script and if the destination of that email can be controlled, they'll have a ball.


8:53 pm on May 22, 2013 (gmt 0)

Is there a way to do this using PHP that isn't a security risk? The area I am using this script is password protected, but I do not wish to invite hackers.


6:49 am on May 23, 2013 (gmt 0)

There is a setting on the ftp control panel of my web host that allows me to specify an e-mail address that the php output can be sent to. I can now see the security reasons why they did that. So assuming I will not expose my e-mail address in the code to would-be hackers, How do I turn my green thumbs up graphic on my gdform4.php page to act as a submit e-mail button that includes all of the variables that have populated my confirmation page. If anybody can spoon feed me with actual code snippets or examples I can mess with, I'd appreciate it. Also looking at the Query string functions built into the hyperlink parameters options for Microsoft Expressions. Perhaps the answer lies there... Thank you in advance! Help me Obi Wan Kenobi! You my only hope!

Featured Threads

Hot Threads This Week

Hot Threads This Month