Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 117,540 PHP Programmers for FREE! Ask your question and get quick answers from experts. There are 1,693 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Loaded div from external php, redirect to top of page on login?

 
Reply to this topicStart new topic

Loaded div from external php, redirect to top of page on login?, Just read it.... it should make more sense....

BenignDesign
post 11 May, 2008 - 10:04 PM
Post #1


Dorkerella

Group Icon
Joined: 28 Sep, 2007
Posts: 841



Thanked 2 times

Dream Kudos: 150
My Contributions


Ok.... I have encountered an issue in the super-duper test site for my never ending job interview.

My version of the site in question is at http://benign-design.net/pittbull/index.php .

On the index page, you will notice a login box. This login is actually another page loaded into the division.
What I need it to do is redirect to the store front on login. It does this now, but it only redirects the little tiny box that contains the username and password boxes.

Is it possible - and if so, how is it done - to force the redirect to open in the top of the page (as target="_top" would do in HTML)?

I have tried
CODE

header (echo '<meta http-equiv="REFRESH" content="0;url='. $url .'" target="_blank" />';);


and a bizarre javascript solution I found on Google.... nothing is working.... anyone have any ideas for me?

Your help is VERY VERY much appreciated! Thanks, guys!

*Edit* The forgot password link in the little login box does exactly what I want the redirect on login to do... in case my original description wasn't quite clear.... it's late, I'm tired and my brain shut down 4 hours ago... my apologies if nothing makes sense.

This post has been edited by BenignDesign: 11 May, 2008 - 10:07 PM
User is offlineProfile CardPM

Go to the top of the page


joeyadms
post 11 May, 2008 - 10:30 PM
Post #2


D.I.C Head

Group Icon
Joined: 4 May, 2008
Posts: 145



Thanked 6 times

Dream Kudos: 600
My Contributions


I would highly suggest not using frames, unless it is a part of your interview.

The only solution that comes to mind, is using onsubmit on the form and point to a js function that passes the vars and redirects the page.

The best solution would be to edit the form page, make it just include the form data, and include it via php, or even better, just code the form to the page.
User is offlineProfile CardPM

Go to the top of the page

BenignDesign
post 12 May, 2008 - 03:57 AM
Post #3


Dorkerella

Group Icon
Joined: 28 Sep, 2007
Posts: 841



Thanked 2 times

Dream Kudos: 150
My Contributions


Thanks for the reply.... I figured it out.... it was an error in my directory structure. Yay!
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 10/7/08 05:14PM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month