Solved

Dreamwever PHP Insert Record Server Behaviour - How to show results of what has been inserted into database on second page

Posted on 2007-11-29
13
601 Views
Last Modified: 2013-12-12
I have a form created in dreamweaver, insert into database,  when the user selects submit registration details I am wanting the total price to be inserted into the database then passed back to the second page, so the user can still see how much to pay and the payment methods can all be moved to this second page.  Is it a Variable in the Recordset window that needs to be setup?

https://www.eventi.co.nz/nzila.php

https://www.eventi.co.nz/nzila_payment.php

Tuturial would be great - many thanks
0
Comment
Question by:missmuppet
  • 6
  • 3
  • 2
  • +1
13 Comments
 
LVL 16

Expert Comment

by:rbudj
ID: 20379028
$amount = $_POST['artMagics']; // place this on the page where the form processes

On the Total amount payable field:
<input name="textfield" type="text" value="$amount">
0
 
LVL 16

Expert Comment

by:rbudj
ID: 20379041
0
 
LVL 1

Author Comment

by:missmuppet
ID: 20379199
Both code on the results page, as I am only getting .Amount posted in the text box on the results page

https://www.eventi.co.nz/nzila_payment.php?

<?php require_once('../Connections/nzila.php'); ?>
<?php $amount = $_POST['total_fees'];?>
<!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>
</head>
<body>
  <div align="center"></div>
  <table width="800" border="0" align="left" cellpadding="20" cellspacing="0" bgcolor="#FFFFFF">
    <tr>
     
    <td colspan="2" valign="top">
<form name="results" id="results" method="post" action="" >
     
<input name="Test" type="text" value="$amount" />    
      </form></td>
0
 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 20380120
get the inserted ID, and get the details from DB again and show it in the second page.. what are details you require...

or store necessary values in the session and retrieve it second page... then destroy the session variables....

or pass it through query string whatever the details to be sent to second page...

--all these to be done as soon u do the db insertion to redirect next page
0
 
LVL 12

Expert Comment

by:oceanbeach
ID: 20381886
Hello missmuppet,

Try changing this...

<input name="Test" type="text" value="$amount" />  

to this...

<input name="Test" type="text" value="<?php echo $amount; ?>" />

I hope this helps!

oceanbeach
0
 
LVL 1

Author Comment

by:missmuppet
ID: 20387115
I have changed to <input name="Test" type="text" value="<?php echo $amount; ?>" />
and getting an empty text field, all I am wanting is to post some of the form fields the delegate has just entered on https://www.eventi.co.nz/nzila.php and display on https://www.eventi.co.nz/nzila_payment.php
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 20387130
$amount ==?? , how do you access this variable? querystring or post/get method?
0
 
LVL 1

Author Comment

by:missmuppet
ID: 20387163
<?php $amount = $_POST['total_fees'];?>
0
 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 20387187
to ensure the value of $_POST['total_fees'] ... do you pass the value in the previous <form> ...? only then the value will be available here...
0
 
LVL 1

Author Comment

by:missmuppet
ID: 20389676
how do I do this, I am only wanting to dispay the total fees field on the second page and have tried all of the above

I currently have <input name="Test" type="text" value="<?php echo $amount; ?>" /> on the second page but on sumbit from the first form, this text field is still empty.  Either this is incorrect at the top of the second page:
<?php require_once('../Connections/nzila.php'); ?>
<?php $amount = $_POST['total_fees'];?>

or I somehow need to write in a variable on the first page:
<?php require_once('../Connections/nzila.php'); ?>
<?php
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
  $theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $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 = $HTTP_SERVER_VARS['PHP_SELF'];
if (isset($HTTP_SERVER_VARS['QUERY_STRING'])) {
  $editFormAction .= "?" . $HTTP_SERVER_VARS['QUERY_STRING'];
}

if ((isset($HTTP_POST_VARS["MM_insert"])) && ($HTTP_POST_VARS["MM_insert"] == "nzila")) {
  $insertSQL = sprintf("INSERT INTO delegates (ID, Title, Name, Address, Phone, Phone2, Email, `Total Price`, `Payment Method`) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)",
                       GetSQLValueString($HTTP_POST_VARS['id'], "int"),
                       GetSQLValueString($HTTP_POST_VARS['title'], "text"),
                       GetSQLValueString($HTTP_POST_VARS['name'], "text"),
                       GetSQLValueString($HTTP_POST_VARS['address'], "text"),
                       GetSQLValueString($HTTP_POST_VARS['phone'], "text"),
                       GetSQLValueString($HTTP_POST_VARS['phone2'], "text"),
                       GetSQLValueString($HTTP_POST_VARS['email'], "text"),
                       GetSQLValueString($HTTP_POST_VARS['total_fees'], "text"),
                       GetSQLValueString($HTTP_POST_VARS['cardtype'], "text"));

  mysql_select_db($database_nzila, $nzila);
  $Result1 = mysql_query($insertSQL, $nzila) or die(mysql_error());

  $insertGoTo = "nzila_payment.php";
  if (isset($HTTP_SERVER_VARS['QUERY_STRING'])) {
    $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
    $insertGoTo .= $HTTP_SERVER_VARS['QUERY_STRING'];
  }
  header(sprintf("Location: %s", $insertGoTo));
}
?>

0
 
LVL 12

Accepted Solution

by:
oceanbeach earned 500 total points
ID: 20396073
Hello missmuppet,

The below 'nzila_payment.php' code worked for me in FF...

I hope this helps!

-OB
nzila_payment.php...
 

<?php // require_once('../Connections/nzila.php'); ?>

<?php $amount = $_POST['total_fees'];?>

<!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=iso-8859-1">

<title>NZILA Run Registration Form 2008</title>

<link href="formafter_files/nzila.css" rel="stylesheet" type="text/css">

</head>

<body>

<div align="center"></div>

<table align="left" bgcolor="#ffffff" border="0" cellpadding="20" cellspacing="0" width="800">

  <tbody>

    <tr>

      <td width="584"><h1>REGISTRATION FORM - 2008 NZILA Shift Conference</h1>

        <h2>3rd - 6th April 2008</h2></td>

      <td width="136">&nbsp;</td>

    </tr>

    <tr>

      <td colspan="2" valign="top">Total amount payable:

        <form name="form1" id="form1" method="post" action="">

          <input name="Test" value="<?php echo $amount; ?>" type="text">

        </form>

        <br>

      </td>

    </tr>

    <tr>

      <td colspan="2" valign="top">
 

        <!-- test for passed value -->

        <p>THIS IS THE VALUE OF $amount: <?php echo $amount; ?></p>
 

        <br />

        <strong>Privacy Policy</strong><br>

        Any personal information that is provided by the user of this website is 

        retained by the merchant for the purposes of contact only and will not be 

        distributed to third parties.<br>

        <br>

        <strong>Secure Payment Policy</strong><br>

        The payment page is secured with 128bit encryption.</td>

    </tr>

    <tr>

      <td colspan="2" valign="top">&nbsp;</td>

    </tr>

    <tr>

      <td colspan="2" valign="top"></td>

    </tr>

    <tr>

      <td colspan="2"></td>

    </tr>

  </tbody>

</table>

</body>

</html>

Open in new window

0
 
LVL 1

Author Comment

by:missmuppet
ID: 20446500
Thanks OB but I am still not getting an Amount in FF or IE using the code above, below is the first page the form that calculates the amounts
https://www.eventi.co.nz/nzila.php
<?php require_once('../Connections/nzila.php'); ?>

<?php

function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 

{

  $theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $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 = $HTTP_SERVER_VARS['PHP_SELF'];

if (isset($HTTP_SERVER_VARS['QUERY_STRING'])) {

  $editFormAction .= "?" . $HTTP_SERVER_VARS['QUERY_STRING'];

}
 

if ((isset($HTTP_POST_VARS["MM_insert"])) && ($HTTP_POST_VARS["MM_insert"] == "nzila")) {

  $insertSQL = sprintf("INSERT INTO delegates (Title, Other, Name, Address, Phone, Phone2, Email, Terms) VALUES (%s, %s, %s, %s, %s, %s, %s, %s)",

                       GetSQLValueString($HTTP_POST_VARS['title'], "text"),

                       GetSQLValueString($HTTP_POST_VARS['other'], "text"),

                       GetSQLValueString($HTTP_POST_VARS['name'], "text"),

                       GetSQLValueString($HTTP_POST_VARS['address'], "text"),

                       GetSQLValueString($HTTP_POST_VARS['phone'], "text"),

                       GetSQLValueString($HTTP_POST_VARS['phone2'], "text"),

                       GetSQLValueString($HTTP_POST_VARS['email'], "text"),

                       GetSQLValueString(isset($HTTP_POST_VARS['terms']) ? "true" : "", "defined","'Y'","'N'"));
 

  mysql_select_db($database_nzila, $nzila);

  $Result1 = mysql_query($insertSQL, $nzila) or die(mysql_error());
 

  $insertGoTo = "nzila_payment.php";

  if (isset($HTTP_SERVER_VARS['QUERY_STRING'])) {

    $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";

    $insertGoTo .= $HTTP_SERVER_VARS['QUERY_STRING'];

  }

  header(sprintf("Location: %s", $insertGoTo));

}

?>

<!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=iso-8859-1" />

<title>NZILA Registration Form 2008</title>

<script type="text/javascript">

//-----------------------------------------------------------------

function Calculator(){ this.articles={}; }

Calculator.prototype.addArticle = function (art){

this.articles[art.name]=art;

}

Calculator.prototype.getTotal = function(){

var total = 0;

for(var ii in this.articles)

total += this.articles[ii].getValue();

return total;

}

Calculator.prototype.getArticle = function(s){

return this.articles[s] || null;

}

//-----------------------------------------------------------------

function Article(name, price, quantity){

this.name = name;

this.price = price || 0;

this.quantity = quantity || 0;

}

Article.prototype.getValue = function(){

return this.price * this.quantity;

}

Article.prototype.setQuantity = function(q){ this.quantity = q; }

//-----------------------------------------------------------------

var myCalculator = new Calculator();

myCalculator.addArticle(new Article("Awards Dinner", 120, 0));

myCalculator.addArticle(new Article("Cocktail Party", 70, 0));

myCalculator.addArticle(new Article("BAwards Dinner", 120, 0));

myCalculator.addArticle(new Article("BCocktail Party", 70, 0));

myCalculator.addArticle(new Article("CAwards Dinner", 120, 0));

myCalculator.addArticle(new Article("CCocktail Party", 70, 0));

myCalculator.addArticle(new Article("Student", 250, 0));

myCalculator.addArticle(new Article("Early", 425, 0));

myCalculator.addArticle(new Article("Standard", 495, 0));

myCalculator.addArticle(new Article("Late", 550, 0));

myCalculator.addArticle(new Article("Non", 550, 0));

myCalculator.addArticle(new Article("One Day Package", 250, 0));

myCalculator.addArticle(new Article("Two Day Package", 500, 0));

myCalculator.addArticle(new Article("Student One Day Package", 125, 0));

myCalculator.addArticle(new Article("Student Two Day Package", 250, 0));

//-----------------------------------------------------------------

function calculate(button){

var

frm=button.form,
 

qAwardsDinner=

+ frm.elements["artAwards"].options[

frm.elements["artAwards"].selectedIndex].value,

qCocktail=

+ frm.elements["artCocktail"].options[

frm.elements["artCocktail"].selectedIndex].value,

qBAwardsDinner=

+ frm.elements["artBAwards"].options[

frm.elements["artBAwards"].selectedIndex].value,

qBCocktail=

+ frm.elements["artBCocktail"].options[

frm.elements["artBCocktail"].selectedIndex].value,

qCAwardsDinner=

+ frm.elements["artCAwards"].options[

frm.elements["artCAwards"].selectedIndex].value,

qCCocktail=

+ frm.elements["artCCocktail"].options[

frm.elements["artCCocktail"].selectedIndex].value,

qStudent=frm.elements["artStudent"].checked ? 1 : 0,

qEarly=frm.elements["artMagics"][0].checked ? 1 : 0,

qStandard=frm.elements["artMagics"][1].checked ? 1 : 0;

qLate=frm.elements["artMagics"][2].checked ? 1 : 0;

qNon=frm.elements["artMagics"][3].checked ? 1 : 0;

qDayOne=frm.elements["artDayOne"].checked ? 1 : 0,

qDayTwo=frm.elements["artDayTwo"].checked ? 1 : 0,

qStudentDayOne=frm.elements["artStudentOne"].checked ? 1 : 0,

qStudentDayTwo=frm.elements["artStudentTwo"].checked ? 1 : 0,

myCalculator.getArticle("Awards Dinner").setQuantity(qAwardsDinner);

myCalculator.getArticle("Cocktail Party").setQuantity(qCocktail);

myCalculator.getArticle("BAwards Dinner").setQuantity(qBAwardsDinner);

myCalculator.getArticle("BCocktail Party").setQuantity(qBCocktail);

myCalculator.getArticle("CAwards Dinner").setQuantity(qCAwardsDinner);

myCalculator.getArticle("CCocktail Party").setQuantity(qCCocktail);

myCalculator.getArticle("Student").

setQuantity(qStudent);

myCalculator.getArticle("Early").setQuantity(qEarly);

myCalculator.getArticle("Standard").

setQuantity(qStandard);

myCalculator.getArticle("Late").

setQuantity(qLate);

myCalculator.getArticle("Non").

setQuantity(qNon);

myCalculator.getArticle("One Day Package").

setQuantity(qDayOne);

myCalculator.getArticle("Two Day Package").

setQuantity(qDayTwo);

myCalculator.getArticle("Student One Day Package").

setQuantity(qStudentDayOne);

myCalculator.getArticle("Student Two Day Package").

setQuantity(qStudentDayTwo);
 

frm.elements["total_fees"].value = myCalculator.getTotal() + ".00";

}

</script>

<link href="nzila.css" rel="stylesheet" type="text/css" />

</head>

<body>
 

<form action="<?php echo $editFormAction; ?>" method="POST" name="nzila" id="nzila" onSubmit="">

  <div align="center"></div>

  <table width="800" border="0" align="left" cellpadding="20" cellspacing="0" bgcolor="#FFFFFF">

    <tr> 

      <td width="584"><h1>REGISTRATION FORM - 2008 NZILA Shift Conference</h1>

        <h2>3rd - 6th April 2008 </h2>

        <img src="images/nzila.gif" width="157" height="81" /></td>

      <td width="136">&nbsp;</td>

    </tr>

    <tr> 

      <td colspan="2" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">

          <tr> 

            <td colspan="2" valign="top"><div align="center"> Fax to 09 361 2155 

                or complete details below &amp; submit </div></td>

          </tr>

          <tr> 

            <td colspan="2" valign="top"><h2>CONTACT DETAILS</h2></td>

          </tr>

          <tr> 

            <td width="40%" valign="top">Title:</td>

            <td><select name="title" id="title">

                <option>Mr</option>

                <option>Mrs</option>

                <option>Miss</option>

                <option>Ms</option>

                <option>Dr</option>

                <option>Other</option>

              </select>

              Other: 

              <input name="other" type="text" id="other" /></td>

          </tr>

          <tr> 

            <td valign="top">Name:</td>

            <td><input name="name" type="text" id="name" size="25"/></td>

          </tr>

          <tr> 

            <td valign="top" >Postal Address:</td>

            <td><textarea name="address" cols="40" rows="3" id="address" ></textarea></td>

          </tr>

          <tr> 

            <td valign="top">Phone or Mobile Number:</td>

            <td><input name="phone" type="text" id="phone" size="25"/></td>

          </tr>

          <tr> 

            <td valign="top" >Alternative Phone Number:</td>

            <td><input name="phone2" type="text" id="phone2" size="25"/></td>

          </tr>

          <tr> 

            <td valign="top">Email Address: </td>

            <td><input name="email" type="text" id="email" size="40"/></td>

          </tr>

          <tr> 

            <td valign="top">Name to appear on badge: </td>

            <td><input name="badge" type="text" id="badge" size="30"/></td>

          </tr>

        </table></td>

    </tr>

    <tr> 

      <td colspan="2" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">

          <tr> 

            <td width="40%"><h2>REGISTRATION FEES:</h2></td>

            <td>&nbsp;</td>

          </tr>

          <tr> 

            <td colspan="2"><h5>Please select relevant package and complete one 

                section only: </h5></td>

          </tr>

          <tr> 

            <td colspan="2">&nbsp;</td>

          </tr>

          <tr> 

            <td colspan="2"><h4>SECTION A</h4></td>

          </tr>

          <tr> 

            <td colspan="2"><h3>PACKAGE PRICE - MEMBERS</h3></td>

          </tr>

          <tr> 

            <td colspan="2"></td>

          </tr>

          <tr> 

            <td colspan="2"></td>

          </tr>

          <tr> 

            <td colspan="2"><table cellspacing="0">

                <tr> 

                  <td width="529">Early Bird (Payment must be Received by 31st 

                    January 2008):</td>

                  <td colspan="3"> ($425.00) 

                    <input type="radio" name="artMagics" id="artEarly"

value="Early"

onclick="calculate(this)"> <label for="artEarly"></label></td>

                </tr>

                <tr> 

                  <td>Standard:</td>

                  <td colspan="3"> ($495.00) 

                    <input type="radio" name="artMagics" id="artStandard"

value="Standard" onClick="calculate(this)"> <label for="artStandard"></label></td>

                </tr>

                <tr> 

                  <td>Late (For any payments after 17th March 2008):</td>

                  <td colspan="3"> <label for="label">($550.00)</label> <input type="radio" name="artMagics" id="artLate"

value="Late" onClick="calculate(this)"> <label for="artLate"></label></td>

                </tr>

                <tr> 

                  <td colspan="4"><h3>PACKAGE PRICE - NON MEMBERS (Click here 

                      to join NZILA)</h3></td>

                </tr>

                <tr> 

                  <td>Package Price Non Member:</td>

                  <td colspan="3"> <label for="label">($550.00)</label> <input type="radio" name="artMagics" id="artNon"

value="Non" onClick="calculate(this)"> <label for="artNon"></label></td>

                </tr>

                <tr> 

                  <td colspan="4"></td>

                </tr>

                <tr> 

                  <td colspan="4"><h3>INCLUSIONS:</h3>

                    Full attendance at all business sessions including Keynote 

                    & Guest Speaker presentations Entry to Exhibition Morning, 

                    Lunch and Afternoon tea daily Welcome Cocktail Function attendance 

                    Pride of Place Awards Dinner attendance </td>

                </tr>

                <tr> 

                  <td colspan="4">&nbsp;</td>

                </tr>

                <tr> 

                  <td colspan="4"><strong>I would like an ADDITIONAL ticket for:</strong></td>

                </tr>

                <tr> 

                  <td>Ticket for Welcome Cocktail Party $70.00 per ticket</td>

                  <td colspan="3"><input name="AAdditionalParty" type="checkbox" id="AAdditionalParty" value="Yes" />

                    Quantity: 

                    <select name="artCocktail" id="select"

onchange="calculate(this)">

                      <option value="0">0</option>

                      <option value="1">1</option>

                      <option value="2">2</option>

                    </select></td>

                </tr>

                <tr> 

                  <td><label for="artAwards">Ticket for Pride of Place Awards 

                    Dinner $120.00 per ticket</label></td>

                  <td colspan="3"> <input name="AAdditionalDinner" type="checkbox" id="AAdditionalDinner" value="Yes" />

                    Quantity: 

                    <select name="artAwards" id="select"

onchange="calculate(this)">

                      <option value="0">0</option>

                      <option value="1">1</option>

                      <option value="2">2</option>

                    </select></td>

                </tr>

                <tr> 

                  <td></td>

                  <td colspan="3">&nbsp; </td>

                </tr>

                <tr> 

                  <td colspan="4"><h4>SECTION B</h4></td>

                </tr>

                <tr> 

                  <td colspan="4"><h2>Registration Fees daily attendance only 

                      (Members & Non Members)</h2></td>

                </tr>

                <tr> 

                  <td>ONE Day Package Per Person:</td>

                  <td colspan="3">$250.00 

                    <input name="artDayOne" type="checkbox" id="artDayOne" value="DayOne" /></td>

                </tr>

                <tr> 

                  <td>TWO Day Package Per Person:</td>

                  <td colspan="3">$500.00 

                    <input name="artDayTwo" type="checkbox" id="artDayTwo" value="DayTwo" /></td>

                </tr>

                <tr> 

                  <td> I will be attending (Select from drop down box)</td>

                  <td colspan="3"><select name="B_Days_Attending" size="1" id="B_Days_Attending">

                      <option>Friday 4th April</option>

                      <option>Saturday 5th April</option>

                      <option>Both Days</option>

                      <option selected="selected">Please select...</option>

                    </select></td>

                </tr>

                <tr> 

                  <td colspan="4">&nbsp;</td>

                </tr>

                <tr> 

                  <td colspan="4"></td>

                </tr>

                <tr> 

                  <td colspan="4"><h3>INCLUSIONS:</h3>

                    Full attendance at all business sessions including Keynote 

                    & Guest Speaker presentations on chosen day Entry to Exhibition 

                    on chosen day Morning, Lunch and Afternoon tea daily on chosen 

                    day </td>

                </tr>

                <tr> 

                  <td colspan="4"><h3>ADDITIONAL</h3></td>

                </tr>

                <tr> 

                  <td colspan="4">&nbsp;</td>

                </tr>

                <tr> 

                  <td>Ticket for Welcome Cocktail Party $70.00 per ticket</td>

                  <td colspan="3"><input name="BAdditionalParty" type="checkbox" id="BAdditionalParty" value="Yes" />

                    Quantity: 

                    <select name="artBCocktail" id="select"

onchange="calculate(this)">

                      <option value="0">0</option>

                      <option value="1">1</option>

                      <option value="2">2</option>

                    </select></td>

                </tr>

                <tr> 

                  <td><label for="artAwards">Ticket for Pride of Place Awards 

                    Dinner $120.00 per ticket</label></td>

                  <td colspan="3"> <input name="BAdditionalDinner" type="checkbox" id="BAdditionalDinner" value="Yes" />

                    Quantity: 

                    <select name="artBAwards" id="select"

onchange="calculate(this)">

                      <option value="0">0</option>

                      <option value="1">1</option>

                      <option value="2">2</option>

                    </select></td>

                </tr>

                <tr> 

                  <td colspan="4">&nbsp;</td>

                </tr>

                <tr> 

                  <td colspan="4"><h4>SECTION C</h4></td>

                </tr>

                <tr> 

                  <td colspan="4"><h2>REGISTRATION FEES - Students</h2></td>

                </tr>

                <tr> 

                  <td colspan="4">Students please provide University Name, Year 

                    of Study and Student ID Number</td>

                </tr>

                <tr> 

                  <td colspan="4"><input name="student_id" type="text" id="student_id" size="70" /></td>

                </tr>

                <tr> 

                  <td colspan="4">&nbsp;</td>

                </tr>

                <tr> 

                  <td> <label for="artStudent"> Student or G1 Member Package:</label> 

                  </td>

                  <td colspan="3"> $250.00 

                    <input name="artStudent" id="artStudent"

value="Student"

type="checkbox"

onclick="calculate(this)"> </td>

                </tr>

                <tr> 

                  <td colspan="4">&nbsp;</td>

                </tr>

                <tr> 

                  <td colspan="4"><h3>INCLUSIONS</h3>

                    Full attendance at all business sessions including Keynote 

                    &amp; Guest Speaker presentations<br />

                    Entry to Exhibition<br />

                    Morning, Lunch and Afternoon tea daily<br />

                    Inclusions for chosen day only<br /></h3>

                    </td>

                </tr>

                <tr> 

                  <td>ONE Day Package Per Student:</td>

                  <td colspan="3">$125.00 

                    <input name="artStudentOne" type="checkbox" id="artStudentOne" value="StudentOne" /></td>

                </tr>

                <tr> 

                  <td>TWO Day Package Per Student:</td>

                  <td colspan="3">$250.00 

                    <input name="artStudentTwo" type="checkbox" id="artStudentTwo" value="StudentTwo" /></td>

                </tr>

                <tr> 

                  <td> I will be attending (Select from drop down box)</td>

                  <td colspan="3"><select name="C_Days_Attending" size="1" id="C_Days_Attending">

                      <option>Friday 4th April</option>

                      <option>Saturday 5th April</option>

                      <option>Both Days</option>

                      <option selected="selected">Please select...</option>

                    </select></td>

                </tr>

                <tr> 

                  <td colspan="4">&nbsp;</td>

                </tr>

                <tr> 

                  <td colspan="4"><h3>EXCLUDES:</h3></td>

                </tr>

                <tr> 

                  <td>Ticket for Welcome Cocktail Party $70.00 per ticket</td>

                  <td colspan="3"><input name="CAdditionalParty" type="checkbox" id="CAdditionalParty" value="Yes" />

                    Quantity: 

                    <select name="artCCocktail" id="select"

onchange="calculate(this)">

                      <option value="0">0</option>

                      <option value="1">1</option>

                      <option value="2">2</option>

                    </select></td>

                </tr>

                <tr> 

                  <td>Ticket for Pride of Place Awards Dinner $120.00 per ticket</td>

                  <td colspan="3"> <input name="CAdditionalDinner" type="checkbox" id="CAdditionalDinner" value="Yes" />

                    Quantity: 

                    <select name="artCAwards" id="select"

onchange="calculate(this)">

                      <option value="0">0</option>

                      <option value="1">1</option>

                      <option value="2">2</option>

                    </select></td>

                </tr>

                <tr> 

                  <td colspan="4">&nbsp;</td>

                </tr>

                <tr> 

                  <td colspan="4"></td>

                </tr>

                <tr> 

                  <td colspan="4"><h1>Accommodation Reservations</h1>

                    For accommodation at the Hyatt Hotel, Waterloo Quadrant - 

                    Auckland City, please indicate your requirements (prices include 

                    breakfast).<br />

                    Please settle your accommodation and any incidentals<strong> 

                    direct on check out</strong> at the Hyatt Auckland. Please 

                    note your reservation is non refundable in the event of cancellation.</td>

                </tr>

                <tr> 

                  <td>&nbsp;</td>

                  <td width="46">Thurs</td>

                  <td width="49">Fri</td>

                  <td width="118">Sat</td>

                </tr>

                <tr> 

                  <td>Double Room - Single Occupancy $230.00 per night</td>

                  <td><input name="artSingleThurs" type="checkbox" id="artSingleThurs" value="Single_Thurs"></td>

                  <td><input name="artSingleFri" type="checkbox" id="artSingleFri" value="Single_Fri"></td>

                  <td><input name="artSingleSat" type="checkbox" id="artSingleSat" value="Single_Sat"></td>

                </tr>

                <tr> 

                  <td>Double Room - Double Occupancy $255.00 per night</td>

                  <td><input name="artDoubleThurs" type="checkbox" id="artDoubleThurs" value="Double_Thurs"></td>

                  <td><input name="artDoubleFri" type="checkbox" id="artDoubleFri" value="Double_Fri"></td>

                  <td><input name="artDoubleSat" type="checkbox" id="artDoubleSat" value="Double_Sat"></td>

                </tr>

                <tr> 

                  <td>Twin Share - Double Occupancy $255.00 per night</td>

                  <td><input name="artTwinThurs" type="checkbox" id="artTwinThurs" value="Twin_Thurs"></td>

                  <td><input name="artTwinFri" type="checkbox" id="artTwinFri" value="Twin_Fri"></td>

                  <td><input name="artTwinSat" type="checkbox" id="artTwinSat" value="Twin_Sat"></td>

                </tr>

                <tr> 

                  <td>Please indicate the name of the person you are sharing with:</td>

                  <td colspan="3"><input name="sharing_with" type="text" id="sharing_with" size="20" /></td>

                </tr>

                <tr> 

                  <td>Upgrade to a Residence Suite (one bedroom) - Additional 

                    $40 per night </td>

                  <td><input name="artUpgradeThurs" type="checkbox" id="artUpgradeThurs" value="Upgrade_Thurs"></td>

                  <td><input name="artUpgradeFri" type="checkbox" id="artUpgradeFri" value="Upgrade_Fri"></td>

                  <td><input name="artUpgradeSat" type="checkbox" id="artUpgradeSat" value="Upgrade_Sat"></td>

                </tr>

                <tr> 

                  <td> <div align="right"> </div></td>

                  <td colspan="3">&nbsp; </td>

                </tr>

                <tr> 

                  <td><h2>Dietary Requirements:</h2>

                    Please indicate whether you have any specific dietary requirements:</td>

                  <td colspan="3"><textarea name="dietary" cols="30" rows="2" id="dietary2"></textarea></td>

                </tr>

              </table></td>

          </tr>

        </table></td>

    </tr>

    <tr> 

      <td colspan="2" valign="top"> <h1>PAYMENT DETAILS</h1>

        <table width="100%" border="0" cellspacing="0" cellpadding="0">

          <tr> 

            <td width="40%" valign="top" ><input type="button" class="formfields"

onclick="calculate(this)" value="Calculate Total Payable"></td>

            <td><table cellspacing="0" dwcopytype="CopyTableCell">

                <tr> 

                  <td colspan="3"> $ 

                    <input type="text" name="total_fees"

id="total_fees" readonly="readonly"> </td>

                </tr>

              </table></td>

          </tr>

          <tr> 

            <td width="40%" valign="top" ><input name="cardtype" type="radio" value="cc" />

              Credit Card<br /> </td>

            <td> Visa of Mastercard<br />

              You will be transferred to a secure site<br /> </td>

          </tr>

          <tr> 

            <td width="40%" valign="top" ><input name="cardtype" type="radio" value="cheque" />

              Cheque<br /> </td>

            <td>Send cheque payable to NZILA to:<br />

              NZILA Conference<br />

              c/- PO Box 147 035 <br />

              Ponsonby<br />

              Auckland<br /> </td>

          </tr>

          <tr> 

            <td valign="top"><input name="cardtype" type="radio" value="directcredit" />

              Direct Credit<br /> </td>

            <td >Please pay to ASB Bank, Acc. no. 12 3167 0069396 51<br />

              Please use your first initial &amp; surname as your payment reference.<br /> 

            </td>

          </tr>

          <tr> 

            <td colspan="2" valign="top"><h3>Terms &amp; Conditions</h3>

              Please note your Registration Fees, Social Functions and Accommodation 

              bookings are non refundable in the event of cancellation.<br /> 

              <input name="terms" type="checkbox" id="terms" value="checkbox" />

              I agree to the terms &amp; conditions</td>

          </tr>

          <tr> 

            <td valign="top">&nbsp;</td>

            <td><input type="submit" name="Submit" value="submit registration details ..." class="formfields" /></td>

          </tr>

          <tr> 

            <td colspan="2" valign="top">GST# Please print this form and retain 

              a copy of this form as your GST/Tax Invoice<br />

              (no further invoice will be issued) </td>

          </tr>

          <tr> 

            <td colspan="2" valign="top"><input name="button" type="button" class="formfields" onClick="window.print()" value="Click Print" /></td>

          </tr>

          <tr> 

            <td valign="middle"><div align="center"><img src="images/eventi_rev2_test.jpg" width="180" height="75" /></div></td>

            <td valign="top"><strong>Eventi Ltd</strong><br />

              The Conference Manager<br />

              NZILA Shift Conference 2008<br />

              PO Box 147 035<br />

              Ponsonby<br />

              Auckland <br /> <br />

              Phone: (09) 361 2150<br />

              Fax: (09) 361 2155<br /> <br /> <a href="mailto:info@eventi.co.nz" target="_blank">info@eventi.co.nz</a></td>

          </tr>

        </table></td>

    </tr>

    <tr> 

      <td colspan="2"> </td>

    </tr>

  </table>

  <input type="hidden" name="MM_insert" value="nzila">

</form>

</body>

</html>

Open in new window

0
 
LVL 1

Author Comment

by:missmuppet
ID: 20614970
Can anyone help with this I am still not getting the total amount posted to http://www.eventi.co.nz/nzila_payment.php with any of the methods above, have I got the wrong document type?
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now