Form Data Not posting to database - php

Can Anyone see what is wrong with the below code.
When I submit the data using HTML form I get as expected the confirmation to confirm Registered. However, when I check the database its not there!
I have checked the names are the same names of each input is correct and can confirm the database is connected successfully, along with the names of the database columns ect...
Any help would be much appreciated.
<?php
if (isset($_POST['carrierinsert'])) {
$acc = $_POST['acc'];
$sql = "SELECT cariers.acc FROM cariers WHERE cariers.acc ='$acc'";
$result = $db->query($sql);
if($result->num_rows > 0) {
echo "<font color='red'>Carrier Already exits</font>";
$sql = "INSERT INTO cariers ( `reg`, `acc`, `accstatus`, `carramid`, `carrfloor`, `pay`, `comms`)
VALUES ( '".$db->real_escape_string($_POST['reg'])."',
'".$db->real_escape_string($_POST['acc'])."',
'".$db->real_escape_string($_POST['accstatus'])."',
'".$db->real_escape_string($_POST['carramid'])."',
'".$db->real_escape_string($_POST['carrfloor'])."',
'".$db->real_escape_string($_POST['pay'])."',
'".$db->real_escape_string($_POST['comms'])."' )";
$insert = $db->query($sql);
echo "<font color='red'>Carrier Inserted</font>";
}
}
?>
<h1>Add New</h1>
<hr>
<form method="post" action=""> Carrier<br />
<input name="reg" type="text" required="required" value="">
<br /><br />
Number<br />
<input name="acc" type="text" required="required" value="">
<br /><br />
Status<br />
<input name="accstatus" type="text" required="required" value="">
Floor<br />
<select name="carrfloor" id="carrfloor">
<option name="carrfloor" Value="1">1</option>
<option name="carrfloor" Value="2">2</option>
</select>
<br /><br />
Pay<br />
<select name="pay" id="pay">
<option selected="selected" name="pay" Value="0">N/A</option>
<option name="pay" Value="1">1%</option>
<option name="pay" Value="1.25">1.25%</option>
<option name="pay" Value="1.5">1.5%</option>
<option name="pay" Value="1.75">1.75%</option>
<option name="pay" Value="2">2%</option>
<option name="pay" Value="2.25">2.25%</option>
<option name="pay" Value="2.50">2.50%</option>
<option name="pay" Value="3.00">3%</option>
</select>
<br /><br />
Additional Charge<br />
<select name="comms" id="comms">
<option name="comms" selected ="selected" Value="Fees">Yes</option>
<option name="comms" Value="No Fees">No</option>
</select>
<br /><br />
Manager<br />
<select name="carramid" id="carramid">
<option name="carramid" Value="Yes">Yes</option>
<option name="carramid" Value="No">No</option>
</select>
<br /><br />
<br /><br />
<input type="submit" class="btn" name="carrierinsert" value="Save" />
</form>

$sql = "INSERT INTO cariers ( reg, acc, accstatus, carramid, carrfloor, pay, comms)
VALUES ( '".{$db->real_escape_string($_POST['reg'])}."',
'".{$db->real_escape_string($_POST['acc'])}."',
'".{$db->real_escape_string($_POST['accstatus'])}."',
'".{$db->real_escape_string($_POST['carramid'])}."',
'".{$db->real_escape_string($_POST['carrfloor'])}."',
'".{$db->real_escape_string($_POST['pay'])}."',
'".{$db->real_escape_string($_POST['comms'])}."' )";
UPDATE
$a = 15;
echo 'this will not write 15: $a'
.PHP_EOL.
"this will write 15: $a"
.PHP_EOL.
"but i can escape a variable anyways. i dont need to change quotes".$a.' dot (.) is the add method for strings'
;

try this:
$sql = "INSERT INTO cariers ( `reg`, `acc`, `accstatus`, `carramid`, `carrfloor`, `pay`, `comms`)
VALUES ( '".$db->real_escape_string($_POST['reg'])."',
'".$db->real_escape_string($_POST['acc'])."',
'".$db->real_escape_string($_POST['accstatus'])."',
'".$db->real_escape_string($_POST['carramid'])."',
'".$db->real_escape_string($_POST['carrfloor'])."',
'".$db->real_escape_string($_POST['pay'])."',
'".$db->real_escape_string($_POST['comms'])."' )";
EDITTED:
try this code
<?php
if (isset($_POST['carrierinsert'])) {
$acc = $_POST['acc'];
$sql = "SELECT cariers.acc FROM cariers WHERE cariers.acc ='$acc'";
$result = $db->query($sql);
if($result->num_rows > 0) {
echo "<font color='red'>Carrier Already exits</font>";
}else{
$sql = "INSERT INTO cariers ( `reg`, `acc`, `accstatus`, `carramid`, `carrfloor`, `pay`, `comms`) VALUES ( '".$db->real_escape_string($_POST['reg'])."', '".$db->real_escape_string($_POST['acc'])."','".$db->real_escape_string($_POST['accstatus'])."','".$db->real_escape_string($_POST['carramid'])."', '".$db->real_escape_string($_POST['carrfloor'])."','".$db->real_escape_string($_POST['pay'])."','".$db->real_escape_string($_POST['comms'])."' )";
$insert = $db->query($sql);
echo "<font color='red'>Carrier Inserted</font>";
}
}
?>
<h1>Add New</h1>
<hr>
<form method="post" action=""> Carrier<br />
<input name="reg" type="text" required="required" value="">
<br /><br />
Number<br />
<input name="acc" type="text" required="required" value="">
<br /><br />
Status<br />
<input name="accstatus" type="text" required="required" value="">
Floor<br />
<select name="carrfloor" id="carrfloor">
<option value="1">1</option>
<option value="2">2</option>
</select>
<br /><br />
Pay<br />
<select name="pay" id="pay">
<option selected="selected" value="0">N/A</option>
<option value="1">1%</option>
<option value="1.25">1.25%</option>
<option value="1.5">1.5%</option>
<option value="1.75">1.75%</option>
<option value="2">2%</option>
<option value="2.25">2.25%</option>
<option value="2.50">2.50%</option>
<option value="3.00">3%</option>
</select>
<br /><br />
Additional Charge<br />
<select name="comms" id="comms">
<option selected ="selected" value="Fees">Yes</option>
<option value="No Fees">No</option>
</select>
<br /><br />
Manager<br />
<select name="carramid" id="carramid">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select>
<br /><br />
<br /><br />
<input type="submit" class="btn" name="carrierinsert" value="Save" />
</form>

Related

How can I make a "*required field" error message appear for a drop down menu in a validating PHP form?

I created a form using PHP. The form needs to be validated and it works for every field but the "rate our site" drop down menu. I'm using the same code from the form from other questions (name, email, etc.) for the "rate our site" drop down menu but the "* required field" message doesn't appear when the user leaves it blank. I need that error message to appear, like the others, when the user leaves it blank. How can I fix this? Here's my code:
<!DOCTYPE HTML>
<html>
<head>
<title>Roy Feedback Form Assignment 7</title>
<style> .error {color: #FF0000;} </style>
</head>
<body>
<?php
// define variables and set to empty values
$nameErr = $emailErr = $commentErr = $likesErr = $howErr = $rateErr = "";
$name = $email = $comment = $likes = $how = $rate = "";
if ($_SERVER["REQUEST_METHOD"] == "POST") {
if (empty($_POST["name"])) {
$nameErr = "Name is required";
} else {
$name = test_input($_POST["name"]);
}
if (empty($_POST["email"])) {
$emailErr = "Email is required";
} else {
$email = test_input($_POST["email"]);
}
if (empty($_POST["comment"])) {
$commentErr = "Comments are required";
} else {
$comment = test_input($_POST["comment"]);
}
if (empty($_POST["likes"])) {
$likesErr = "Things you liked is required";
} else {
$likes = test_input($_POST["likes"]);
}
if (empty($_POST["how"])) {
$howErr = "How you got to our site is required";
} else {
$how = test_input($_POST["how"]);
}
if (empty($_POST["rate"])) {
$rateErr = "Rating our site is required";
} else {
$rate = test_input($_POST["rate"]);
}
}
function test_input($data) {
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
}
?>
<h2>Roy Feedback Form Assignment 7</h2>
<p><span class="error">* required field.</span></p>
<form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">
Name: <input type="text" name="name">
<span class="error">* <?php echo $nameErr;?></span>
<br><br>
E-mail: <input type="text" name="email">
<span class="error">* <?php echo $emailErr;?></span>
<br><br>
Comment: <textarea name="comment" rows="5" cols="40"></textarea>
<span class="error">* <?php echo $commentErr;?></span>
<br><br>
Things you liked:
<input type="radio" name="likes" value="Site design">Site design
<input type="radio" name="likes" value="Links">Links
<input type="radio" name="likes" value="Ease of use">Ease of use
<input type="radio" name="likes" value="Images">Images
<input type="radio" name="likes" value="Source code">Source code
<span class="error">* <?php echo $likesErr;?></span>
<br><br>
How you got to our site:
<input type="radio" name="how" value="Search engine">Search engine
<input type="radio" name="how" value="Links from another site">Links from another site
<input type="radio" name="how" value="Deitel.com website">Deitel.com website
<input type="radio" name="how" value="Reference from a book">Reference from a book
<input type="radio" name="how" value="Other">Other
<span class="error">* <?php echo $howErr;?></span>
<br><br>
Rate our site:
<select name="rate">
<option value="">- Please Select -</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<span class="error">* <?php echo $rateErr;?></span>
</select>
<br/><br/>
<input type="submit" name="submit" value="Submit">
</form>
<?php
echo "<h2>Your Input:</h2>";
echo $name;
echo "<br>";
echo $email;
echo "<br>";
echo $comment;
echo "<br>";
echo $likes;
echo "<br>";
echo $how;
echo "<br>";
echo $rate;
?>
</body>
</html>
Thank you so much for the help everyone! It's greatly appreciated.
The span
<span class="error">* <?php echo $rateErr;?></span>
is inside the select...I bet if you inspected the element it does appear just not visible because it's not in an <option> tag. Try moving it outside.
Your error msg should be outside of the <select> scope :
Rate our site:
<select name="rate">
<option value="">- Please Select -</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
<span class="error">* <?php echo $rateErr;?></span>
<br/><br/>
HTML5 allows you to validate a form like in your case
<form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>" on>
Name: <input type="text" name="name" required>
<span class="error">*</span>
<br><br>
E-mail: <input type="email" name="email" required>
<span class="error">*</span>
<br><br>
Comment: <textarea name="comment" rows="5" cols="40" required></textarea>
<span class="error">*</span>
<br><br>
Things you liked:
<input type="radio" name="likes" value="Site design" required>Site design
<input type="radio" name="likes" value="Links" required>Links
<input type="radio" name="likes" value="Ease of use" required>Ease of use
<input type="radio" name="likes" value="Images" required>Images
<input type="radio" name="likes" value="Source code" required>Source code
<span class="error">*</span>
<br><br>
How you got to our site:
<input type="radio" name="how" value="Search engine" required>Search engine
<input type="radio" name="how" value="Links from another site" required>Links from another site
<input type="radio" name="how" value="Deitel.com website" required>Deitel.com website
<input type="radio" name="how" value="Reference from a book" required>Reference from a book
<input type="radio" name="how" value="Other" required>Other
<span class="error">*</span>
<br><br>
Rate our site:
<select name="rate" required>
<option value="">- Please Select -</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<span class="error">*</span>
</select>
<br/><br/>
<input type="submit" name="submit" value="Submit">
</form> This will automatically check on-submit form

display a form just in a particular case using control structure

I'm a beginner in PHP, I am working on a carpooling website and I want to display a form in the user account only if he didn't enter his car yet here is my code and unfortunately it didn't work and I haven't got any error on my screen. Please help me if you can !!
<div id="edit-settings" class="tab-pane">
<?php $user_id=$_SESSION['user']['id'];
$res = $db->query('SELECT COUNT(*) FROM car where $user_id');
$get_total = $res->fetchColumn();
if($get_total==0){
echo 'please enter a car by filling the form below'; ?>
<form action="car.php" method="post">
<br />
<label class="control-label" for="inputEmail">
Brand *
</label>
<input class="span4" type="text" placeholder="Brand *" name="brand" maxlength="64" required="">
<br />
<br />
<label class="control-label" for="inputEmail">
Model *
</label>
<input class="span4" type="text" placeholder="Model *" name="model" maxlength="64" required="">
<br /><br />
<label class="control-label" for="inputEmail">
Confort *
</label>
<select id="lst_confort" class="span4" name="confort">
<option value="Basique">Basic</option>
<option value="Normal">Normal</option>
<option value="Confortable">Confortable</option>
<option value="Luxe">Luxary</option>
</select>
<br /><br />
<label class="control-label" for="inputEmail">
Color *
</label>
<select id="lst_confort" class="span4" name="couleur">
<option value="0" selected> choose a color</option>
<option value="0"> white</option>
<option value="1">black</option>
<option value="2">blue</option>
<option value="3"> Red</option>
<option value="4"> Orange </option>
<option value="5"> Green</option>
<option value="6"> Yellow </option>
</select>
<br /><br />
<label class="control-label" for="inputEmail">
Nb places *
</label>
<select name="places" id="lst_NbPlaces" class="span2" required="">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
</select>
<br />
<br />
<button type="submit" class="btn btn-success">
Submit</button>
<br />
<br />
<br />
<label class="text-info">
* required field
</label>
</form>
<?php } else {
echo "You have already entered car !";
}
?>
Your query is wrong:
SELECT COUNT(*) FROM car where $user_id
This is in single quotes, so it is interpreted as exactly what you see above; $user_id is seen as literal text, not a variable. That is not a valid query. I suspect you mean something like
$res = $db->query('SELECT COUNT(*) FROM car where user_id = ' . $user_id);
(Change user_id to match your column name as needed.)
Note that this is extremely vulnerable to SQL injection and is therefore entirely unsafe for real-world use.
Also, in the future, you can try checking the database errors and logs to determine what went wrong.
Your query has a syntax error:
$res = $db->query('SELECT COUNT(*) FROM car where $user_id');
^---
You have no comparison, so in effect you're doing
SELECT COUNT(*) ... WHERE true
and are counting ALL records in the table. As soon as you had one user enter a car, ALL users were treated as having cars. Perhaps you want something more like
$res = $db->query('SELECT COUNT(*) FROM car where user = $user_id');
^^^^^^^

Validating the form from redirecting it to next page in php

I have created a form where user enters a number and month. When the number and month entered is not stored in database it should display a alert box saying details is not valid. iF if the details matches it as to redirect it to next page.My code redirects to next page if the details doesnt match too. how to solve this. Here is the code
<div id="col1" align="center"><br />
<form method="post" action="modifypay3.php">
<label type="text" name="name" maxlength="50" size="30" class="label">Enter the Membership Number which You want to edit</label><br />
<input type="text" name='uid' placeholder="enter Membership Number" class="input" size="40"/><br />
<span class="field">(* Required field)</span><br /><br />
<label type="text" name="month" maxlength="50" size="30" class="label">Select Month in which u want to edit</label><br />
<select name="month" placeholder="" class="input" style="width: 380px;" >
<option value="January">January</option>
<option value="February">February</option>
<option value="March">March</option>
<option value="April">April</option>
<option value="May">May</option>
<option value="June">June</option>
<option value="July">July</option>
<option value="August">August</option>
<option value="September">September</option>
<option value="October">October</option>
<option value="November">November</option>
<option value="December">December</option>
</select><br/><br/>
<input type="submit" name="submit" value="SUBMIT" class="button"><br /><br /><br /><br />
</form>
</div>
<?php
mysql_connect("localhost","root","");
mysql_select_db("anthonys");
if(isset($_POST['submit'])) {
$uid= $_POST['uid'];
if( ! ctype_alnum($uid) )
die('invalid id');
$month=$_POST['month'];
$query = "SELECT uid,month FROM `payment` WHERE uid ='$uid' and month='$month'";
$run = mysql_query($query);
if(mysql_num_rows($run)==1) {
echo "<script>window.open('modifypay3.php?uid=".$uid."','_self')</script>";
} else {
echo "<script>alert('Membership No is Invalid!')</script>";
}
}
?>
In your form action call modifypay3.php page
<form method="post" action="modifypay3.php">
Edit the form action like this
<form method="post" action="#">
replace
<form method="post" action="modifypay3.php">
to
<form method="post" action="">
<div id="col1" align="center"><br />
<form method="post" action="">
<label type="text" name="name" maxlength="50" size="30" class="label">Enter the Membership Number which You want to edit</label><br />
<input type="text" name='uid' placeholder="enter Membership Number" class="input" size="40"/><br />
<span class="field">(* Required field)</span><br /><br />
<label type="text" name="month" maxlength="50" size="30" class="label">Select Month in which u want to edit</label><br />
<select name="month" placeholder="" class="input" style="width: 380px;" >
<option value="January">January</option>
<option value="February">February</option>
<option value="March">March</option>
<option value="April">April</option>
<option value="May">May</option>
<option value="June">June</option>
<option value="July">July</option>
<option value="August">August</option>
<option value="September">September</option>
<option value="October">October</option>
<option value="November">November</option>
<option value="December">December</option>
</select><br/><br/>
<input type="submit" name="submit" value="SUBMIT" class="button"><br /><br /><br /><br />
</form>
</div>
<?php
mysql_connect("localhost","root","");
mysql_select_db("anthonys");
if(isset($_POST['submit'])) {
$uid = trim($_POST['uid']);
if( !ctype_alnum($uid) )
die('invalid id');
$month=trim($_POST['month']);
$query = "SELECT `uid`,`month` FROM `payment` WHERE `uid` ='".$uid."' and `month`='".$month."' LIMIT 1";
$run = mysql_query($query);
if(mysql_num_rows($run)==1) {
header("Location:modifypay3.php?uid=".$uid."");
} else {
echo "<script>alert('Membership No is Invalid!')</script>";
}
}
?>

PHP form with MYSQL query runs when page loads and not when sumbit button is hit

Here is the code i know its messy and i am learning all over again, my issues is when i go to the page the query runs right away i have used some suggestions from the site but none have worked so far, I am just trying to get the form data entered to insert into my DB table.
<?php require_once('connection.php')?>
<?php //Post Params
$F_name = $_POST['F_name'];
$L_name = $_POST['L_name'];
$Address1 = $_POST['Address1'];
$Address2 = $_POST['Address2'];
$City = $_POST['City'];
$State = $_POST['State'];
$Zip = $_POST['Zip'];
$Email = $_POST['Email'];
$P_number = $_POST['P_number'];
$Contact_pref = $_POST['Contact_pref'];
?>
<?php
//INSERT
$query = " INSERT INTO Consumer_info ( F_name, L_name, Address1, Address2, City, State, Zip, Email, P_number, Contact_pref ) VALUES ( '$F_name', '$L_name', '$Address1', '$Address2', '$City', '$State', '$Zip', '$Email', '$P_number', '$Contact_pref' ) ";
$result = mysql_query($query);
if( $result )
{
echo 'Success';
}
else
{
echo 'You already have signed up thanks';
}
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="form_style.css" media="screen" />
<title>Database Test</title>
</head>
<body>
<div id="wrapper">
<h1>Text Information form</h1>
<form id="form1" name="form1" action="index.php" method="post">
<label for="F_name">First Name</label><input type="text" name="F_name" id="F_name" />
<br class="clear" />
<label for="L_name">Last Name</label><input type="text" name="L_name" id="L_name" />
<br class="clear" />
<label for="Address1">Address</label><input type="text" name="Address1" id="Address1" />
<br class="clear" />
<label for="Address2">Unit/Apt/Suite</label><input type="text" name="Address2" id="Address2" />
<br class="clear" />
<label for="City">City</label><input type="text" name="City" id="City" />
<br class="clear" />
<label for="State">State</label><select name="State" id="State">
<option value="AL">AL</option>
<option value="AK">AK</option>
<option value="AZ">AZ</option>
<option value="AR">AR</option>
<option value="CA">CA</option>
<option value="CO">CO</option>
<option value="CT">CT</option>
<option value="DE">DE</option>
<option value="FL">FL</option>
<option value="GA">GA</option>
<option value="HI">HI</option>
<option value="ID">ID</option>
<option value="IL">IL</option>
<option value="IN">IN</option>
<option value="IA">IA</option>
<option value="KS">KS</option>
<option value="KY">KY</option>
<option value="LA">LA</option>
<option value="ME">ME</option>
<option value="MD">MD</option>
<option value="MA">MA</option>
<option value="MI">MI</option>
<option value="MN">MN</option>
<option value="MS">MS</option>
<option value="MO">MO</option>
<option value="MT">MT</option>
<option value="NE">NE</option>
<option value="NV">NV</option>
<option value="NH">NH</option>
<option value="NJ">NJ</option>
<option value="NM">NM</option>
<option value="NY">NY</option>
<option value="NC">NC</option>
<option value="ND">ND</option>
<option value="OH">OH</option>
<option value="OK">OK</option>
<option value="OR">OR</option>
<option value="PA">PA</option>
<option value="RI">RI</option>
<option value="SC">SC</option>
<option value="SD">SD</option>
<option value="TN">TN</option>
<option value="TX">TX</option>
<option value="UT">UT</option>
<option value="VT">VT</option>
<option value="VA">VA</option>
<option value="WA">WA</option>
<option value="WV">WV</option>
<option value="WI">WI</option>
<option value="WY">WY</option>
</select>
<br class="clear" />
<label for="Zip">Zip</label><input type="text" name="Zip" id="Zip" />
<br class="clear" />
<label for="Email">Email Address</label><input type="text" name="Email" id="Email" />
<br class="clear" />
<label for="P_number">Phone</label><input type="text" name="P_number" id="P_number" />
<br class="clear" />
<label for="Contact_pref">Contact Preferences</label><select name="Contact_pref" id="Contact_pref">
<option value="Email">Email</option>
<option value="Phone">Phone</option>
<option value="Mail">Mail</option>
<option value="None">None</option>
</select>
<br class="clear" />
<input type="hidden" name="Cust_id" id="Cust_id" />
<br class="clear" />
<input type="submit" name="submit" id="submit" value="Submit" />
<br class="clear" />
</form>
</div> <!-- End #wrapper -->
</body>
</html>
Put:
if (isset($_POST['submit'])) {
...
}
around the code that performs the database query.
You must check whether or not the form has been submitted. The easiest way is to check if the submit button's value has been POSTed:
if( isset( $_POST['submit'] ) )
{
// Your code here (MySQL INSERT, etc.)
}
<?php
require_once('connection.php');
if (isset($_POST['submit2'])) {
$a = $_POST['F_name'];
$b = $_POST['L_name'];
$c = $_POST['Address1'];
$d = $_POST['Address2'];
$e = $_POST['City'];
$f = $_POST['State'];
$g = $_POST['Zip'];
$h = $_POST['Email'];
$i = $_POST['P_number'];
$j = $_POST['Contact_pref'];
$k = " INSERT INTO Consumer_info ( F_name, L_name, Address1, Address2, City, State, Zip, Email, P_number, Contact_pref ) VALUES ( '$a', '$b', '$c', '$d', '$e', '$f', '$g', '$h', '$i', '$j' ) ";
$l = mysql_query($k);
if ($l) {
echo 'Success';
} else {
echo 'You already have signed up thanks';
}
}
?>
<html>
You can correct you code as follows:
<?php
require_once("connection.php");
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="form_style.css" media="screen" />
<title>Database Test</title>
</head>
<body>
//obviuosly you dont want to execute the query when the form is displayed.
<?php
$step=isset($_REQUEST['step'])?(int)$_REQUEST['step']:0;
if($step==0):
?>
<div id="wrapper">
<h1>Text Information form</h1>
<form id="form1" name="form1" action="<?php echo basename(__FILE__).'?step=1';?>" method="post">
<label for="F_name">First Name</label><input type="text" name="F_name" id="F_name" />
<br class="clear" />
<label for="L_name">Last Name</label><input type="text" name="L_name" id="L_name" />
<br class="clear" />
<label for="Address1">Address</label><input type="text" name="Address1" id="Address1" />
<br class="clear" />
<label for="Address2">Unit/Apt/Suite</label><input type="text" name="Address2" id="Address2" />
<br class="clear" />
<label for="City">City</label><input type="text" name="City" id="City" />
<br class="clear" />
<label for="State">State</label><select name="State" id="State">
<option value="AL">AL</option>
<option value="AK">AK</option>
<option value="AZ">AZ</option>
</select>
<!--Other stuffs here -->
<input type="submit" name="submit" id="submit" value="Submit" />
<br class="clear" />
</form>
</div> <!-- End #wrapper -->
<?php
elseif($step==1):
$F_name = isset($_POST['F_name'])?$_POST['F_name']:NULL;
$L_name = isset($_POST['L_name'])?$_POST['L_name']:NULL;
//other similar stuffs
$res = mysql_query("INSERT INTO Consumer_info ( F_name, L_name, Address1, Address2, City, State, Zip, Email, P_number, Contact_pref ) VALUES ( '$F_name', '$L_name', '$Address1', '$Address2', '$City', '$State', '$Zip', '$Email', '$P_number', '$Contact_pref' )");
$retry = "<a herf='".basename(__FILE__)."?step=0/>Retry</a>";
if($res)
echo "Record inserted successfully";
else
die("Cannot complete request, please ".$retry);
endif;
?>
</body>
</html>

PHP submit query not working,

I have a very extensive and large web form that users can submit to a PostGreSQL database of mine. I'm having trouble completing the functionality though. I have smaller web forms that this works a treat with but I'm getting an error - Query failed: ERROR: INSERT has more target columns than expressions
Now, of course, I can interpret what this means but I've looked through the file time and time again and cannot see anything wrong with the web form at all. Could I get a few more pairs of eyes on the web form itself and the PHP submit query. I'm also looking for advice on how to make the PHP script smaller, seems a very unprofessional way that I am carrying out the functionality. Can any of you identify which column/variable is out of place.
Web form.html
<form name="availability" method="post" action="auth/avaisubmit.php">
<h5>7.1 Orientation</h5>
<label>Are floor-plans or maps available?</label>
<select name="floorplans">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select> <br /> <br />
<label>Specify what formats</label>
<textarea cols="50" rows="4" name="format_specify"></textarea> <br />
<label>Are videos with British Sign Language(BSL) available?</label>
<select name="videos_bsl">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select> <br /> <br />
<label>Do you highlight what ISN'T accessible?</label>
<select name="highlight_not_accessible">
<option value="Yes">Yes</option>
<option value="No">No</option>
<option value="Not applicable">Not applicable</option>
</select> <br /> <br />
<label>Do staff offer a browsing collections service? (i.e. where staff can browse collections and retrieve items for disabled visitors?</label>
<select name="browsing_service">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select> <br /> <br />
<label>If yes, please add more details(for example if it needs to be pre-booked).</label>
<textarea cols="50" rows="4" name="more_details"></textarea> <br />
<h5> 7.2 Alternative Formats </h5>
<label>Is an audio system available?</label>
<select name="audio_system">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select> <br /> <br />
<!--ADD COLUMNS BACK INTO TYPESCRIPT-->
<label>What type of audio system is it?</label>
<input type="text" name="audio_system_type" /> <br />
<label>Where is the audio system available?</label>
<input type="text" name="where_audio" /> <br />
<label>Is there a text version? </label>
<select name="text_version">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select> <br /> <br />
<label>Text version - Description </label>
<textarea cols="50" rows="4" name="text_version_description"></textarea> <br />
<label>Are verbal descriptions<sup>*1</sup> available?</label>
<select name="verbal">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select> <br /> <br />
<label>Verbal description - Description</label>
<textarea cols="50" rows="4" name="verbal_description"></textarea> <br />
<label>Are Tactile<sup>*2</sup> models available?</label>
<select name="tactile">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select> <br /> <br />
<label>Tactile models - Description</label>
<textarea cols="50" rows="4" name="tactile_description"></textarea> <br />
<label>Are replicas<sup>*3</sup> available? (including digital copies of documents)</label>
<select name="replicas">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select> <br /> <br />
<label>Replicas - Description</label>
<textarea cols="50" rows="4" name="replicas_description"></textarea> <br />
<label>Are DAISY (digital talking books)<sup>*4</sup> available?</label>
<select name="daisy">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select> <br /> <br />
<label>DAISY - Description</label>
<textarea cols="50" rows="4" name="daisy_description"></textarea> <br />
<label>Are CDs<sup>*5</sup> available?</label>
<select name="cd">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select> <br /> <br />
<label> CDs - Description </label>
<textarea cols="50" rows="4" name="cd_description"></textarea> <br />
<label> Are DVDs<sup>*6</sup> available? </label>
<select name="dvd">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select> <br /> <br />
<label> DVDs - Description </label>
<textarea cols="50" rows="4" name="dvd_description"></textarea> <br />
<label> Are raised images<sup>*7</sup> available?</label>
<select name="raised_images">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select> <br /> <br />
<label> Raised images - Description </label>
<textarea cols="50" rows="4" name="raised_images_description"></textarea> <br />
<label> Is tape available</label>
<select name="tape">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select> <br /> <br />
<label> Tape - Description </label>
<textarea cols="50" rows="4" name="tape_description"></textarea> <br />
<label>Please list any other formats have, e.g. MP3 etc</label>
<textarea cols="50" rows="4" name="other_formats"></textarea> <br />
<label>Is a format conversion service<sup>*8</sup> available?</label>
<select name="format_conversion">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select> <br /> <br />
<label> Format conversion service - Description </label>
<textarea cols="50" rows="4" name="format_conversion_description"></textarea> <br />
<h5> 7.3 ICT </h5>
<label>Do you have Kiosks/interactives?</label>
<select name="kiosks">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select> <br /> <br />
<label>How many Kiosks do you have?</label>
<input type="text" name="num_kiosks" /> <br />
<label> How are Kiosks/interactives accessible to disabled visitors?</label>
<textarea cols="50" rows="4" name="accessible_kiosks"></textarea> <br />
<label> Where are the Kiosks/interactives located?</label>
<textarea cols="50" rows="4" name="location_kiosks"></textarea> <br />
<label>What senses do they stimulate?</label>
<select name="senses">
<option value="Hearing">Hearing</option>
<option value="Sight">Sight</option>
<option value="Touch">Touch</option>
<option value="Smell">Smell</option>
<option value-"Taste">Taste</option>
</select> <br /> <br />
<label> Are there videos with captions and audio descriptions?</label>
<select name="videos_captions_audios">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select> <br /> <br />
<label> How many captioned or described videos are available?</label>
<input type="text" name="num_captioned_videos" /> <br />
<label> Where are the captioned or described videos located? </label>
<input type="text" name="location_captioned_videos" /> <br />
<label>Are there fixed point or portable audio guides or interpretation?</label>
<select name="audio_guides">
<option name="Yes">Yes</option>
<option name="No">No</option>
</select> <br /> <br />
<label>How many of these are available?</label>
<input type="text" name="num_audio_guides" /> <br />
<label>Where are they located?</label>
<input type="text" name="location_audio_guides" /> <br />
<label>Are transcripts of audio/video available?</label>
<select name="transcripts">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select> <br /> <br />
<label>How many of these are available?</label>
<input type="text" name="num_transcripts" /> <br />
<label> Please give details </label>
<textarea cols="50" rows="4" name="details_transcripts"></textarea> <br />
<label>Do visitors/users have access to ICT equipment as part of their visit?</label>
<select name="access_ict">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select> <br /> <br />
<label>Are there height-adjustable tables and chairs?</label>
<select name="tables_chairs">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select> <br /> <br />
<label>What size is the screen?</label>
<textarea cols="50" rows="4" name="screen_size"></textarea> <br />
<label>Are there monitors mounted on universal arms for viewing at any angle?</label>
<select name="monitor_universal">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select> <br /> <br />
<label>Is there a selection of mice, ketboards and joysticks with wired and wireless connection?</label>
<select name="mice_keyboards_joysticks">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select> <br /> <br />
<label>Are there standalone text to speech machines?<sup>*9</sup> </label>
<select name="text_to_speech">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select> <br /> <br />
<label> Description - Text to speech machines</label>
<textarea rows="4" cols="50" name="text_to_speech_description"> </textarea> <br />
<label>Is there closed circuit TV magnification equipment with X-Y tables?*</label>
<select name="closed_circuit_tv">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select> <br /> <br />
<label>Is there an accessible Website?</label>
<select name="website">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select> <br /> <br />
<label>Tested by:</label> <input type="text" name="accessible_website_tester" /> <br />
<label>Have you carried out access testing with disabled website users?</label>
<select name="access_testing">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select> <br /> <br />
<label>Tested by:</label> <input type="text" name="accessible_testing_tester" /> <br />
<label>Can you easily increase font size?</label>
<select name="font_size">
<option value="Yes">Yes</option>
<option value="No">No<option>
</select> <br /> <br />
<label>Are pictures and text described?</label>
<select name="pictures_text_described">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select> <br /> <br />
<label>Does this include downloadable resources in alternative formats?</label>
<select name="downloadables">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select> <br /> <br />
<label>Downloadbles - Description</label> <input type="text" name="downloadables_description" /> <br />
<label>Is there website available on-site?</label>
<select name="website_onsite">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select> <br /> <br />
<label>Where:</label> <input type="text" name="website_where" /> <br />
<label>Do you provide automatic page turners?</label>
<select name="auto_page_turners">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select> <br /> <br />
<label>Add any other assistive technologies that you use to increase access</label> <input type="text" name="other_technologies" /> <br />
<label>Do you offer different assistive technologies?</label>
<select name="other_different">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select> <br /> <br />
<label>If yes, please list some examples<sup>*10</sup> </label>
<textarea cols="50" rows="4" name="other_different_examples"></textarea> <br />
<input class="button" type="submit" value="Save"> <br />
</form>
PHP Submit.php
<?php
session_start();
if(isset($_SESSION['SESS_NAME']))
{
$_SESSION['SESS_NAME'] = $_SESSION['SESS_NAME'];
}
else
{
$_SESSION['SESS_NAME'] = $_POST['SESS_NAME'];
}
$username = $_SESSION["SESS_NAME"];
$floorplans = $_POST["floorplans"];
$format = $_POST["format_specify"];
$videosbsl = $_POST["videos_bsl"];
$highlight = $_POST["highlight_not_accessible"];
$browsing = $_POST["browsing_service"];
$details = $_POST["more_details"];
$audio = $_POST["audio_system"];
$whereaudio = $_POST["where_audio"];
$textversion = $_POST["text_version"];
$textversiondesc = $_POST["text_version_description"];
$verbal = $_POST["verbal"];
$verbaldesc = $_POST["verbal_description"];
$tactile = $_POST["tactile"];
$tactiledesc = $_POST["tactile_description"];
$replicas = $_POST["replicas"];
$replicasdesc = $_POST["replicas_description"];
$daisy = $_POST["daisy"];
$daisydesc = $_POST["daisy_description"];
$cd = $_POST["cd"];
$cddesc = $_POST["cd_description"];
$dvd = $_POST["dvd"];
$dvddesc = $_POST["dvd_description"];
$raised = $_POST["raised_images"];
$raiseddesc = $_POST["raised_images_description"];
$tape = $_POST["tape"];
$tapedesc = $_POST["tape_description"];
$other = $_POST["other_formats"];
$formatconv = $_POST["format_conversion"];
$fcdesc = $_POST["format_conversion_description"];
$kiosks = $_POST["kiosks"];
$numkiosks = $_POST["num_kiosks"];
$accesskiosks = $_POST["accessible_kiosks"];
$locationkiosks = $_POST["location_kiosks"];
$senses = $_POST["senses"];
$vca = $_POST["videos_captions_audios"];
$numvca = $_POST["num_captioned_videos"];
$locvca = $_POST["location_captioned videos"];
$audioGuide = $_POST["audio_guides"];
$numAG = $_POST["num_audio_guides"];
$locAG = $_POST["location_audio_guides"];
$transcripts = $_POST["transcripts"];
$numtranscripts = $_POST["num_transcripts"];
$detailtranscripts = $_POST["details_transcripts"];
$accessICT = $_POST["access_ict"];
$tableschairs = $_POST["tables_chairs"];
$screensize = $_POST["screen_size"];
$monitors = $_POST["monitor_universal"];
$mkj = $_POST["mice_keyboards_joysticks"];
$textspeech = $_POST["text_to_speech"];
$textspeechdesc = $_POST["text_to_speech_description"];
$circutTV = $_POST["closed_circuit_tv"];
$website = $_POST["website"];
$tester = $_POST["accessible_website_tester"];
$accessTesting = $_POST["access_testing"];
$accessibleTester = $_POST["accessible_testing_tester"];
$fontsize = $_POST["font_size"];
$pictexts = $_POST["pictures_text_described"];
$downloadables = $_POST["downloadables"];
$downloadablesdesc = $_POST["downloadables_description"];
$webonsite = $_POST["website_onsite"];
$webwhere = $_POST["website_where"];
$pageturners = $_POST["auto_page_turners"];
$othertech = $_POST["other_technologies"];
$otherdiff = $_POST["other_different"];
$otherdiffeg = $_POST["other_different_examples"];
$systemaudio = $_POST["audio_system_type"];
$conn = pg_connect("db_string");
$user = pg_query("SELECT * FROM staff WHERE username='$username'");
$user_row = pg_fetch_assoc($user);
$user_res = $user_row['s_id'];
var_dump($user_res);
$check = pg_query("SELECT name FROM availability");
$num_rows = pg_num_rows($check);
if($num_rows == 1)
{
$res = pg_query("UPDATE availability SET (floorplans_maps, formats, videos_with_bsl, highlight_not_accessible, browsing_collection_service,
more_detail, audio_system, where_audio_system, text_version, text_version_description, verbal, verbal_description,
tactile_models, tactile_models_description, replicas, replicas_description, daisy, daisy_description, cd, cd_description, dvd, dvd_description, raised_images, raised_images_descriptipon, tape, tape_description,
other_formats, format_conversion, format_conversion_description, kiosks, num_kiosks, accessible_kiosks, location_kiosks, senses,
video_captions_audio_description, num_captioned_videos, location_captioned_videos, audio_guides, num_audio_guides, location_audio_guides,
transcripts, num_transcripts, details_transcripts, access_to_ict, height_adjust_chairs, screen_size, monitor_universal_arms, mice_keyboards_joysticks,
text_to_speech_machines, text_to_speech_machines_description, closed_circuit_tv, accessible_website, accessible_website_tester, access_testing, access_testing_tester,
font_size_adjustment, pictures_text_described, downloadables_included, downloadables_description, website_onsite, website_where, auto_page_turner, other_technologies,
offer_different, offer_different_examples, type_audio_system) =
('$floorplans',
'$format',
'$videosbsl',
'$highlight',
'$browsing',
'$details',
'$audio',
'$whereaudio',
'$textversion',
'$textversiondesc',
'$verbal',
'$verbaldesc',
'$tactile',
'$tactiledesc',
'$replicas',
'$replicasdesc',
'$daisy',
'$daisydesc',
'$cd',
'$cddesc',
'$dvd',
'$dvddesc',
'$raised',
'$raiseddesc',
'$tape',
'$tapedesc',
'$other',
'$formatconv',
'$fcdesc',
'$kiosks',
'$numkiosks',
'$accesskiosks',
'$locationkiosks',
'$senses',
'$vca',
'$numvca',
'$locvca',
'$audioGuide',
'$numAG',
'$locAG',
'$transcripts',
'$numtranscripts',
'$detailtranscripts',
'$accessICT',
'$tableschairs',
'$screensize',
'$monitors',
'$mkj',
'$textspeech',
'$textspeechdesc',
'$circutTV',
'$website',
'$tester',
'$accessTesting',
'$accessibleTester',
'$fontsize',
'$pictexts',
'$downloadables',
'$downloadablesdesc'
'$webonsite',
'$webwhere',
'$pageturners',
'$othertech',
'$otherdiff',
'$otherdiffeg',
'$systemaudio') WHERE name='$user_res'");
}
elseif($num_rows == 0)
{
$res = pg_query("INSERT INTO availability (floorplans_maps, formats, videos_with_bsl, highlight_not_accessible, browsing_collection_service,
more_detail, audio_system, where_audio_system, text_version, text_version_description, verbal, verbal_description,
tactile_models, tactile_models_description, replicas, replicas_description, daisy, daisy_description, cd, cd_description, dvd, dvd_description, raised_images, raised_images_descriptipon, tape, tape_description,
other_formats, format_conversion, format_conversion_description, kiosks, num_kiosks, accessible_kiosks, location_kiosks, senses,
video_captions_audio_description, num_captioned_videos, location_captioned_videos, audio_guides, num_audio_guides, location_audio_guides,
transcripts, num_transcripts, details_transcripts, access_to_ict, height_adjust_chairs, screen_size, monitor_universal_arms, mice_keyboards_joysticks,
text_to_speech_machines, text_to_speech_machines_description, closed_circuit_tv, accessible_website, accessible_website_tester, access_testing, access_testing_tester,
font_size_adjustment, pictures_text_described, downloadables_included, downloadables_description, website_onsite, website_where, auto_page_turner, other_technologies,
offer_different, offer_different_examples, name, type_audio_system) VALUES (
'$floorplans',
'$format',
'$videosbsl',
'$highlight',
'$browsing',
'$details',
'$audio',
'$whereaudio',
'$textversion',
'$textversiondesc',
'$verbal',
'$verbaldesc',
'$tactile',
'$tactiledesc',
'$replicas',
'$replicasdesc',
'$daisy',
'$daisydesc',
'$cd',
'$cddesc',
'$dvd',
'$dvddesc',
'$raised',
'$raiseddesc',
'$tape',
'$tapedesc',
'$other',
'$formatconv',
'$fcdesc',
'$kiosks',
'$numkiosks',
'$accesskiosks',
'$locationkiosks',
'$senses',
'$vca',
'$numvca',
'$locvca',
'$audioGuide',
'$numAG',
'$locAG',
'$transcripts',
'$numtranscripts',
'$detailtranscripts',
'$accessICT',
'$tableschairs',
'$screensize',
'$monitors',
'$mkj',
'$textspeech',
'$textspeechdesc',
'$circutTV',
'$website',
'$tester',
'$accessTesting',
'$accessibleTester',
'$fontsize',
'$pictexts',
'$downloadables',
'$downloadablesdesc'
'$webonsite',
'$webwhere',
'$pageturners',
'$othertech',
'$otherdiff',
'$otherdiffeg',
'$user_res',
'$systemaudio')");
}
pg_close($conn);
?>
Again huge apologies for how long the source code is. Just can't seem to figure out the error.
It's occurring because you've missed a comma after the '$downloadablesdesc' entry in both queries.
Consequently, the counts don't match up:
'$downloadables',
'$downloadablesdesc' <-- should be a comma here
'$webonsite',
You can confirm this using the JSfiddle I built to check:
http://jsfiddle.net/SpAm/Z7KzA/1/
Paste these (your columns) into the box on the left:
floorplans_maps, formats, videos_with_bsl, highlight_not_accessible, browsing_collection_service,more_detail, audio_system, where_audio_system, text_version, text_version_description, verbal, verbal_description,tactile_models, tactile_models_description, replicas, replicas_description, daisy, daisy_description, cd, cd_description, dvd, dvd_description, raised_images, raised_images_descriptipon, tape, tape_description,other_formats, format_conversion, format_conversion_description, kiosks, num_kiosks, accessible_kiosks, location_kiosks, senses,video_captions_audio_description, num_captioned_videos, location_captioned_videos, audio_guides, num_audio_guides, location_audio_guides,transcripts, num_transcripts, details_transcripts, access_to_ict, height_adjust_chairs, screen_size, monitor_universal_arms, mice_keyboards_joysticks,text_to_speech_machines, text_to_speech_machines_description, closed_circuit_tv, accessible_website, accessible_website_tester, access_testing, access_testing_tester,font_size_adjustment, pictures_text_described, downloadables_included, downloadables_description, website_onsite, website_where, auto_page_turner, other_technologies,offer_different, offer_different_examples, type_audio_system
And these (your values) into the box on the right, and click the button:
'$floorplans',
'$format',
'$videosbsl',
'$highlight',
'$browsing',
'$details',
'$audio',
'$whereaudio',
'$textversion',
'$textversiondesc',
'$verbal',
'$verbaldesc',
'$tactile',
'$tactiledesc',
'$replicas',
'$replicasdesc',
'$daisy',
'$daisydesc',
'$cd',
'$cddesc',
'$dvd',
'$dvddesc',
'$raised',
'$raiseddesc',
'$tape',
'$tapedesc',
'$other',
'$formatconv',
'$fcdesc',
'$kiosks',
'$numkiosks',
'$accesskiosks',
'$locationkiosks',
'$senses',
'$vca',
'$numvca',
'$locvca',
'$audioGuide',
'$numAG',
'$locAG',
'$transcripts',
'$numtranscripts',
'$detailtranscripts',
'$accessICT',
'$tableschairs',
'$screensize',
'$monitors',
'$mkj',
'$textspeech',
'$textspeechdesc',
'$circutTV',
'$website',
'$tester',
'$accessTesting',
'$accessibleTester',
'$fontsize',
'$pictexts',
'$downloadables',
'$downloadablesdesc'
'$webonsite',
'$webwhere',
'$pageturners',
'$othertech',
'$otherdiff',
'$otherdiffeg',
'$systemaudio'
This is the outcome:
floorplans_maps -- '$floorplans'
formats -- '$format'
videos_with_bsl -- '$videosbsl'
highlight_not_accessible -- '$highlight'
browsing_collection_service -- '$browsing'
more_detail -- '$details'
audio_system -- '$audio'
where_audio_system -- '$whereaudio'
text_version -- '$textversion'
text_version_description -- '$textversiondesc'
verbal -- '$verbal'
verbal_description -- '$verbaldesc'
tactile_models -- '$tactile'
tactile_models_description -- '$tactiledesc'
replicas -- '$replicas'
replicas_description -- '$replicasdesc'
daisy -- '$daisy'
daisy_description -- '$daisydesc'
cd -- '$cd'
cd_description -- '$cddesc'
dvd -- '$dvd'
dvd_description -- '$dvddesc'
raised_images -- '$raised'
raised_images_descriptipon -- '$raiseddesc'
tape -- '$tape'
tape_description -- '$tapedesc'
other_formats -- '$other'
format_conversion -- '$formatconv'
format_conversion_description -- '$fcdesc'
kiosks -- '$kiosks'
num_kiosks -- '$numkiosks'
accessible_kiosks -- '$accesskiosks'
location_kiosks -- '$locationkiosks'
senses -- '$senses'
video_captions_audio_description -- '$vca'
num_captioned_videos -- '$numvca'
location_captioned_videos -- '$locvca'
audio_guides -- '$audioGuide'
num_audio_guides -- '$numAG'
location_audio_guides -- '$locAG'
transcripts -- '$transcripts'
num_transcripts -- '$numtranscripts'
details_transcripts -- '$detailtranscripts'
access_to_ict -- '$accessICT'
height_adjust_chairs -- '$tableschairs'
screen_size -- '$screensize'
monitor_universal_arms -- '$monitors'
mice_keyboards_joysticks -- '$mkj'
text_to_speech_machines -- '$textspeech'
text_to_speech_machines_description -- '$textspeechdesc'
closed_circuit_tv -- '$circutTV'
accessible_website -- '$website'
accessible_website_tester -- '$tester'
access_testing -- '$accessTesting'
access_testing_tester -- '$accessibleTester'
font_size_adjustment -- '$fontsize'
pictures_text_described -- '$pictexts'
downloadables_included -- '$downloadables'
downloadables_description -- '$downloadablesdesc' '$webonsite'
website_onsite -- '$webwhere'
website_where -- '$pageturners'
auto_page_turner -- '$othertech'
other_technologies -- '$otherdiff'
offer_different -- '$otherdiffeg'
offer_different_examples -- '$systemaudio'
type_audio_system -- undefined

Categories