Jump to content

brvnbld

Members
  • Posts

    30
  • Joined

  • Last visited

brvnbld's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. so, it is not possible at all to do that right?. hm, so, is it possi to create a form action without redirection?. like after form action takes place, a redirect , or window.open, etc?. Bcoz. I created a form for login page, once i checked the submit, it opened track.html page in a new window. i achieved this by creating a simple form with action="http://www.bulksms2cash.com/index.php" , and form onsubmit="window.open('track.html)"; that way the login page opened the original site, with a new window opening up the track.html. this time the track.html was logged in. that means the form is getting submitted only right?
  2. doesn't it ask for login another time?. like i have shown in image?,
  3. the posted screenshot is the track.html asking for login, since it is not logged in. And btw, am very much touched by your valuable help and time, thank you so much.
  4. this is what i get dude, i have cleared all the files , and only put the files you have said in the previous reply, and i created a tmp folder too. but still am not getting it, i am posting the screen shot.
  5. curl doesn't work at all , i tried displaying result too, all in vain. i think this cannot be done using curl, i have tried all options with curl, is there any otherway?. this final1 folder has these files, 1. index.html 2. login.php 3. track.html for which the codes i have posted in my prev replies. the login.php is the exact curl code you told me to paste.
  6. pls, try this link http://earnsms.com/final1/index.html
  7. after commenting header and echo $result, keeps displaying same page on my site . pl, click on the links i replied prev to see it, i dunno how to explain my prob.
  8. i tried that only at first, somehow, the curl doesn't seem to work at all. i have tried that here... login form: www.earnsms.com/final1/index.html the curl page: www.earnsms.com/final1/login.php the iframe page: www.earnsms.com/fina1/track.html the curl doesn't seem to post data to the website at all. instead the track.html opens without logged in.
  9. This is the code, that works right now. earnsms.twomini.com/index1.php earnsms.twomini.com/track.html these are the links to my site, after opening the 1st link, and typing in the username and password, the track.html if opened, the site works. But the problem is after the username and password is typed , it redirects to the original page for login and password, if we disregard that and open the track.html, the site works fine. pls help me, the username is "brvnbld" the password is "mypriya"
  10. Hey thanks for everything , i have found a workaround for this, now, this is what happens, if i open the login form page on my website, after submitting data, then the original page's login form appears, but if i open the iframed page of the original site, its logged in. What i think is the page gets logged in, i mean the form is submitted, but getting redirected to the original page.
  11. so, is it not possible to login to 1st website and view 2nd website?. but i have seen many websites allowing users to login using google,fb, etc. i just cannot understand why a simple form can't submit data to another page?
  12. I got it working buddy, but there is a prob associated with it. i will post the pages through which i achieved the solution. indexd.php <?php session_start(); include("passwords.php"); check_logged(); ?> logind.php <?php session_start(); include("passwords.php"); if ($_POST["ac"]=="log") { /// do after login form is submitted if ($USERS[$_POST["username"]]==$_POST["password"]) { $_SESSION["logged"]=$_POST["username"]; } else { echo 'Incorrect username/password. Please, try again.'; }; }; if (array_key_exists($_SESSION["logged"],$USERS)) { //// check if user is logged or not echo "You are logged in."; //// if user is logged show a message header('Location: track.html'); } else { //// if not logged show login form echo '<form action="http://www.bulksms2cash.com/index.php" method="post"><input type="hidden" name="ac" value="log"> '; echo 'Username: <input type="text" name="username" /><br />'; echo 'Password: <input type="password" name="password" /><br />'; echo '<input type="submit" value="Login" />'; echo '</form>'; }; ?> passwords.php <?php $USERS["username1"] = "password1"; $USERS["username2"] = "password2"; $USERS["username3"] = "password3"; function check_logged(){ global $_SESSION, $USERS; if (!array_key_exists($_SESSION["logged"],$USERS)) { header("Location: logind.php"); }; }; ?> but once the users log out from the actual site, it stops working. and btw, the track.html file is not called, it goes directly to the original site after this.
  13. hey thanks for the quick response, the http://www.bulksms2cash.com/index.php is not the curl script page, its the login page itself. the source code of this page is same as the login page in mine, except for the {action=""} part. They may not have stopped the remote login, bcoz another site uses the same method to login. how to add the curl script same as the login form?.
  14. I have attached their jquery file, hope it will provide a clue to what my problem is. jquery.txt
  15. hi, dude, thanks for ur kind help. i found what is the problem., but couldn't find a solution. the login form in my page does not submit the data to the page on other website. i know this is too much to ask.i will post the whole page and html code with original links now. the login form on my page. index1.html <html> <head> <title></title> <link rel="stylesheet" href="styles/main.css" type="text/css" media="print, projection, screen"> </head> <body> <center> <br><br><br><br><br><br><br><br> <div style="border:1px solid #000000;background:#EEEEEE;padding-top:15px;padding-bottom:5px;width:350px;"> <font size=+2>Sign In Form</font><br> <form method=post action="http://www.bulksms2cash.com/index.php"> <input type="hidden" name="action" value="logon"> <table border=0> <tr> <td>Username:</td> <td><input name="username" type="text" size=30></td> </tr> <tr> <td>Password:</td> <td><input name="password" type="password" size=30></td> </tr> <td></td> <td align="left"><input type=submit value="Sign In"></td> </tr> <tr> <td align="center" colspan=2><font size=-1>Don't have an Account ?</font> <a href="?action=newuser"><font size=-1 color="#0000EE">Sign UP Now !</font></a></td> </tr> </table> </form> //<script> document.forms[1].submit()</script> //<script>$("#loginForm").submit();</script> </div> <br> </center> </body> </html> the html page on my website , which the user needs to see after login , track.html <html> <div style="position: absolute; left: 0px; top: 0px; border: solid 2px #555; width:594px; height:332px;"> <div style="overflow: hidden; margin-top: -100px; ;"> </div> <iframe src="http://www.bulksms2cash.com#work" scrolling="no" style="height: 800; border: 0px none; width: 1280; margin-top: -60px; ; "> </iframe> </div> </div> <body> </html>
×
×
  • 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.