/    Sign up×
Community /Pin to ProfileBookmark

Form Mail variable pass on redirect

Hi guys/gals. This is a repost but I couldnt’ get a reponse earlier.

I am having difficulty using a godaddy mail form and passing the inputed values to a redirected page. I want to send the first name and last name that the person inputs into the form, to the thank you page.

[B]***inputpage.php code***[/B]
[COLOR=”red”]form action=”gdform.php” method=post>
<input type=”hidden” name=”subject” value=”Submission Data” />
<input type=”hidden” name=”redirect” value=”thankyou.php?First_Name=’.$firstname’&Last_Name=’.$lastname'” />

[B]***thankyou.php code***[/B]
$firstname = $_GET[‘First_Name’];
$lastname = $_
GET[‘Last_Name’];[/COLOR]

I tried using this;

[COLOR=”Blue”]header(“Location: thankyou.php?First_Name={$_POST[‘First_Name’]}&Last_Name={$_POST[‘Last_Name’]}”);[/COLOR]

and this;

[COLOR=”Blue”]<input type=”hidden” name=”redirect” value=”thankyou.php?First_Name=’.$firstname’&Last_Name=’.$lastname'” />[/COLOR]

and this;

[COLOR=”Blue”]<input type=”hidden” name=”redirect” value=”thankyou.php?First_Name={$_POST[‘First_Name’]}&Last_Name={$_POST[‘Last_Name’]}” />[/COLOR][/QUOTE]

All I receiving are the actual characters behind the “=” instead of the value itself. Any help is appreciated.

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@SheldonMay 29.2007 — You have another thread with the same questions. Why not carry on with that rather than making a new one?

Post the full code from both pages please.
×

Success!

Help @rpleasan 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 6.1,
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,
)...