Jump to content

Why is my input button redirecting me to the iframe on my page?


Recommended Posts

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?

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?

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.

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.