/    Sign up×
Community /Pin to ProfileBookmark

Pass ‘guest’ password into a field in a page via link

Is there a way to create a link on Page A which will go to Page B but also insert the word ‘guest’ into the Password box on Page B? If so, exactly what code do I use?

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@matt_fawcettApr 21.2007 — make the link on page a go to something like pageb.php?default_password=guest

Then on page b you cold have something like
[code=php]
<?php
if(isset($_GET['default_password']))
{
$default_password = $_GET['default_password'];
}
else
{
$default_password = '';
}
?>
<input type="password" name="password" id="password" value="<?php echo $default_password; ?>" />
[/code]
Copy linkTweet thisAlerts:
@b_hunterApr 21.2007 — ...deleted
×

Success!

Help @Duke_Will 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 4.29,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...