NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Login Box Integration?

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
5 members in live chat ~  


Reply
 
LinkBack Thread Tools
Old 12-09-2010, 05:35 PM THREAD STARTER               #1 (permalink)
www.bpdir.com
 
dezinerite's Avatar
Join Date: Jul 2007
Posts: 3,055
dezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond repute
 



Wildlife Breast Cancer Ethan Allen Fund Tsunami Relief AIDS/HIV

Login Box Integration?


I'm redeveloping a site for a client. They have already installed a PHP mail software on a subdomain.

They want to add a login box on their front page (which is on a whole other domain name).

How do I go about integrating this login box?

Thanks!

dezinerite is offline   Reply With Quote
Old 12-09-2010, 07:13 PM   #2 (permalink)
NamePros Regular
 
baxter's Avatar
Join Date: Apr 2006
Posts: 360
baxter is just really nicebaxter is just really nicebaxter is just really nicebaxter is just really nice
 


Ethan Allen Fund Save The Children
just change the action tag of the form to the login script of the mail system.

Assuming SiteA.ca is the mail system, and its authentication script is login.php, and SiteB.ca is the other domain. On SiteB.ca's login form you would put the following:

Code:
<form action="http://www.SiteA.ca/login.php" method="post">
  ...
</form>
It would then make a post request to the mail system and log them in, this will only work if siteA.ca does not use basically any security measures like Captcha, hashing etc..
__________________
Canadian Domain Registrar Ready.ca
baxter is offline   Reply With Quote
Old 12-09-2010, 07:32 PM   #3 (permalink)
NamePros Regular
 
tiawood's Avatar
Join Date: Oct 2008
Location: Florida
Posts: 450
tiawood is a splendid one to beholdtiawood is a splendid one to beholdtiawood is a splendid one to beholdtiawood is a splendid one to beholdtiawood is a splendid one to beholdtiawood is a splendid one to beholdtiawood is a splendid one to beholdtiawood is a splendid one to behold
 




Originally Posted by dezinerite View Post
They have already installed a PHP mail software on a subdomain.
????: NamePros.com http://www.namepros.com/programming/691058-login-box-integration.html

They want to add a login box on their front page (which is on a whole other domain name).
I'm not entirely sure of your scenario or what you mean by "PHP mail software" and baxter may be dead on...

But if Site A resides on the same server as Site B, you could write a login script to query the same database. Are you trying to query the same database?

Or are you trying to reach a database on an entirely different server? If so, you can write two php scripts: one on Site A(sender) and one on Site B(receiver). Site A can talk to Site B via PHP & CURL.

Another option is to send requests via Ajax to Site B.

But again, I am not entirely sure of your scenario...
Last edited by tiawood; 12-09-2010 at 07:36 PM.
tiawood is offline   Reply With Quote
Old 12-09-2010, 09:26 PM THREAD STARTER               #4 (permalink)
www.bpdir.com
 
dezinerite's Avatar
Join Date: Jul 2007
Posts: 3,055
dezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond reputedezinerite has a reputation beyond repute
 



Wildlife Breast Cancer Ethan Allen Fund Tsunami Relief AIDS/HIV
Thanks for helping out baxter and tiawood. Both sites are on the same server, but different domain names.

Sorry I should have been clearer about the 'PHP mail software' - they're using a webmail php-based software.
dezinerite is offline   Reply With Quote
Old 12-21-2010, 09:38 PM   #5 (permalink)
NamePros Member
Join Date: Nov 2010
Posts: 34
pausch is an unknown quantity at this point
 



Thanks for giving detailed description of adding PHP mail box. It is pretty helpful for me.
pausch is offline   Reply With Quote
Old 12-22-2010, 03:35 AM   #6 (permalink)
 
BillyConnite's Avatar
Join Date: Jul 2005
Location: Coffs H, Australia
Posts: 3,456
BillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond repute
 


Wildlife Parkinson's Disease Parkinson's Disease
dezinerite, all you need are the input names from the current login page, then rewrite a form with those same names, and setting the 'action=' tag to the current login URL.

If the current login does use some kind of image verification, it may still be possible to utilize that.

If that doesn't make any sense, can you post a link to the page where they currently log in to their mail? Or PM it to me if you wish. With that i can grab the input names from it, and create a new html form for you.

Let me know if you haven't fixed this already.

-Rhett.
BillyConnite is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
The wordpress theme thread. cskanna Free Resources 3955 08-13-2010 11:39 AM
cPanel Login Script NetworkTown.Net CODE 2 08-09-2006 09:46 AM
problem with PHP Login script Rudy Programming 3 05-18-2006 05:16 PM
Googlism - What does google think of you? deadserious The Break Room 55 12-15-2005 09:09 AM
How do you create a batch file without a Dos box? Rhino1616 Programming 5 07-17-2003 03:16 PM

 
All times are GMT -7. The time now is 02:42 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger