Timer before return to the input page

Summary:
I have a working page. User inputs their details. Clicks on Submit. Writes to the database table. Goes off to this acknowledgement page.
I want to pause the page (the acknowledgement page) for awhile before returning to the form again.
Question:
At the moment, after the Submit, the acknowledge page display and the session ends there. I need to redirect it back to the user input form. Please advice. How will I achieve this, What code to include? Where to include the piece of code? Thank you.
Source Code:
<?php require_once('Connections/dbAttendance.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;   
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  return $theValue;
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
  $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form")) {
  $insertSQL = sprintf("INSERT INTO attendlist (Windowsid, title, firstname, surname, extension, mobile, jobrole, course, cpg, mgrname, room) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                       GetSQLValueString($_POST['textfield'], "text"),
                       GetSQLValueString($_POST['select'], "text"),
                       GetSQLValueString($_POST['textfield2'], "text"),
                       GetSQLValueString($_POST['textfield3'], "text"),
                       GetSQLValueString($_POST['textfield4'], "text"),
                       GetSQLValueString($_POST['textfield5'], "text"),
                       GetSQLValueString($_POST['select5'], "text"),
                       GetSQLValueString($_POST['select2'], "text"),
                       GetSQLValueString($_POST['select4'], "text"),
                       GetSQLValueString($_POST['textfield7'], "text"),
                       GetSQLValueString($_POST['select3'], "text"));
  mysql_select_db($database_dbAttendance, $dbAttendance);
  $Result1 = mysql_query($insertSQL, $dbAttendance) or die(mysql_error());
  $insertGoTo = "Thankyou.php";
  if (isset($_SERVER['QUERY_STRING'])) {
    $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
    $insertGoTo .= $_SERVER['QUERY_STRING'];
  header(sprintf("Location: %s", $insertGoTo));
mysql_select_db($database_dbAttendance, $dbAttendance);
$query_rsAttendance = "SELECT * FROM attendlist";
$rsAttendance = mysql_query($query_rsAttendance, $dbAttendance) or die(mysql_error());
$row_rsAttendance = mysql_fetch_assoc($rsAttendance);
$totalRows_rsAttendance = mysql_num_rows($rsAttendance);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Delegate Register</title>
<link href="Registerpage.css" rel="stylesheet" type="text/css" />
<link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
<link href="SpryAssets/SpryValidationSelect.css" rel="stylesheet" type="text/css" />
<script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
<script src="SpryAssets/SpryValidationSelect.js" type="text/javascript"></script>
</head>
<?php
$date = date(“format”, $timestamp);
?>
<body>
<div class="container">
  <div class="header"><img src="Cerner At Imperial2.jpg" width="960" height="150" alt="" /><!-- end .header --></div>
  <div class="content">
    <h3>Register: <?php echo "Date  - ".date("d/m/Y - H:ia")?></h3>
    <form action="<?php echo $editFormAction; ?>" method="post" name="form">
      <table width="780" border="0">
        <tr>
          <td><div align="right">User ID *</div></td>
          <td><span id="sprytextfield1">
            <input name="textfield" type="text" id="textfield" tabindex="1" size="18" maxlength="10" />
          <span class="textfieldRequiredMsg">A value is required.</span></span></td>
          <td> </td>
        </tr>
        <tr>
          <td><div align="right">Title *</div></td>
          <td><span id="spryselect1">
            <select name="select" id="select" tabindex="2">
              <option value="0">Select</option>
              <option value="1">Ms</option>
              <option value="2">Mrs</option>
              <option value="3">Mdm</option>
              <option value="4">Dr</option>
              <option value="5">Mr</option>
              <option value="6">Prof</option>
            </select>
          <span class="selectRequiredMsg">Please select an item.</span></span></td>
          <td> </td>
        </tr>
        <tr>
          <td><div align="right">First name*</div></td>
          <td><span id="sprytextfield2">
            <input name="textfield2" type="text" id="textfield2" tabindex="3" size="30" maxlength="30" />
          <span class="textfieldRequiredMsg">A value is required.</span></span></td>
          <td> </td>
        </tr>
        <tr>
          <td><div align="right">Surname *</div></td>
          <td><span id="sprytextfield3">
            <input name="textfield3" type="text" id="textfield3" tabindex="4" size="30" maxlength="30" />
          <span class="textfieldRequiredMsg">A value is required.</span></span></td>
          <td> </td>
        </tr>
        <tr>
          <td><div align="right">Contact / Bleep *</div></td>
          <td><span id="sprytextfield4">
            <input name="textfield4" type="text" id="textfield4" tabindex="5" size="30" maxlength="30" />
          <span class="textfieldRequiredMsg">A value is required.</span></span></td>
          <td> </td>
        </tr>
        <tr>
          <td><div align="right">Mobile no: (optional)</div></td>
          <td><input name="textfield5" type="text" id="textfield5" tabindex="6" size="20" maxlength="20" /></td>
          <td> </td>
        </tr>
        <tr>
          <td> </td>
          <td> </td>
          <td> </td>
        </tr>
        <tr>
          <td><div align="right">Job Role *</div></td>
          <td><span id="spryselect5">
            <select name="select5" id="select5" tabindex="7">
              <option value="0">Select </option>
              <option value="1">Doctor</option>
              <option value="2">Nurse IP</option>
              <option value="3">Nurse OP</option>
              <option value="4">Midwife</option>
              <option value="5">Booking Clerk</option>
              <option value="6">Medical Secretary</option>
              <option value="7">OP Receptionist</option>
              <option value="9">CNS/NP</option>
              <option value="10">Tester</option>
            </select>
          <span class="selectRequiredMsg">Please select an item.</span></span></td>
          <td> </td>
        </tr>
        <tr>
          <td><div align="right">Manager's Name *</div></td>
          <td><span id="sprytextfield5">
            <input name="textfield7" type="text" id="textfield7" tabindex="8" size="30" maxlength="30" />
          <span class="textfieldRequiredMsg">A value is required.</span></span></td>
          <td> </td>
        </tr>
        <tr>
          <td> </td>
          <td> </td>
          <td> </td>
        </tr>
        <tr>
          <td> </td>
          <td> </td>
          <td> </td>
        </tr>
        <tr>
          <td><div align="right">Course *</div></td>
          <td><span id="spryselect2">
            <select name="select2" id="select2" tabindex="9">
              <option value="0">Select</option>
              <option value="1">Demo</option>
              <option value="2">Doctors</option>
              <option value="9">CNS/NP</option>
              <option value="3">Nurse IP</option>
              <option value="4">Nurse OP</option>
              <option value="5">Midwife</option>
              <option value="6">Booking Clerk</option>
              <option value="7">Medical Secretary</option>
              <option value="8">OP Receptionist</option>
            </select>
          <span class="selectRequiredMsg">Please select an item.</span></span></td>
          <td> </td>
        </tr>
        <tr>
          <td><div align="right">Location *</div></td>
          <td><span id="spryselect3">
            <select name="select3" id="select3" tabindex="10">
              <option value="0">Select </option>
              <option value="1">CHX 12 Floor Rm 1</option>
              <option value="2">CHX 12 Floor Rm 2</option>
              <option value="3">CHX 10 West </option>
              <option value="4">HH N207 </option>
              <option value="5">HH W12 Conference</option>
              <option value="6">SMH Rm a</option>
              <option value="7">SMH Rm b</option>
              <option value="8">SMH Ming Wing Rm 5</option>
              <option value="9">SMH Ming Wing Rm 3</option>
            </select>
          <span class="selectRequiredMsg">Please select an item.</span></span></td>
          <td> </td>
        </tr>
        <tr>
          <td><div align="right">CPG *</div></td>
          <td><span id="spryselect4">
            <select name="select4" id="select4" tabindex="11">
              <option value="0">Select </option>
              <option value="1">CPG 1 - Medicine</option>
              <option value="2">CPG 2 - Surgery and Cancer</option>
              <option value="3">CPG 3 - Specialist Services </option>
              <option value="4">CPG 4 - Circulatory Services and Renal Medicine</option>
              <option value="5">CPG 5 - Womens and Children</option>
              <option value="6">CPG 6 - Clinical and Investigative Sciences</option>
              <option value="7">CPG 7 - Private Patients</option>
              <option value="8">Others</option>
            </select>
          <span class="selectRequiredMsg">Please select an item.</span></span></td>
          <td> </td>
        </tr>
        <tr>
          <td> </td>
          <td><input name="button" type="submit" id="button" value="Submit" /></td>
          <td> </td>
        </tr>
        <tr>
          <td><div align="center">*Mandatory fields </div></td>
          <td> </td>
          <td> </td>
        </tr>
      </table>
      <input type="hidden" name="MM_insert" value="form" />
    </form>
<!-- end .content --></div>
  <div class="footer">
<p align="center">
    <a href="http://validator.w3.org/check?uri=referer"><img
      src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a>
      <p align="center"> Cerner@Imperial ICT Training Team </p>
</p>
  <!-- end .footer --></div>
  <!-- end .container --></div>
<script type="text/javascript">
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "none", {validateOn:["blur", "change"]});
var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1", {validateOn:["change", "blur"]});
var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2", "none", {validateOn:["blur", "change"]});
var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3", "none", {validateOn:["blur", "change"]});
var sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5", "none", {validateOn:["blur", "change"]});
var spryselect2 = new Spry.Widget.ValidationSelect("spryselect2", {validateOn:["change", "blur"]});
var spryselect3 = new Spry.Widget.ValidationSelect("spryselect3", {validateOn:["change", "blur"]});
var spryselect4 = new Spry.Widget.ValidationSelect("spryselect4", {validateOn:["change", "blur"]});
var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4", "none", {validateOn:["blur", "change"]});
var spryselect5 = new Spry.Widget.ValidationSelect("spryselect5", {validateOn:["blur", "change"]});
</script>
</body>
</html>
<?php
mysql_free_result($rsAttendance);
?>

Eugene
The forums are displayed in an iframe. Therefore, if you wanted to simply refresh the forums to the exact page that you have navigated to, you should right-click on the content area of SDN (the forums page) and choose the refresh option. This will refresh this window and should keep your place marker. If you refresh the URL in the browser window then this will refresh the entire SDN page and will take you to the entry point of the forums.
I hope this helps
D

Similar Messages

  • I have tried to set my homepage to a specific website. However, whenever I open a new Safari window, it always returns to the last page I was at before I closed Safari. Any ideas? I did this was Safari preferences, open new window to homepage...

    I have tried to set my homepage to a specific website. However, whenever I open a new Safari window, it always returns to the last page I was at before I closed Safari. Any ideas? I did this under Safari preferences, open new window to homepage...

    Safari is opening using the resume feature. To disable that, quit Safari using Command+Option+Q or Hold Option when choosing the menu item Safari>Quit.

  • How do i change the start up page i have changed in tools but returns to the unwanted page at startup

    i changed the start up page in tools / options and when i restart Firefox it returns to the unwanted page
    i installed bit comet and winxdvd programs i was browsing some other sites at the time so i am not sure if those programs were the problem or not

    See http://kb.mozillazine.org/Preferences_not_saved

  • If I am browsing on site such as Ebay or any shopping site, and click on an item, when I return to the search page I am once again at the top of the page and have to search down for where I was in the list of items.

    If I am browsing on site such as Ebay or any shopping site and click on an item, when I return to the search page I am once again at the top of the page and have to search down for where I was in the list of items. This is not only on Ebay it is everywhere I search. Firefox goes back to the top of the page . It is annoying to have to figure out exactly where I was if I left the page and then returned. This is a hinderance when using Firefox. I have considered uninstalling it because of the inconvenience of 're-searching' after already doing a search. Firefox used to take me right back to where I was if I left a page, but that feature is not working now. I am not sure how to change this in the settings.

    Open the Finder. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following:
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.

  • How can I remember the last place I browsed? When I return to the main page it would be great if a marking of some kind would show the last place I browsed.

    When I return to the main browsing page after checking a site it would be great if the last place I checked would highlight on the main browsing page or have an indicator of some sort to let me know.
    When returning to the Browsing page it is difficult to remember which link I clicked on and have to guess or start over again so can someone let me know how to do this if it can be done?
    Can't remember but I think that you can do this with Internet Explorer.
    Thank you.

    I am not sure exactly what you are trying to do but firefox calls favorites bookmarks, and has a variety of methods of making, sorting and displaying these, it also stores your 'history' and lets you see that or use it in the location bar search.
    Have a look at some of the following
    * [[Bookmarks]] <-- coloured text is a clickable link --
    * [[Location bar autocomplete]]
    *[[Browsing basics#w_retracing-your-steps]] <-- this is a long article it will scroll up and down once opened

  • How to i get rid of the redirect notice it shows up on my safari whenever i try to go to a different page  it says "the previous page is sending you to: LINK if you do not want to visit this page, you can return to the previous page"

    How to i get rid of the redirect notice it shows up on my safari whenever i try to go to a different page
    it says "the previous page is sending you to: LINK
    if you do not want to visit this page, you can return to the previous page"

    Yeah, this seems to be something to do with Google, not your iPhone. A search on that error found this page:
    http://www.google.com/support/forum/p/Web%20Search/thread?tid=56a3c4b71b3dc1d9&h l=en
    which shows people using lots of browsers on different platforms suffering from it. No definitive solutions though.

  • When I surf through a series of pages on a web site how use do I return to the first page quickly?

    IE allows you to use 'GO to" on the menu to return to the original page

    I now have a solution to the problem I thought I was having.   The new Safari 6.0.2 places the browsing history in the form of "tabs" just below the tool bar.  You can return to the previous window when you click on the tab.  You can also change the use of "tabs" when you select Safari/Preferences/Tabs, if you prefer not to use tabs.  Also you can return to the previous page by swiping two fingers across the trackpad as I was informed by "dominic23" in his reply.  Problem solved!   -  Welshgirl01

  • *Want to close the present window before going to the url page.

    *Want to close the present window before going to the url page.
    Hi,
    I'm using the script below to go to url function in actionscript 3, and it works fine:
    btn.addEventListener(MouseEvent.CLICK,e);
    function e(e:MouseEvent):void{
    navigateToURL(new URLRequest("http://www.angelfire.com/in/HisTruth/copyofindex.html"));
    It's fine but I want the first window to close and then open up into the one its pointing to.
    How should I add the correct script to this?
    Tseyigai

    I am not sure what you want between the title and your description, but try adding _self as the window argument...
    function e(e:MouseEvent):void{
    navigateToURL(new URLRequest(http://www.angelfire.com/in/HisTruth/copyofindex.html), "_self");

  • How to display PDF in slideshow, without returning to the first page or stall/halt on the last page?

    Hi,
    I want to display PDF's with multiple pages as a slideshow.
    This is possible with a default Adobe Reader and have this working for ONE pdf file.
    But I want do display multiple PDF's as a slideshow, the one after the other.
    In Adobe Reader you can define to return to the first page again or it automatically 'stalls/halts' at the last page.
    But I want Adobe Reader to close after the last page is displayed so it continues (in a simple DOS-script) with a second, third, etc. PDF to be displayed.
    Is this possible?
    What kind of simple DOS-script kan be used or an other reader/utility?
    Thanks in advance!
    Gunther

    Hi Bernd,
    I was looking for ways to script this kind of solution.
    But do not have good results.  There are tools to combine pdf's into one large pdf - but mostly to be selected by hand.
    We need it in a scriptable way to automate.
    Additionally, we want to be able to combine different types of documents to rotate as a slide show (so not only PDF's but also pictures or other output).
    If you or someone else have such scripts, it will be highly appreciated.
    Regards

  • My green arrow to return to the previous page has disappeared

    The green arrow I use to return to the previous page has disappeared
    == This happened ==
    Just once or twice

    * If, on Windows, in Firefox 3.6 the menu bar is hidden then press and hold the Alt key down or press F10, that should make the "Menu Bar" appear
    * Go to "View > Toolbars" and check-mark "Menu Bar" with a click on it to make that permanent. See [[Menu bar is missing]]).
    * Make sure that you have the "Navigation Toolbar" and the "Bookmarks Toolbar" visible: "View > Toolbars"
    * If items are missing then see if you can find them in the "View > Toolbars > Customize" window
    * If you see the item in the Customize window then drag it back from the Customize window to one of the toolbars.
    * If, in "View > Toolbars > Customize", you do not see that item then click the "Restore Default Set" button
    See also [[Back and forward or other toolbar buttons are missing]] and [[Navigation Toolbar items]]
    See http://kb.mozillazine.org/Toolbar_customization

  • Any way to return to the calling page from the User Profile Editor page?

    I built a url to the User Profile Editor page, and upon playing around with some of the parameters in the url itself, I have the Editor page returning to My Page (home page) for the logged in user. I would like to get it to return to the calling page, which is not necessarily a My Page. It might be a Community page. I'm not quite sure what the Editor Type value is and if it is even relevant. (it is hard-coded right now, and I've tried changing it to several values). Here is the url string:
    http://awg1/portal/server.pt?open=space&name=UserProfileEditor&psname=OpenerPageID=253&cached=false&in_hi_userid=257&control=EditorStart&editorType=10. It would be really nice to be able to open the editor with a tag!

    You can use a table
    This was answered in the Numbers forum by someone else so cant take any credit.
    Put "1" in first cell
    put 2 in cell below
    Select both cells and hover mouse over botton right hand corner ( you should get a cross) click and drag down and sequential numbers will fill into the blank cells - and over the page if you wish.
    Is that what you are after?
    Or you can always use a numbered list but that would be by paragraph not line.
    Message was edited by: John H

  • The old version had a home icon to return to the main page but this version doesn't appear to have one

    the old version had a home icon to return to the home page.
    This version doesn't allow me to do this when I want to leave
    a website and return home. Is this something I can add in the browser bar?

    It's now at the far right end of the address bar. If you want to put it somewhere else, you can do this:
    View > Toolbars > Customize
    and drag the Home button into the window, then drag it bakc out to wherever you prefer.

  • I have an error when installing apps on my mac from the apple store. It says "return to the purchase page and try again"... I think it is something to do with the installation process itself. I have tried to clear apple store cache, restarted apple s

    I have an error when installing apps on my mac from the apple store. It says "return to the purchase page and try again"... I think it is something to do with the installation process itself. I have tried to clear apple store cache, restarted apple store from debug menu, double checked my apple id account and etc..but doesn't work anyway.

    I'm having the same problem and went as far as to delete and reinstall the AppStore and still no dice.

  • An unknown error has occurred (EC ) To return to the home page please click here

    Ich versuche seit Wochen, in Appworl meine App mit meinem Torch zu syncronisieren!
    Aber bekomme immer folgende Meldung:
    An unknown error has occurred (EC )
    To return to the home page please click here
    Welchen Browser brauche ich?
    Oder was muß ich tun um meine Apps wieder mit Firefox oder Chrome syncronisieren zu können?

    I have seen in another thread this same error with no resolution.  All I've seen are people trying to fix a problem on the PB when it is a desktop problem not the PB!  I have had the same error from more than one desktop PC with nothing in common. What does it take to get an answer? This ec error is happening to more and more people with no help.
    Information Technology is fun! Play with IT.

  • My Facebook won't launch. It crashes and returns to the home page. What to do?

    My Faebook won't launch. It crashes and returns to the home page.

    Hi naomi118,
    If you are having issues with the Facebook app on your iPad, you may find the following article helpful:
    iOS: An app you installed unexpectedly quits, stops responding, or won’t open
    http://support.apple.com/kb/ts1702
    Regards,
    - Brenden

Maybe you are looking for

  • Help me out with this program

    hi, I am trying to make a login program that connects to an access database with table 'PASSWORD' containing the username and the password. I have written the program but i could not continue as i am in fix with few errors which it is giving can anyo

  • Quicktime won't start on Windows 7

    Hi all I'm running Windows 7 (32bit) and lately Quicktime won't launch. I've tried uninstalling and re-installing but there's no difference. I get an event log error shown below when trying to run it as an Administrator in case that was the problem.

  • Mail in Mountain Lion Grinds to a Halt

    All of sudden, my mail downloads grind to a halt.  I am using OS 10.8.3 and have a 60 MB/sec connection to my ISP.  When I start a download, the pace shows in excess of 2 MB/sec and then rapidly slows to about 1 kb, and then slows to zero.  The only

  • PLANNING TIME FENCE and RELEASE TIME FENCE

    Hi, I am on ver 11.5.10.5. We are using MDS and MRP here. Trying to understand the right meaning of planning and release time fences , so that I can define the right time fences in the item attributes. My cumulative manufacturing lead time for top as

  • HT3986 My iMac becomes completely window system. How can I go back to Lion OS?

    My iMac becomes completely window system. How can I go back to Lion OS?