Jump to content

How can I achieve this using PHP?


jdock1

Recommended Posts

I was thinking of ways I could use use PHP to make an iframe dissapear when the user has clicked the submit button in the iframe.

 

I was thinking there is probably no way to tell if the user has submitted the form in the iframe?

 

I tried using unset(), with the iframe code being a variable. I echoed the iframed form, and placed a submit button below the iframe. When the user is done with the iframe form, they click the submit button below it and it will dissapear. Ive done that, but I was wondering would it be possible at all to make the frame dissapear once the user has clicked the submit button IN the iframe? If not possible with PHP maybe javascript?

 

IDK, suggestions would be appreciated.

 

Thanks

Link to comment
Share on other sites

I was thinking of ways I could use use PHP to make an iframe dissapear when the user has clicked the submit button in the iframe.

 

I was thinking there is probably no way to tell if the user has submitted the form in the iframe?

 

I tried using unset(), with the iframe code being a variable. I echoed the iframed form, and placed a submit button below the iframe. When the user is done with the iframe form, they click the submit button below it and it will dissapear. Ive done that, but I was wondering would it be possible at all to make the frame dissapear once the user has clicked the submit button IN the iframe? If not possible with PHP maybe javascript?

 

IDK, suggestions would be appreciated.

 

Thanks

 

depending on what the iframe is used for an AJAX repopulation of the innerhtml may be a better solution.

Link to comment
Share on other sites

 

I was thinking of ways I could use use PHP to make an iframe dissapear when the user has clicked the submit button in the iframe.

 

I was thinking there is probably no way to tell if the user has submitted the form in the iframe?

 

I tried using unset(), with the iframe code being a variable. I echoed the iframed form, and placed a submit button below the iframe. When the user is done with the iframe form, they click the submit button below it and it will dissapear. Ive done that, but I was wondering would it be possible at all to make the frame dissapear once the user has clicked the submit button IN the iframe? If not possible with PHP maybe javascript?

 

IDK, suggestions would be appreciated.

 

Thanks

 

 

depending on what the iframe is used for an AJAX repopulation of the innerhtml may be a better solution.

 

 

Im not very familiar with AJAX, but so innerhtml would be an AJAX function? This function may be able to achieve this? Were could I find documentation or some kind of manual for ajax?

 

Thanks for your reply

Link to comment
Share on other sites

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.