Carry form input data from one page, to a php form that emails the data, and again through to the php redirect page -


i have form on page (form.php) when submitted uses submit.php send data email address. submit.php redirects info.php. on info.php want include of data user entered form.php. user enter additional inputs on info.php , submit it.

info.php use php page email me form inputs. form inputs include form.php , user input on info.php.

wow, hope makes sense. summarize:

form.php --> submit.php (hidden - emails me form data) --> info.php (carry inputs form.php here, user input additional data) --> emailed me again php page

i not posting code it's long , think can imagine how looks. help:

form.php - simple form inputs submit.php - data form.php post here, sends email info.php - simple form inputs 

thanks in advance!

the easiest thing submit.php set session data

$_session['name'] = array('myinput'=>$_post['myimput']); 

then after set:

header('location: info.php'); 

in info.php

<?php     session_start()// forgot call @ top of submit.php , info.php first 

and access session data:

echo $_session['name']['myinput']; 

on side note, @ using ajax form.php submit.php , have submit return complete or fail status. carry form data want there info.php


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -