please help me to know the full working of this script..?

Discussion in 'Programming' started by myheartbeats, Sep 28, 2008.

  1. #1
    please help me to know the working of this small script..
    i think it posts the data into database but i want to know how it works..i also want know how to desighn this type of script to work in my website(data base)
    if possible please let me know is it possible to add the contents of the script(given below) to work in my website?...i will be very thank full to you guyz if i found the solution...

    method="post"
    action="Login.aspx?ReturnUrl=%2fframe.aspx&&acao=sair"
     
    myheartbeats, Sep 28, 2008 IP
  2. javaongsan

    javaongsan Well-Known Member

    Messages:
    1,054
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #2
    you don't need to embed any value in your url when using post method
     
    javaongsan, Sep 28, 2008 IP
  3. myheartbeats

    myheartbeats Banned

    Messages:
    63
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    sorry i did not get your words can you please explain:)
     
    myheartbeats, Sep 28, 2008 IP
  4. javaongsan

    javaongsan Well-Known Member

    Messages:
    1,054
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #4
    you are passing value this way
    Login.aspx?ReturnUrl=%2fframe.aspx&&acao=sair

    You can do iot this way

    <form method = "post" action="Login.aspx">
    <input type = "hidden" value = "frame.aspx" name = "ReturnUrl">
    <input type = "submit" value="submit" name = "submit">
     
    javaongsan, Sep 28, 2008 IP
  5. myheartbeats

    myheartbeats Banned

    Messages:
    63
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    thanks for your great help ..so you mean login.aspx will be the form to enter the data and the data entered by the user will be checkedout in frame.aspx right?
     
    myheartbeats, Sep 28, 2008 IP
  6. javaongsan

    javaongsan Well-Known Member

    Messages:
    1,054
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #6
    yes basically they work the same way
     
    javaongsan, Sep 28, 2008 IP
  7. myheartbeats

    myheartbeats Banned

    Messages:
    63
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    thank you javaongsan you helped me alot.. but i want to know one more thing....how to insert login page of orkut in my website...?i mean when a user enters his id and passward ..after verifying him he should be redirected into his profile ...he should be accessing orkut through my website...just like using open id but the orkut url must be proxified ..a website just like powerscrap
     
    myheartbeats, Sep 29, 2008 IP
  8. javaongsan

    javaongsan Well-Known Member

    Messages:
    1,054
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #8
    for that you need to use their apis
     
    javaongsan, Sep 29, 2008 IP
  9. myheartbeats

    myheartbeats Banned

    Messages:
    63
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    basically i wanna use a login form in my website..where the user will be directed into orkut profile after he gets login(if the login is correct).. i know that i can do it by using iframe with php .. but i dont know how to implement this..:( i mean where the action url for post should go.....?can you help me with this?
     
    myheartbeats, Sep 30, 2008 IP
  10. myheartbeats

    myheartbeats Banned

    Messages:
    63
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    dp contains no programmers :confused:..please help me to solve this problem
     
    myheartbeats, Oct 2, 2008 IP
  11. ezprint2008

    ezprint2008 Well-Known Member

    Messages:
    611
    Likes Received:
    15
    Best Answers:
    2
    Trophy Points:
    140
    Digital Goods:
    1
    #11

    you're asking the same question in a few other threads.
    I think you want somebody to code it for you for free?
    lol

    All programmers of any language have been exactly where you are right now. You're making a site and you need something coded to make it work. The only problem is, you dont know how to do that. So you go to some programmers forums and ask them to do it...and just like we all heard at some point along the way - nobody will code something entirely for you. If you post your code or a snippet of code then its acceptable to point our small glitches or code errors. But if you're trying to GET THE FREE code..especially for an entire log in and redirect system .. then you will rpobably spend more time asking than if you just go and learn it yourself. Hit the tutorials ..eventually you'll be happy that you did. You wont have to ask programmers to program things for you when you learn it for yourself. if you're making websites like that with a login system, then you're pretty much at the point where you need to learn to program. PHP is not exceedingly difficult by any means. Put your site on hold, and spend at least 3 to 6 months with PHP ..you'll be happy you did. So will the forum programmers. lol

    Are you any good at SEO?
    If you want to promote my website for a few hours a day , I'll teach you PHP . lol
     
    ezprint2008, Oct 2, 2008 IP
  12. javaongsan

    javaongsan Well-Known Member

    Messages:
    1,054
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #12
    There's a fundamental flaw in your approach. Maybe you like to clarify your objectives first.
     
    javaongsan, Oct 2, 2008 IP
  13. myheartbeats

    myheartbeats Banned

    Messages:
    63
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    i did not get you......!
     
    myheartbeats, Oct 3, 2008 IP
  14. javaongsan

    javaongsan Well-Known Member

    Messages:
    1,054
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #14
    What the benefit of logging in via your website an staying within the iframe? What the purpose of your model?
     
    javaongsan, Oct 3, 2008 IP
  15. myheartbeats

    myheartbeats Banned

    Messages:
    63
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    firstly
    i can access orkut.com in my colleage
    secondly
    if it is in iframe.. i can also add advertises in that page...
    but i dont know how to implemt this script :(
     
    myheartbeats, Oct 3, 2008 IP
  16. javaongsan

    javaongsan Well-Known Member

    Messages:
    1,054
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #16
    i see, you need a proxy. Build a proxy site.
     
    javaongsan, Oct 3, 2008 IP
  17. myheartbeats

    myheartbeats Banned

    Messages:
    63
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #17
    i dont need to use proxy scripts..www.ultimateweblogos.com is my website which is a proxy website..
    but this time i dont like to use.. i want my users to directly login to orkut/myspace and facebook.. ha just like powerscrap
     
    myheartbeats, Oct 3, 2008 IP
  18. ezprint2008

    ezprint2008 Well-Known Member

    Messages:
    611
    Likes Received:
    15
    Best Answers:
    2
    Trophy Points:
    140
    Digital Goods:
    1
    #18
    the code snippet for:
    method="post"
    action="Login.aspx?ReturnUrl=%2fframe.aspx&amp;&amp;acao=sair"

    looks like something that comes from a basic submit form - a user enters there information and clicks the form submit button. The page that its posting the information to is Login. So obviously its part of a login code.
    the method "POST" means that all variables / information entered will be hidden and passed to the Login page. the other method would be GET , and get displays the variables in the URL string like if you see a site that will say site*com/somepage.php?name=lisa&?last_name=Frufru ...or whatever
    for login scripts and most forms its good to just POST method. I would personally do that login in PHP instead of .asp because i know PHP better. but the form attributes are still very much the same to see that's what it clearly is.

    Out of curiosity... you dont know a lot of HTML?
    Because forms are basic HTML and then are worked into the program language for handling their info.

    a basic form:
    <form name="form_example" method="post" action="this-same-page.php">
    First Name: <input type="text" name="f_name" maxlength="20" size="30"><br>
    Last Name: <input type="text" name="l_name" maxlength="20" size="30"><br>
    <input type="submit" value="submit" onclick="this.form.submit">

    This would create two text boxes for first and last name ..and a submit button. The method for passing the variables that the user enters is POST (invisible , not displayed to URL string) The action in the opening form tag, shows what action will take place when its triggered by the end submit tag that does 'onclick="this.form.submit"

    Two of the most important tags of the form - the others of f_name and l_name are simply gathering information and displaying their text boxes for users to enter information into. they each have a specific name f_name, and l_name so as to label the data so when its shuffled around in scripts, you can keep track of which information youre calling and using. When the user clicks the submit button it sets off the 'onclick' ..and that means "when this button is clicked.. do this" and what its telling it to do , is to submit that form. That causes it to trigger the opening form tags 'action' attribute. The action specified in the action is action="this-same-page.php"
    So you see the action is to load that web site page called "this-same-page.php" (most times its the same page you're already on. ) But when it reloads this page while holding the first_name and last_name data, a script will appear at the top of the page as it relaods ..that tells it something like IF the variables f_name and l_name are not empty .. then process them and do all these lines of code with the information ..but if those variables ARE empty ..then nobody has used the form..so load the page normally without activating any fancy code or processes. etc

    so with that example, you can annalyze your code snippet and see what it is now.
     
    ezprint2008, Oct 3, 2008 IP
  19. myheartbeats

    myheartbeats Banned

    Messages:
    63
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #19
    thank you i learned alot after reading your post.. thanks again
     
    myheartbeats, Oct 3, 2008 IP