Assigning values to elements in html/php
<p>Good evening, here is what I am trying to achieve, I currently have a web form that looks like this </p>

<pre><code>&lt;form id="Submit" method="post" action="FormSubmit.php"&gt;
First name: &lt;input type="text" name="firstname" /&gt; 
Last name: &lt;input type="text" name="lastname" /&gt;&lt;br /&gt;
Address line 1:  &lt;input type="text" name="add1" /&gt; &lt;br /&gt;
Address Line 2:  &lt;input type="text" name="add2" /&gt;&lt;br /&gt;
Postcode:  &lt;input type="text" name="postcode" /&gt;&lt;br /&gt;
Email:  &lt;input type="text" name="email" /&gt;
Telephone:  &lt;input type="text" name="telephone" /&gt;&lt;br /&gt;
&lt;p&gt;How would you like to be contacted &lt;p&gt;
&lt;input type="checkbox" name="contact" value="email" /&gt; Email
&lt;input type="checkbox" name="contact" value="sms" /&gt; SMS
&lt;input type="checkbox" name="contact" value="post" /&gt; post &lt;br /&gt;
&lt;br /&gt;

Select Trainers
&lt;select name="trainers"&gt; 
&lt;option value="nike"&gt;Nike&lt;/option&gt;
&lt;option value="adidas"&gt;Adidas&lt;/option&gt;
&lt;option value="rebok"&gt;Rebok&lt;/option&gt;
&lt;/select&gt; &lt;br /&gt;
&lt;br /&gt;
Select Extras
&lt;select name="extras"&gt; 
&lt;option value="Laces"&gt;Laces&lt;/option&gt;
&lt;option value="In-souls"&gt;In-souls&lt;/option&gt;
&lt;option value="Shoe Polish"&gt;Polish&lt;/option&gt;
&lt;/select&gt; &lt;br /&gt;
&lt;br  /&gt;
&lt;input type="submit" value="Submit Order" /&gt;
&lt;/form&gt; 
</code></pre>

<p>which is linked to a php script here</p>

<pre><code>&lt;?php
    {
  $firstname = $_POST['firstname'];
  echo "Firstname $firstname &lt;br /&gt;\n";
 }

 {
  $lastname = $_POST['lastname'];
  echo "Lastname $lastname &lt;br /&gt;\n";
 }

  {
  $add1 = $_POST['add1'];
  echo "$add1 &lt;br /&gt;\n";
 }

 {
  $add2 = $_POST['add2'];
  echo "$add2 &lt;br /&gt;\n";
 }
  {
  $postcode = $_POST['postcode'];
  echo "$postcode &lt;br /&gt;\n";
  }
  {
  $email = $_POST['email'];
  echo "Contact Email Address $email &lt;br /&gt;\n";
  }
  {
  $telephone = $_POST['telephone'];
  echo "Contact Telephone Number $telephone &lt;br /&gt;\n";
  }
  {
  $contact = $_POST['contact'];
  echo "You would like to be contacted by $contact &lt;br /&gt;\n";
  }

  {
  $trainers = $_POST['trainers'];
  echo "The trainers you would like are $trainers &lt;br /&gt;\n";
  }

  {
  $extras = $_POST['extras'];
  echo "The extras you would like are $extras &lt;br /&gt;\n";
  }

?&gt;
</code></pre>

<p>what I would like to do is when a shoe i.e nike is selected from the drop down box in the web form is can be assigned an int for example 30 (for £30) and then an option eg laces for (£5) therefore when the the user clicks submit the resulting php page is able to display a total of £35 but I have no idea where to start or what to search for as a number of google searches have come back unsuccessful</p>

<p>many thanks </p>
