Jump to content

420blaze

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

420blaze's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. so what exactly is to be done? this is what i have sofar: [code] <?php $iframe_loc = $remote_url="http://www.remotesite.aspx" . "?username=" . $_SESSION['username'] . "&password=" . $_SESSION['password']; ?> <iframe src="<?php echo($iframe_loc); ?>" [/code] is this code correct? Because for some reason it is not working.... anyone??? your help is greatly appreciated
  2. I have the username and password stored in a database which has to be retrieved using php.... because there are different users with different passwords, entering a static value does me no good... the point is  to retrieve the info dynamically... so i can't actually define a specific static value because then every users info is different.
  3. The problem im having, is writing the actual code that retrieves the user name and passwordin  in those "$user=" & "&pass=" fields... can anyone give an example code of what goes in there??? sorry...im a big noob :(
  4. after the = sign, am i supposed to type the actual username or password? because the whole point is so that it retrieves the user/pass from a database
  5. well, im not sure what to make of the feilds in red...i understand that they are database feilds but  what exactly is the syntax to be used there???
  6. [quote author=mewhocorrupts link=topic=103330.msg411392#msg411392 date=1154986946] Correct me if I'm wrong, but the following should work. PHP would be something similar to this. [code] <?php ..... $iframe_loc = $remote_url . "?user=" . $_SESSION['user'] . "&pass=" . $_SESSION['pass']; ..... ?> [/code] HTML should look something like this. [code] <iframe src="<?php echo($iframe_loc); ?>"> </iframe> [/code] [/quote] mewhocorrupts, i got very close to solving my problem using your code...can you please elaborate a bit more???? Im almost there but im doing something wrong... THANKS!!!
  7. I am not using ASP. I am using PHP. The external website just happens to be an asp site. So far, this is what I've come up with so far (but it doesnt include the database source website): <iframe src="http://www.address.aspx?username=<?php echo $row_rshandicapping['GSID']; ?>&password=<?php echo $row_rshandicapping['password']; ?>" Im not sure if this is correct... Your help would be greatly appreciated!!!
  8. Ok, I've been at this all day and I feel like  smashing my computer with a sledgehammer by now! PLEASE HELP!!!!!!! It sounds simple:  I am trying to log-in to a website by passing the  username and password through a URL parameter. The problem is that different people will have different user/pass so the login information is located on a database (mysql) and must be retrieved using php! People will already be logged in to a session variable! I am simply loading an external website through an iframe and trying to get it to log in automatically using this method: > http://www.address.aspx?username=xxxx&password=yyyyy I understand that the xxxx and the yyyyy must reference their corresponding fields in my database. The problem is that MY database is on MY server and "address.aspx" is an external site. How do I reference the external site AND my database AND the correct database field. THANK YOU!!!!!
×
×
  • 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.