Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4045246
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T13:23:57+00:00 2026-05-20T13:23:57+00:00

i have a form with 2 fields username: password: and a submit button. the

  • 0

i have a form with 2 fields
username:
password:
and a submit button.
the user will enter his username and password for a remote website(not my website or my domain. eg. Gmail.com).
i want once he click the submit button.a jQuery script check these login info on gmail.com and return back the result.they are wrong or working logins. and notify the user if it is wrong logins but if it is good working login info the form will submit.

i don’t know much jQuery but i am good with php. my search find that in order to do that i need to make cross-domain scripting by using php proxy between my jQuery script and the remote domain.
i found also the simple php proxy. which looks great.but i dont know how to make the jQuery thing that connects all this together.

update: i have found this code but it is not working.

$('#submitbutton').attr('disabled', true);
                                    $.post('/proxy.php?mode=json&nofollow=1&save_cookies=1&full_status=1&url=https://secure.dooom.com/login/login/',
                                    {   
                                        username:$('#Name').val(),
                                        password:$('#Password').val(),
                                        password_strength:"strong"
                                    }, function(data) {
                                        if(data.status.http_code == "301"){
                                            $.get('/proxy.php',
                                            {
                                                mode: 'json',
                                                cookie_file: data.cookie_file,
                                                full_status: 1,
                                                remove_cookies: 1,
                                                //url: 'http://www.dooom.com/store/index/'
                                                url: 'http://www.dooom.com/store/index/?action=add_to_cart&products_id=3263691&is_subscription=1&freq=1&term=getstarted&content=disc99&medium=sales'
                                            }, function(data) {
                                                if(data.contents.search("please sign into") != -1) {
                                                    $('#submitbutton').attr('disabled', false);
                                                    alert("You must first sign in with this name on dooom before we are able to process this order. Please do so and try again.");
                                                } else if(data.contents.search("first month only") != -1) {
                                                    form.submit();
                                                } else {
                                                    $('#submitbutton').attr('disabled', false);
                                                    alert("You are not eligible for the product. If this is a mistake, click reset form and try again.");
                                                }
                                            }, "json");
                                        } else {
                                            $('#submitbutton').attr('disabled', false);
                                            if(data.contents.search('Too many attempts') != -1) {
                                                alert("You have tried too many attempts, go to dooom.com, logout and log back in doing the captcha");
                                            } else {
                                                alert("Incorrect dooom Username or password");
                                            }
                                            return false;
                                        }
                                    }, "json");
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T13:23:58+00:00Added an answer on May 20, 2026 at 1:23 pm

    You need to use jquery ajax function to make an ajax request to your PHP file.

    Then your PHP file can ‘authenticate’ to Gmail and return a result to that ajax function.

    You can read a How to article here:

    Using Gmail authentication within your web application
    http://azimyasin.wordpress.com/2007/10/24/using-gmail-authentication-within-your-web-application/

    And this is a PHP library you can use to authenticate to Gmail:

    libgmailer for PHP

    http://sourceforge.net/projects/gmail-lite/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an HTML form where I have two fields: username and password. Now,
i have a form with few fileds and a submit button... when i click
I have a page with nothing on it but this form: <form method=post action=/sign-in>
i want to do these thing: 1.open the login_view (which is the page user
I have some problems with authorization. I don't want to use Spring Security, just
My Rails form code is as follows: <%= form_for(resource, :as => resource_name, :url =>
Hey So I have a question about posting using an XMLHttpRequest. In theory, if
I'm getting started with ExtJs. I'm building a very simple login form: Ext.onReady(function ()
I'm new to Stripes and appreciate every hint that brings me nearer to a
I am trying to make a simple web crawler as a learning experience and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.