Submit form to php page and carry over POST data to redirect page -


i have found general info on question nothing seems answer exact question.

i have form on .php page, when submitted post's inputs php page, sends form inputs email , redirects php page using (location: page.php)

so: form.php --> email.php (hidden) --redirect--> submitted.php

i have input form.php carried on hidden input box on submitted.php

i hope makes sense, in advance help!

edit:

on submitted.php have single hidden form input. need value of input equal 1 of inputs form.php. post input php page (not seen above) send email.

simply, put sending email code in submitted.php code , using sessions prevent user duplicating input pressing f5 or refreshing submitted.php follows:

in form.php

session_start(); $_session['submit'] = true; 

in submited.php

session_start(); if (isset($_session['submit']) && $_session['submit']){  /* * code */   $_session['submit'] = false; } else{   echo 'some error'; } 

Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -