/    Sign up×
Community /Pin to ProfileBookmark

Taking webforms data to a preview screen. Does that use Javascript?

After someone fills out the form. I want a preview button they press that redirects the page to a preview page that shows all the data that they filled out in the form to make sure everythings right. Then have the true submit button on that page. Can this be done in javascript?

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@96turnerriJun 01.2004 — well it depends could be done more effiently in php eg

[code=php]
//form.htm
<form action=process.php method=post>
Name <input type=text name=name size=12><br>
Email <input type=text name=email size=25><br>
<input type=submit value=Step2>
</form>

//process.php

echo "Hello, ".$_POST["name"].",<br>We Have Sent An Email To ".$_POST["email"].".";

echo "<br>If this is fine <a href=complete.php?email=".$_POST["email"]."&name=".$_POST["name"].">Click Here To Continue</a>, or edit below<br><br>";

echo "<form action=process.php method=post>Name <input type=text name=name size=12><br>Email <input type=text name=email size=25><br>
<input type=submit value=Update></form>";
[/code]


untested but should work, Rich
×

Success!

Help @Whipsmack spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...