www.webdeveloper.com
Results 1 to 3 of 3

Thread: Redirecting

  1. #1
    Join Date
    Nov 2007
    Posts
    21

    Redirecting

    I've run through this my head many times and I cannot find a simple solution.

    I want to have this sort of redirect page that will redirect after a certain amount time, say 3 seconds, and in the direct page I want to display a message based on the previous page's message.

    For example I have a profile page and users can edit their profile. When they click submit I want them to be directed to a page that tells them to wait 3 seconds and tell them their profile has been updated.

  2. #2
    Join Date
    Nov 2007
    Posts
    21
    Maybe this will help what i'm faced up against:

    ...Snip of code...
    if(something)
    {
    $success[] = You've done something correct;

    ... Now I need to redirect to the redirect page to display this message ...
    }

  3. #3
    Join Date
    Apr 2007
    Posts
    133
    You could use meta tags on your page.
    PHP Code:
    //All previous code UPDATE etc............
    $query "UPDATE ....................";
    mysql_query($query);

    echo 
    "<meta http-equiv='refresh' content='3; URL=http://yoursite.com/updatedpage.php'>";
      <!-- 
    refreshing rate 3 seconds  --> 
    then on your updatedpage.php display the required message,

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles