/    Sign up×
Community /Pin to ProfileBookmark

document.loginform.submit()

Hello,

How do you insert document.loginform.submit() into a php function like f.e

[CODE]
if (isset($_SESSOIN[‘var1’])){
echo “how do you insert here document.loginform.submit() ??”;
}
[/CODE]

Thanks!!

Michael

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@bokehApr 03.2006 — I don't understand what you are asking but you would be doing yourself a favour if you stopped using the [I]legacy DOM[/I]. It's seven years out of date.
Copy linkTweet thisAlerts:
@jiserauthorApr 03.2006 — What's a legacy DOM??

the function should sent a specific hidden form when a session variable has been set....

Anyways, I've already found a way to use Curl for this....
Copy linkTweet thisAlerts:
@bokehApr 04.2006 — This is the legacy DOM [I]document.loginform.submit()[/I] and this is the W3C DOM [I]document.getElementById('loginform').submit()[/I]. The former is extremely restrictive and can only de used with certain elements and media types.
×

Success!

Help @jiser 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.5,
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,
)...