| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| www.bpdir.com Join Date: Jul 2007
Posts: 3,055
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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! ![]() |
| | |
| | #2 (permalink) |
| NamePros Regular Join Date: Apr 2006
Posts: 360
![]() ![]() ![]() ![]() | 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>
__________________ Canadian Domain Registrar Ready.ca |
| | |
| | #3 (permalink) | ||||
| NamePros Regular Join Date: Oct 2008 Location: Florida
Posts: 450
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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...
__________________ ██ 6 Website HotSpots You May Have Missed | Custom Web Development & Graphic Deals ██
Last edited by tiawood; 12-09-2010 at 07:36 PM.
| ||||
| | |
| | THREAD STARTER #4 (permalink) |
| www.bpdir.com Join Date: Jul 2007
Posts: 3,055
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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. |
| | |
| | #6 (permalink) |
![]() Join Date: Jul 2005 Location: Coffs H, Australia
Posts: 3,456
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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.
__________________ Free Forums / GoDaddy Coupon Codes (NEW DOMAIN!) / Free Arcade Script / <?='Your computer is '.(1?fine:broken).'.'?> |
| | |
![]() |
| 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 |