Jump to content

Open a modal window with php redirect


Toony

Recommended Posts

Hello,

Basically I'm working/editing a file upload script, at the moment the client uploads a file via a form, if successful the client is redirected (via redirect ("domain.com")) to a success page.

What I want to happen is rather then opening a new page for the success page I would like to have it open up in a [url=http://www.subimage.com/dhtml/subModal]modal window[/url] or this [url=http://jquery.com/demo/thickbox/]version[/url].

Both of which use JS, I would like to know how I would go about adding this to the redirect or header function.

Btw I am a newbie to PHP.

Many thanks


Link to comment
Share on other sites

Thanks Ted,

On submit of the form the file attached is checked for size and mime type, if all is Ok then the user is redirected to a sucsess.php page. In the index.php file the final line of the php code is

[code]redirect ("success.php")[/code]

What I want to do is open the success page as a model window using the JS scripts linked in the 1st post, so I want to know if it’s possible to apply JS in the php code, to the redirect.

If JS is turned of I would like it to redirect to the success page as normal.

Apologises if I have not explained myself well.
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.