Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

78 users online



sending form information to a page, then to email

sending form information to a page, then to email

Currently viewing this thread: 1 (0 members and 1 guests)


dexter

dexter

Neverside Newbie
Status: Offline!

sending form information to a page, then to email

I have a form on my webpage, that once filled out I would like sent to a "confirm.php" page which displays what the user has entered, then on that confirm.php page a submit buttom, which then emails all that information. I cant find any tutorials on this, only sending it to email, or to the page itself.

also, having the page generate an ID that counts upwards from 1, and adds this value to the email header. I guess I'd have a counter.txt which it would write the value its up to, then count from there.

anyone able to help?

regards
josh

ringpull

ringpull

Neversidian
Status: Offline!

In confirm.php get it to echo all the information from the previous submitted form, like so:

PHP:

<?php

echo $_POST['fieldname'];

?>


etc.

and then write these to hidden input values in a form:

PHP:

<?php

echo "<input type='hidden' name='fieldname' value='".$_POST['fieldname']."'>";

?>


etc.
And then have the submit button of that form to send the data to finish.php (for example) which handles the emailing.

Hope I've helped Smile

dexter

dexter

Neverside Newbie
Status: Offline!

You've helped greatly. I didn't think it'd be so easy Smile

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0068 seconds.