FlyerTalk Forums - View Single Post - Nearly automatic login to ba.com
View Single Post
Old Jun 6, 2006 | 10:43 am
  #1  
SLF
10 Countries Visited20 Countries Visited30 Countries Visited20 Years on Site
 
Join Date: Sep 2004
Location: Europe
Programs: Various
Posts: 3,087
Nearly automatic login to ba.com

For a while I've used a semi-automatic login mechanism to ba.com. I thought I'd share this. Seeing as the "remember me" function doesn't.

Apologies - this assumes some familiarity with HTML coding.

WARNING: using this technique will enable anyone who has access to the file you create the ability to log into your BA EC account. If you don't feel comfortable being able to protect the file you create from prying eyes, then do not do this!!


This will work if you have a browser home page somewhere into which you can insert the following code. Note that there are two fields you need to customize, i.e. adding in your EC number and your PIN. If you want, you can also change the button label. For multiple logins (e.g. a household) simply repeat the entries.

In use - note that when you hit the button you will probably get a "please enable cookies" message. Simply hit the browser BACK button, and then use the button again - you'll be logged in automatically the second time.

Code:
<p>Login to BA:
<form action="https://www.britishairways.com/travel/loginr/public/en_gb?eId=109001" method="post">
<input type="hidden" name="membershipNumber" id="membershipNumber" value="ECNumber">
<input type="hidden" name="password" id="password" value="PIN">
<input type="submit" value="ba.com">
</form>
If you need help in making this usable, copy & paste the following & save it into a .HTML file. Don't forget to customize the red fields. Then open the newly saved file with your browser, bookmark it and you're set...

Code:
<html><head><title>Ba.com login</title></head><body>
<p>Login to BA:
<form action="https://www.britishairways.com/travel/loginr/public/en_gb?eId=109001" method="post">
<input type="hidden" name="membershipNumber" id="membershipNumber" value="ECNumber">
<input type="hidden" name="password" id="password" value="PIN">
<input type="submit" value="ba.com">
</form></body></html>
SLF is offline