Jump to content

gmail login?


phpaccount

Recommended Posts

If I have a php file linked to a login form, could I login to gmail?

For example, something like this:

header("Location: https://www.google.com/accounts/ServiceLoginAuth?continue=http://mail.google.com/gmail&service=mail&Email=".$LOGIN."&Passwd=".$PASSWORD."&null=Sign+in")

If im correct, this is a  piece of the login form I have:

<DIV class="email-div"><LABEL 
for="Email"><STRONGclass="email-label">Username</STRONG></LABEL><INPUT 
id="Email" name="Email"type="email" 
spellcheck="false"></DIV><DIV class="passwd-div"><LABEL 
for="Passwd"><STRONGclass="passwd-label">Password</STRONG></LABEL><INPUT 
id="Passwd" name="Passwd"type="password"></DIV>

Sorry if I made a mistake, I just followed a guide somewhere how to make a login form, and im completely new to php.

Link to comment
Share on other sites

No!

 

You should consider using cURL or IMAP libraries in php.

I don't see how that will work.

Because first you will be redirected to another website, and after that its impossible to execute scripts of any kind afaik.

Unless cURL can fill out post forms...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.