help me in php

Discussion in 'PHP' started by tgvrs4u, Feb 12, 2008.

  1. #1
    i am going to have a PHP form which consists of username and password fields and a submit button. i will enter username and password of my yahoo into that form and when i click submit, i should able to pass those username and password fields given in my form to the username and password fields of yahoo mail and should sign in.

    how can i do that?

    please help me regarding this issue..........

    if u dont understand my question, reply me.

    i should able to give input to the windows application from php form
     
    tgvrs4u, Feb 12, 2008 IP
  2. stoli

    stoli Peon

    Messages:
    69
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <form method="post" action="https://login.yahoo.com/config/login?" name="login_form">
    <input type="hidden" name=".done" value="http://mail.yahoo.com">
    <input name="login" id="username" value="" size="17" type="text" maxlength="96">
    <input name="passwd" id="passwd" value="" size="17" type="password" maxlength="64">
    <input type="submit" name=".save" value="Sign In">
    </form>
    HTML:
    It isn't PHP just HTML but you should be able to use this form to log in to your Yahoo mail account.
     
    stoli, Feb 12, 2008 IP
  3. danielyucra

    danielyucra Well-Known Member

    Messages:
    160
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #3
    But, it no is PHP is only HTML.

    The varibles of PHP not value, review your code the process
     
    danielyucra, Feb 12, 2008 IP
  4. gwkg

    gwkg Peon

    Messages:
    143
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    There is no "PHP Form" Forms are html. PHP processes the form or PHP can output blocks of the html, but stoli's form should work. Just substitute php where you need to.
     
    gwkg, Feb 12, 2008 IP
  5. MakeADifference

    MakeADifference Peon

    Messages:
    476
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I think yahoo login has some hidden vars as well, you might have to do a view source on yahoo's login page to get some idea.
     
    MakeADifference, Feb 12, 2008 IP
  6. The Critic

    The Critic Peon

    Messages:
    392
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #6
    You may also have to forge the referrer if they check for that sort of thing. If all you want to do is check your Yahoo email from your own domain or something, just use Yahoo's API.
     
    The Critic, Feb 12, 2008 IP