Sprout Posted June 25, 2010 Share Posted June 25, 2010 Problem page: http://test.webvillains.com/logger/register.php I decided that instead of recoding all my php processing forms I would stick my register page in an iframe so I could have both the login and register on the same page without incident with the same names assigned to the inputs. However, if you click the login button then for some reason I cannot figure out it is redirecting me to the source of the iframe.... Can anyone figure out how to make it stop doing that? Quote Link to comment https://forums.phpfreaks.com/topic/205812-why-is-my-input-button-redirecting-me-to-the-iframe-on-my-page/ Share on other sites More sharing options...
Sprout Posted June 25, 2010 Author Share Posted June 25, 2010 Alright, well I realized it's doing the exact same thing it was doing before it was in the iframe which is assigning the errors to both forms since they share a common name and it's for whatever reason redirecting me to the frame after doing that. Is there a way to isolate the iframe so that the process.php page doesn't read the iframe? Anyone have any other ideas? Quote Link to comment https://forums.phpfreaks.com/topic/205812-why-is-my-input-button-redirecting-me-to-the-iframe-on-my-page/#findComment-1076978 Share on other sites More sharing options...
pengu Posted June 25, 2010 Share Posted June 25, 2010 Problem page: http://test.webvillains.com/logger/register.php I decided that instead of recoding all my php processing forms I would stick my register page in an iframe so I could have both the login and register on the same page without incident with the same names assigned to the inputs. However, if you click the login button then for some reason I cannot figure out it is redirecting me to the source of the iframe.... Can anyone figure out how to make it stop doing that? Don't use iFrames, they're really bad. On that register.php page, click go back to main page and then click 'register' again. Watch it completely bugger up. Use a Header -- Content -- Footer system or something. Also would be a good idea to post up some code. Quote Link to comment https://forums.phpfreaks.com/topic/205812-why-is-my-input-button-redirecting-me-to-the-iframe-on-my-page/#findComment-1076979 Share on other sites More sharing options...
Sprout Posted June 25, 2010 Author Share Posted June 25, 2010 Well here is the original thread I made about why it's doing this to begin with. http://www.phpfreaks.com/forums/index.php/topic,302192.0.html Keep in mind I put it in an iframe since then so you won't be able to test the problem I say will happen in there. But essentially that outlines my problem, so is there a way to separate them without combing through and changing the process.php and session.php forms? Because I don't think I'm capable of properly doing that without totally fucking it up since I'm so new to PHP. Quote Link to comment https://forums.phpfreaks.com/topic/205812-why-is-my-input-button-redirecting-me-to-the-iframe-on-my-page/#findComment-1076980 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.