Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Mar 2010
    Posts
    104
    Member #
    21316
    Liked
    1 times
    Hi,

    I am busy testing out a lightbox form that I'm working on and I've got all to work except the "success" or "thank you" page.
    Basically I want the user to fill in the online form and when the they are click 'submit', the "thank you" message or page resolves in the same lightbox that the form was in.

    Go to www.testing123.co.za/test.htm and click on that link you see saying "AJAX SuperBox".
    The lightbox is opening up an HTML page within in the test.htm page (basically acting like an iFrame?).
    When I click submit, the page resolves to the success.htm page (which is should) but not in the lightbox frame.

    I don't want visitors to leave the test.htm page.

    My headers at the bottom of my process php form shows as:

    Code:
    ';
        $headers  = "From: $from\r\nBCC:{$bcc}\r\n";
        $headers .= "Content-type: text/html\r\n";
        $success = mail($to, $subject, $sBodyNew, $headers);
        header('Location: http://www.testing123.co.za/success.htm');
    ?>
    I assume the Location url above needs code added to it so that it works within the lightbox?

    Or is there an easier way to do this?

    Thanks guys!

  2.  

  3. #2
    Senior Member Webzarus's Avatar
    Join Date
    May 2011
    Location
    South Carolina Coast
    Posts
    3,322
    Member #
    27709
    Liked
    770 times
    I'm on an iPhone and can't see all the code, but have you tried setting a target to _self on the page that the form is suppose to ?

  4. #3
    Senior Member MHometchko's Avatar
    Join Date
    Oct 2011
    Posts
    106
    Member #
    29723
    Liked
    19 times
    The link doesn't work but I would assume your problem is in the target attribute as Webzarus stated.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 05:52 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com