/    Sign up×
Community /Pin to ProfileBookmark

Pass value from one php page to another

Hello eveyone.

I have 2 pages and both have subscribes forms. I am using Mailclimp and WordPress as platform. More specific :

In page 1 : When the user complements the email field and press “SIGN UP”, then i want to redirect in Page 2.
In page 2 : I want to keep the email from page 1. I dont want the user to complements again – for the 2nd time.

[B]Page 1:
[/B]

[CODE]<?php
session_start();
$_SESSION[‘varname’] = $var_value;[/CODE]

inside the form i passed :

[CODE] name=”varname” value=””[/CODE]

[B]Page 2 : [/B]

[CODE]<?php
session_start();
$var_value = $_GET[‘varname’];[/CODE]

and inside the form i passed :

[code=html]name=”varname” value=”<?php echo $_GET[‘var_value’]; ?>”[/code]

But in this case it cant pass me the email field. Any idea, how can fix this?

Thanks in advanced.

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @jpal 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.26,
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,
)...