Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Is there any way to do this in PHP (or with a combination of JS)?
Old 11-19-2009, 11:26 PM Is there any way to do this in PHP (or with a combination of JS)?
Banned

Posts: 81
Location: kavoir.com
Trades: 0
There's a login form on page A: http://www.example.com/A.html

The 'action' attribute of which is: action="/B.html"

So when someone logs in with the form on A.html, the data will be submitted to / visitor redirected to B.html.

Now what I want is: there's an <iframe></iframe> on /C.html, framing B.html, is there any way so that when someone logs in with the form on A.html, the visitor is redirected to C.html and the login details is submitted to B.html that's framed on C.html in the <iframe></iframe>? So after the person logs in from A.html, he arrives at C.html with the actual CP dashboard framed in an <iframe>.

I have absolutely no clue in achieving this. Maybe the form will be submitted to C.html first and C.html submits the login details to B.html (framed in C.html) via JavaScript? How?
yangyang is offline
Reply With Quote
View Public Profile Visit yangyang's homepage!
 
 
Register now for full access!
Old 11-20-2009, 12:59 AM Re: Is there any way to do this in PHP (or with a combination of JS)?
Novice Talker

Posts: 8
Name: Sean
Trades: 0
How about this... Why don't you have the user get logged in on A.html then if a valid loggin then redirects via PHP's header function to page C.html which is framing B.html

Here is the PHP header function that will redirect, which I was referring to.
PHP Code:
Header('Location: C.html'); 
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
thepromoshop is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Is there any way to do this in PHP (or with a combination of JS)?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09594 seconds with 12 queries