phpaccount Posted August 18, 2013 Share Posted August 18, 2013 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. Quote Link to comment https://forums.phpfreaks.com/topic/281297-gmail-login/ Share on other sites More sharing options...
jazzman1 Posted August 18, 2013 Share Posted August 18, 2013 If I have a php file linked to a login form, could I login to gmail? No! You should consider using cURL or IMAP libraries in php. Quote Link to comment https://forums.phpfreaks.com/topic/281297-gmail-login/#findComment-1445622 Share on other sites More sharing options...
phpaccount Posted August 19, 2013 Author Share Posted August 19, 2013 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... Quote Link to comment https://forums.phpfreaks.com/topic/281297-gmail-login/#findComment-1445781 Share on other sites More sharing options...
trq Posted August 19, 2013 Share Posted August 19, 2013 Unless cURL can fill out post forms... Indeed, curl makes http requests. Quote Link to comment https://forums.phpfreaks.com/topic/281297-gmail-login/#findComment-1445782 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.