Php form, input type country

Is it important to have a country of origin? If so, do I just
type Greece?
<input type=hidden value="GREECE"
name=originating_country>
Jo

And who wrote jomail.php? You? Can you show us the code in
it?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"josie1one" <[email protected]> wrote in message
news:[email protected]...
> Sorry, should have looked
>
> action="jomail.php"
>
> --
> Jo
>
>
>
> "Murray *ACE*" <[email protected]>
wrote in message
> news:[email protected]...
>>>>"action"
>>>
>>> POST
>>
>> No, that's METHOD. What's the "action" attribute's
value?
>>
>> --
>> Murray --- ICQ 71997575
>> Adobe Community Expert
>> (If you *MUST* email me, don't LAUGH when you do
so!)
>> ==================
>>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>> ==================
>>
>>
>> "josie1one" <[email protected]> wrote
in message
>> news:[email protected]...
>>> No, no database. Yes, processed to produce a
summary mesage and emailed
>>> to the site's owner. No, the owner isn't asking
for the country of
>>> origin. The purpose is an enquiry form for
holiday apartments to let.
>>>
>>>>"action"
>>>
>>> POST
>>>
>>> --
>>> Jo
>>>
>>>
>>>
>>> "Murray *ACE*"
<[email protected]> wrote in message
>>> news:[email protected]...
>>>> So the form's data is not captured in a
database? It's only processed
>>>> to produce a summary message and emailed to
the site's owner? Is the
>>>> owner asking for the Country of origin?
>>>>
>>>> What is the value of the "action" attribute
of the <form> tag?
>>>>
>>>> --
>>>> Murray --- ICQ 71997575
>>>> Adobe Community Expert
>>>> (If you *MUST* email me, don't LAUGH when
you do so!)
>>>> ==================
>>>>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>>>>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>>>> ==================
>>>>
>>>>
>>>> "josie1one" <[email protected]>
wrote in message
>>>> news:[email protected]...
>>>>> Thanks for the reference, lovely quote
(o:
>>>>>
>>>>> I guess I don't need that information
but I didn't know if it was
>>>>> needed.
>>>>>> how is that information then
handled?
>>>>>
>>>>> php and erm, passed to a mail handler
which processes a thank you. Is
>>>>> that the correct answer?
>>>>>
>>>>>> By the way, all attribute values
should be in quotes -
>>>>>>
>>>>>> <input type="hidden"....
>>>>>
>>>>> Thank you, I will fix that.
>>>>>
>>>>> --
>>>>> Jo
>>>>>
>>>>>
>>>>>
>>>>> "Murray *ACE*"
<[email protected]> wrote in message
>>>>>
news:[email protected]...
>>>>>> Why are you feeling it would matter.
Do *you* need that information?
>>>>>> If not, then it's like what the
Cheshire Cat said to Alice....
>>>>>>
>>>>>> Alice: [standing at fork in road]
Which way do I go?
>>>>>> Cat: What is your destination?
>>>>>> Alice: It doesn't matter.
>>>>>> Cat: Then it doesn't matter which
way you go!
>>>>>>
>>>>>> Those fields are there only for the
support of the processing script,
>>>>>> and for the way that the information
is handled. What script are you
>>>>>> using and how is that information
then handled?
>>>>>>
>>>>>> By the way, all attribute values
should be in quotes -
>>>>>>
>>>>>> <input type="hidden"....
>>>>>>
>>>>>> --
>>>>>> Murray --- ICQ 71997575
>>>>>> Adobe Community Expert
>>>>>> (If you *MUST* email me, don't LAUGH
when you do so!)
>>>>>> ==================
>>>>>>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>>>>>>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>>>>>> ==================
>>>>>>
>>>>>>
>>>>>> "josie1one"
<[email protected]> wrote in message
>>>>>>
news:[email protected]...
>>>>>>> Sorry Micha, that wasn't enough
was it?
>>>>>>> It's an input form - I can't
show the link because I have a
>>>>>>> scripting error, but the
relevant lines are these:
>>>>>>>
>>>>>>> <form name="form1"
method="post" action="jomail.php">
>>>>>>> <input type=hidden
value="General Information Request"
>>>>>>> name=mailsubject>
>>>>>>> <input type=hidden
value="kiwiannes-leros.com"
>>>>>>> name=originating_site>
>>>>>>> <input type=hidden value="UK"
name=originating_country>
>>>>>>> <input type=hidden
name="env_report"
>>>>>>>
value="REMOTE_HOST,REMOTE_ADDR">
>>>>>>> <input type=hidden
value="Information Request" name=title>
>>>>>>>
<fieldset><legend><strong>Contact
Form</strong></legend>
>>>>>>>
>>>>>>> line 4 above - the originating
country is Greece. What do I type
>>>>>>> please? GR, Greece, GREECE - and
does it matter?
>>>>>>>
>>>>>>> --
>>>>>>> Jo
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> "Michael Fesser"
<[email protected]> wrote in message
>>>>>>>
news:[email protected]...
>>>>>>>> .oO(josie1one)
>>>>>>>>
>>>>>>>>>Is it important to have a
country of origin?
>>>>>>>>
>>>>>>>> For what?
>>>>>>>>
>>>>>>>>>If so, do I just type
Greece?
>>>>>>>>>
>>>>>>>>><input type=hidden
value="GREECE" name=originating_country>
>>>>>>>>
>>>>>>>> It all depends on the
server-side script. This hidden field alone
>>>>>>>> in the
>>>>>>>> HTML means absolutely
nothing.
>>>>>>>>
>>>>>>>> Micha
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>
>
>

Similar Messages

  • Handling FORM - input type="File"...

    How can I handle the <input type="FILE"...> in a servlet, if I'd like to save this file to the server.
    HELP !
    Thanks...

    Take a quick look at servletsuite.com. They have a uploadservlet.
    Andreas

  • Php form script assistance

    Hello please forgive me as I am new to this but really need assistance. I have a form created in html on a site and have tried numerous tutorials on creating a php script which would be linked to this html form, but each one I try either doesn't work or it seems as if it goes through but then I never recieve the mail in my mailbox. I used my yahoo account as well as another account and didn't get anything , can anyone please assist as to what I should do here is what I have so far.
    Thank you in advance for any assistance provided.
    HTML:
    <form name="contactform" method="post" action="mailer.php">
             Name          <input type="text" name="name"/><br/><br/>
             Email          <input type="text" name="email"/><br/><br/>
             Address      <input type="text" name="address"/><br/><br/>
             City            <input type="text" name="city"/><br/><br/>
             When to Contact <select name="dropdown">
                               <option value="Morning">Morning</option>
                               <option value="Afternoon">Afternooon</option>
                               <option value="Evening">Evening</option>
                               </select><br/><br/>
             Purpose of Contact <br/><textarea name="commment" rows="6" cols="40">
            </textarea><br/> <br/><input type="submit" value="Submit Form Now" name="submit"/>
            </form>
    Here is the script that I am using :
    <?php
    if(isset($_POST['submit'])) {
    $to = "[email protected]";
    $subject = "Inquiry Form";
    $name_field = $_POST['name'];
    $email_field = $_POST['email'];
    $address_field = $_POST['address'];
    $city_field = $_POST['city'];
    $comment= $_POST['comment'];
    $dropdown = $_POST['dropdown'];
    foreach($_POST['check'] as $value) {
    $check_msg .= "Checked: $value\n";
    $body = "From: $name_field\n E-Mail: $email_field\n $check_msg Option: $option\n Drop-Down: $dropdown\n Message:\n $message\n";
    echo "Data has been submitted to $to!";
    mail($to, $subject, $body);
    } else {
    echo "Form not Submitted!";
    ?>

    Hello thank you for responding... yes I believe it is , I have used a drag and drop flash component with a php script for another project I had worked on not too long ago and it worked fine. Im pretty sure it is running.
    Does the code and script that I provided look correct to you?

  • Firefox 4 does not validate REGEX in "pattern" attribute of INPUT (type = text) when diacritic characters are includes (Chrome does).

    Using HTML5 and Firefox 4.0.1, following code :
    <form>
    <input type="text" name="my_input"
    pattern="^[A-Z]([a-zA-Zçéèâêîôûäëïöü-]{1,47}|.)" />
    </form>
    fails to validate input like "François" or "André" but "Francois" ou "André" is accepted. The problèm occurs with string including any diacritic character.
    (The REGEX validates using "Expresso" Regular Expression Editor.)

    See https://developer.mozilla.org/en/HTML/element/input
    <blockquote>pattern HTML5:
    A regular expression that the control's value is checked against. The pattern must match the <u>entire</u> value, not just some subset. Use the title attribute to describe the pattern to help the user. This attribute applies when the value of the type attribute is text, search, tel, url or email; otherwise it is ignored.</blockquote>
    <pre><nowiki>pattern="^[A-Z]([a-zA-Zçéèâêîôûäëïöü-]{1,47}|.)$"</nowiki></pre>

  • CFGIRD and hidden form inputs

    Hi,
    I am using a cfgrid in CF8 bound to a cfc. The cfgrid of
    course has to be in a form. The question is, if I am using an
    "href" on one of the cfgridcolumns (i.e. a user clicks on a
    link/data in the grid which opens a new webpage with an attached
    hrefkey), should any hidden form fields within the same form
    (<input type="hidden"....>) be posted to the new page as
    well?
    If this is not possible how else can I get other variables
    not related to the grid results posted to a new page?
    Thanks.

    Your actions specify session scope - that means it should retain the form in session, and keep your values. That looks good.
    You have a 2-step 'wizard' process.
    The question - what does your reset() method on your action form do?
    If it clears all the fields, that explains what happens to the values.
    The "reset" method gets called every time you access the action form.
    In your case, you only want to "reset" the action form when you submit from page1, not from page2.
    Well thats my hypothesis anyway.
    Hope this helps,
    evnafets

  • PHP Form Sending E-mail without inputs in Safari

    Hi everyone. I'm having a problem and can't seem to find what the problem is. My form works fine in chrome and firefox but not safari. Below is my code. Please let me know if you can help.
    HTML Code
    <form id="form_280313" class="appnitro" method="post" action="email.php" enctype="text/html">
    <!--<div class="form_description">
    <h2>Untitled Form</h2>
    <p>This is your form description. Click here to edit.</p>
    </div>      -->
    <ul >
    <li id="li_1" >
    <label class="description" for="booked_by">Booked By: </label>
    <div>
    <input id="booked_by" name="booked_by" class="element text medium" type="text" maxlength="255" value=""/>
    </div>
    </li>      <li id="li_16" >
    <label class="description" for="element_16_1">Proposed Rental Date </label>
    <span>
    <input id="element_16_1" name="element_16_1" class="element text" size="2" maxlength="2" value="Month" type="text"> /
    <label for="element_16_1">MM</label>
    </span>
    <span>
    <input id="element_16_2" name="element_16_2" class="element text" size="2" maxlength="2" value="Day" type="text"> /
    <label for="element_16_2">DD</label>
    </span>
    <span>
    <input id="element_16_3" name="element_16_3" class="element text" size="4" maxlength="4" value="Year" type="text">
    <label for="element_16_3">YYYY</label>
    </span>
    <span id="calendar_16">
    <img id="cal_img_16" class="datepicker" src="form/calendar.gif" alt="Pick a date.">
    </span>
    <script type="text/javascript">
    Calendar.setup({
    inputField      : "element_16_3",
    baseField : "element_16",
    displayArea : "calendar_16",
    button      : "cal_img_16",
    ifFormat      : "%B %e, %Y",
    onSelect      : selectDate
    </script>
    </li>      <li id="li_22" >
    <label class="description" for="hours">Rental Hours </label>
    <span>
    <input id="element_22_1" name="hours" class="element checkbox" type="checkbox" value="Half Day - 8am - 12pm" />
    <label class="choice" for="element_22_1">Half Day - 8am - 12pm</label>
    <input id="element_22_2" name="hours" class="element checkbox" type="checkbox" value="Half Day - 1pm - 4pm" />
    <label class="choice" for="element_22_2">Half Day - 1pm - 4pm</label>
    <input id="element_22_3" name="hours" class="element checkbox" type="checkbox" value="Full Day - 8am - 4pm" />
    <label class="choice" for="element_22_3">Full Day - 8am - 4pm</label>
    <input id="element_22_4" name="hours" class="element checkbox" type="checkbox" value="Evening after 4pm" />
    <label class="choice" for="element_22_4">Evening after 4pm</label>
    <input id="element_22_5" name="hours" class="element checkbox" type="checkbox" value="Weekend" />
    <label class="choice" for="element_22_5">Weekend</label>
    </span>
    </li>      <li id="li_2" >
    <label class="description" for="attendees">Number of Attendees </label>
    <div>
    <input id="element_2" name="attendees" class="element text medium" type="text" maxlength="255" value=""/>
    </div>
    </li>      <li id="li_17" >
    <label class="description" for="theme">Theme of workshop </label>
    <div>
    <select class="element select medium" id="element_17" name="theme">
    <option value=""></option>
    <option value="1" selected="selected" >(Select one)</option>
    <option value="Lecture" >Lecture</option>
    <option value="Lab" >Lab</option>
    <option value="Both" >Both</option>
    </select>
    </div>
    </li>      <li id="li_3" >
    <label class="description" for="surgeon">Contact Name </label>
    <div>
    <input id="element_3" name="surgeon" class="element text medium" type="text" maxlength="255" value=""/>
    </div>
    </li>      <li id="li_4" >
    <label class="description" for="surgeon_contact">Contact Info </label>
    <div>
    <input id="element_4" name="surgeon_contact" class="element text medium" type="text" maxlength="255" value=""/>
    </div>
    </li>      <li id="li_5" >
    <label class="description" for="lab_procedures">Please list proposed lab procedures </label>
    <div>
    <textarea id="element_5" name="lab_procedures" class="element textarea medium"></textarea>
    </div>
    </li>      <li id="li_6" >
    <label class="description" for="specimens">Specimens (Please list if needed) </label>
    <div>
    <textarea id="element_6" name="specimens" class="element textarea medium"></textarea>
    </div>
    </li>      <li id="li_7" >
    <label class="description" for="instruments">Instrumentation </label>
    <div>
    <textarea id="element_7" name="instruments" class="element textarea medium"></textarea>
    </div>
    </li>      <li id="li_18" >
    <label class="description" for="carm">C-Arm </label>
    <div>
    <select class="element select medium" id="element_18" name="carm">
    <option value=""></option>
    <option value="1" selected="selected" >(Select one)</option>
    <option value="Yes" >Yes</option>
    <option value="No" >No</option>
    </select>
    </div>
    </li>      <li id="li_19" >
    <label class="description" for="conference_room">Conference Room </label>
    <div>
    <select class="element select medium" id="element_19" name="conference_room">
    <option value=""></option>
    <option value="1" selected="selected" >(Select one)</option>
    <option value="Yes" >Yes</option>
    <option value="No" >No</option>
    </select>
    </div>
    </li>      <li class="section_break">
    <label class="description" for="conference_room">A/V Needs </label>
    </li>      <div>
    <textarea name="avneeds" id="avneeds" cols="45" rows="5"></textarea>
    </div>
    </div>
    </li>      <li id="li_9" >
    <label class="description" for="food">Food & Beverage (if applicable) </label>
    <div>
    <textarea id="element_9" name="food" class="element textarea medium"></textarea>
    </div>
    </li>      <li id="li_14" >
    <label class="description" for="billing">Billing Address </label>
    <div>
    <input id="element_14_1" name="billing" class="element text large" value="" type="text">
    <label for="element_14_1">Street Address</label>
    </div>
    <div>
    <input id="element_14_2" name="billing1" class="element text large" value="" type="text">
    <label for="element_14_2">Address Line 2</label>
    </div>
    <div class="left">
    <input id="element_14_3" name="billing2" class="element text medium" value="" type="text">
    <label for="element_14_3">City</label>
    </div>
    <div class="right">
    <input id="element_14_4" name="billing3" class="element text medium" value="" type="text">
    <label for="element_14_4">State / Province / Region</label>
    </div>
    <div class="left">
    <input id="element_14_5" name="billing4" class="element text medium" maxlength="15" value="" type="text">
    <label for="element_14_5">Postal / Zip Code</label>
    </div>
    <div class="right">
    <select class="element select medium" id="element_14_6" name="billing5">
    <option value="" selected="selected"></option>
    <option value="Afghanistan" >Afghanistan</option>
    <option value="Albania" >Albania</option>
    <option value="Algeria" >Algeria</option>
    <option value="Andorra" >Andorra</option>
    <option value="Antigua and Barbuda" >Antigua and Barbuda</option>
    <option value="Argentina" >Argentina</option>
    <option value="Armenia" >Armenia</option>
    <option value="Australia" >Australia</option>
    <option value="Austria" >Austria</option>
    <option value="Azerbaijan" >Azerbaijan</option>
    <option value="Bahamas" >Bahamas</option>
    <option value="Bahrain" >Bahrain</option>
    <option value="Bangladesh" >Bangladesh</option>
    <option value="Barbados" >Barbados</option>
    <option value="Belarus" >Belarus</option>
    <option value="Belgium" >Belgium</option>
    <option value="Belize" >Belize</option>
    <option value="Benin" >Benin</option>
    <option value="Bhutan" >Bhutan</option>
    <option value="Bolivia" >Bolivia</option>
    <option value="Bosnia and Herzegovina" >Bosnia and Herzegovina</option>
    <option value="Botswana" >Botswana</option>
    <option value="Brazil" >Brazil</option>
    <option value="Brunei" >Brunei</option>
    <option value="Bulgaria" >Bulgaria</option>
    <option value="Burkina Faso" >Burkina Faso</option>
    <option value="Burundi" >Burundi</option>
    <option value="Cambodia" >Cambodia</option>
    <option value="Cameroon" >Cameroon</option>
    <option value="Canada" >Canada</option>
    <option value="Cape Verde" >Cape Verde</option>
    <option value="Central African Republic" >Central African Republic</option>
    <option value="Chad" >Chad</option>
    <option value="Chile" >Chile</option>
    <option value="China" >China</option>
    <option value="Colombia" >Colombia</option>
    <option value="Comoros" >Comoros</option>
    <option value="Congo" >Congo</option>
    <option value="Costa Rica" >Costa Rica</option>
    <option value="Côte d'Ivoire" >Côte d'Ivoire</option>
    <option value="Croatia" >Croatia</option>
    <option value="Cuba" >Cuba</option>
    <option value="Cyprus" >Cyprus</option>
    <option value="Czech Republic" >Czech Republic</option>
    <option value="Denmark" >Denmark</option>
    <option value="Djibouti" >Djibouti</option>
    <option value="Dominica" >Dominica</option>
    <option value="Dominican Republic" >Dominican Republic</option>
    <option value="East Timor" >East Timor</option>
    <option value="Ecuador" >Ecuador</option>
    <option value="Egypt" >Egypt</option>
    <option value="El Salvador" >El Salvador</option>
    <option value="Equatorial Guinea" >Equatorial Guinea</option>
    <option value="Eritrea" >Eritrea</option>
    <option value="Estonia" >Estonia</option>
    <option value="Ethiopia" >Ethiopia</option>
    <option value="Fiji" >Fiji</option>
    <option value="Finland" >Finland</option>
    <option value="France" >France</option>
    <option value="Gabon" >Gabon</option>
    <option value="Gambia" >Gambia</option>
    <option value="Georgia" >Georgia</option>
    <option value="Germany" >Germany</option>
    <option value="Ghana" >Ghana</option>
    <option value="Greece" >Greece</option>
    <option value="Grenada" >Grenada</option>
    <option value="Guatemala" >Guatemala</option>
    <option value="Guinea" >Guinea</option>
    <option value="Guinea-Bissau" >Guinea-Bissau</option>
    <option value="Guyana" >Guyana</option>
    <option value="Haiti" >Haiti</option>
    <option value="Honduras" >Honduras</option>
    <option value="Hong Kong" >Hong Kong</option>
    <option value="Hungary" >Hungary</option>
    <option value="Iceland" >Iceland</option>
    <option value="India" >India</option>
    <option value="Indonesia" >Indonesia</option>
    <option value="Iran" >Iran</option>
    <option value="Iraq" >Iraq</option>
    <option value="Ireland" >Ireland</option>
    <option value="Israel" >Israel</option>
    <option value="Italy" >Italy</option>
    <option value="Jamaica" >Jamaica</option>
    <option value="Japan" >Japan</option>
    <option value="Jordan" >Jordan</option>
    <option value="Kazakhstan" >Kazakhstan</option>
    <option value="Kenya" >Kenya</option>
    <option value="Kiribati" >Kiribati</option>
    <option value="North Korea" >North Korea</option>
    <option value="South Korea" >South Korea</option>
    <option value="Kuwait" >Kuwait</option>
    <option value="Kyrgyzstan" >Kyrgyzstan</option>
    <option value="Laos" >Laos</option>
    <option value="Latvia" >Latvia</option>
    <option value="Lebanon" >Lebanon</option>
    <option value="Lesotho" >Lesotho</option>
    <option value="Liberia" >Liberia</option>
    <option value="Libya" >Libya</option>
    <option value="Liechtenstein" >Liechtenstein</option>
    <option value="Lithuania" >Lithuania</option>
    <option value="Luxembourg" >Luxembourg</option>
    <option value="Macedonia" >Macedonia</option>
    <option value="Madagascar" >Madagascar</option>
    <option value="Malawi" >Malawi</option>
    <option value="Malaysia" >Malaysia</option>
    <option value="Maldives" >Maldives</option>
    <option value="Mali" >Mali</option>
    <option value="Malta" >Malta</option>
    <option value="Marshall Islands" >Marshall Islands</option>
    <option value="Mauritania" >Mauritania</option>
    <option value="Mauritius" >Mauritius</option>
    <option value="Mexico" >Mexico</option>
    <option value="Micronesia" >Micronesia</option>
    <option value="Moldova" >Moldova</option>
    <option value="Monaco" >Monaco</option>
    <option value="Mongolia" >Mongolia</option>
    <option value="Montenegro" >Montenegro</option>
    <option value="Morocco" >Morocco</option>
    <option value="Mozambique" >Mozambique</option>
    <option value="Myanmar" >Myanmar</option>
    <option value="Namibia" >Namibia</option>
    <option value="Nauru" >Nauru</option>
    <option value="Nepal" >Nepal</option>
    <option value="Netherlands" >Netherlands</option>
    <option value="New Zealand" >New Zealand</option>
    <option value="Nicaragua" >Nicaragua</option>
    <option value="Niger" >Niger</option>
    <option value="Nigeria" >Nigeria</option>
    <option value="Norway" >Norway</option>
    <option value="Oman" >Oman</option>
    <option value="Pakistan" >Pakistan</option>
    <option value="Palau" >Palau</option>
    <option value="Panama" >Panama</option>
    <option value="Papua New Guinea" >Papua New Guinea</option>
    <option value="Paraguay" >Paraguay</option>
    <option value="Peru" >Peru</option>
    <option value="Philippines" >Philippines</option>
    <option value="Poland" >Poland</option>
    <option value="Portugal" >Portugal</option>
    <option value="Puerto Rico" >Puerto Rico</option>
    <option value="Qatar" >Qatar</option>
    <option value="Romania" >Romania</option>
    <option value="Russia" >Russia</option>
    <option value="Rwanda" >Rwanda</option>
    <option value="Saint Kitts and Nevis" >Saint Kitts and Nevis</option>
    <option value="Saint Lucia" >Saint Lucia</option>
    <option value="Saint Vincent and the Grenadines" >Saint Vincent and the Grenadines</option>
    <option value="Samoa" >Samoa</option>
    <option value="San Marino" >San Marino</option>
    <option value="Sao Tome and Principe" >Sao Tome and Principe</option>
    <option value="Saudi Arabia" >Saudi Arabia</option>
    <option value="Senegal" >Senegal</option>
    <option value="Serbia and Montenegro" >Serbia and Montenegro</option>
    <option value="Seychelles" >Seychelles</option>
    <option value="Sierra Leone" >Sierra Leone</option>
    <option value="Singapore" >Singapore</option>
    <option value="Slovakia" >Slovakia</option>
    <option value="Slovenia" >Slovenia</option>
    <option value="Solomon Islands" >Solomon Islands</option>
    <option value="Somalia" >Somalia</option>
    <option value="South Africa" >South Africa</option>
    <option value="Spain" >Spain</option>
    <option value="Sri Lanka" >Sri Lanka</option>
    <option value="Sudan" >Sudan</option>
    <option value="Suriname" >Suriname</option>
    <option value="Swaziland" >Swaziland</option>
    <option value="Sweden" >Sweden</option>
    <option value="Switzerland" >Switzerland</option>
    <option value="Syria" >Syria</option>
    <option value="Taiwan" >Taiwan</option>
    <option value="Tajikistan" >Tajikistan</option>
    <option value="Tanzania" >Tanzania</option>
    <option value="Thailand" >Thailand</option>
    <option value="Togo" >Togo</option>
    <option value="Tonga" >Tonga</option>
    <option value="Trinidad and Tobago" >Trinidad and Tobago</option>
    <option value="Tunisia" >Tunisia</option>
    <option value="Turkey" >Turkey</option>
    <option value="Turkmenistan" >Turkmenistan</option>
    <option value="Tuvalu" >Tuvalu</option>
    <option value="Uganda" >Uganda</option>
    <option value="Ukraine" >Ukraine</option>
    <option value="United Arab Emirates" >United Arab Emirates</option>
    <option value="United Kingdom" >United Kingdom</option>
    <option value="United States" >United States</option>
    <option value="Uruguay" >Uruguay</option>
    <option value="Uzbekistan" >Uzbekistan</option>
    <option value="Vanuatu" >Vanuatu</option>
    <option value="Vatican City" >Vatican City</option>
    <option value="Venezuela" >Venezuela</option>
    <option value="Vietnam" >Vietnam</option>
    <option value="Yemen" >Yemen</option>
    <option value="Zambia" >Zambia</option>
    <option value="Zimbabwe" >Zimbabwe</option>
    </select>
    <label for="billing5">Country</label>
    </div>
    </li>      <li id="li_11" >
    <label class="description" for="email">Email Address </label>
    <div>
    <input id="element_11" name="email" class="element text medium" type="text" maxlength="255" value=""/>
    </div>
    </li>      <li id="li_12" >
    <label class="description" for="phone">Phone Number </label>
    <span>
    <input id="element_12_1" name="phone" class="element text" size="3" maxlength="3" value="" type="text"> -
    <label for="element_12_1">(###)</label>
    </span>
    <span>
    <input id="element_12_2" name="phone1" class="element text" size="3" maxlength="3" value="" type="text"> -
    <label for="element_12_2">###</label>
    </span>
    <span>
    <input id="element_12_3" name="phone2" class="element text" size="4" maxlength="4" value="" type="text">
    <label for="element_12_3">####</label>
    </span>
    </li>      <li id="li_13" >
    <label class="description" for="fax">Fax Number </label>
    <span>
    <input id="element_13_1" name="fax" class="element text" size="3" maxlength="3" value="" type="text"> -
    <label for="element_13_1">(###)</label>
    </span>
    <span>
    <input id="element_13_2" name="fax1" class="element text" size="3" maxlength="3" value="" type="text"> -
    <label for="element_13_2">###</label>
    </span>
    <span>
    <input id="element_13_3" name="fax2" class="element text" size="4" maxlength="4" value="" type="text">
    <label for="element_13_3">####</label>
    </span>
    </li>      <li id="li_10" >
    <label class="description" for="confirm">Best way to confirm bookings </label>
    <div>
    <input id="element_10" name="confirm" class="element text medium" type="text" maxlength="255" value=""/>
    </div>
    </li>
    <li class="buttons">
    <input type="hidden" name="form_id" value="280313" />
    <input id="saveForm" class="button_text" type="submit" name="submit" value="Submit" />
    </li>
    </ul>
    </form>
    PHP CODE
    <?
    $sendTo = "[email protected]";
    $subject = "We would like to book an event at Fusion Solutions";
    $thankyou = "thanks.html";
    $headers = "From: " . $_POST["name"];
    $headers .= "<" . $_POST["email"] . ">\r\n";
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $headers .= "Return-Path: " . $_POST["email"];
    $message = "Booked By: " .$_POST["booked_by"] . "\r\n";
    $message .= "Month: " .$_POST["element_16_1"] . "\r\n";
    $message .= "Day: " .$_POST["element_16_2"] . "\r\n";
    $message .= "Year: " .$_POST["element_16_3"] . "\r\n";
    $message .= "Rental Hours: " .$_POST["hours"] . "\r\n";
    $message .= "Number of Attendees: " .$_POST["attendees"] . "\r\n";
    $message .= "Theme of workshop: " .$_POST["theme"] . "\r\n";
    $message .= "Contact name: " .$_POST["surgeon"] . "\r\n";
    $message .= "Contact Info: " .$_POST["surgeon_contact"] . "\r\n";
    $message .= "Lab Procedures: " .$_POST["lab_procedures"] . "\r\n";
    $message .= "Specimens: " .$_POST["specimens"] . "\r\n";
    $message .= "Instrumentation: " .$_POST["instruments"] . "\r\n";
    $message .= "C-Arm: " .$_POST["carm"] . "\r\n";
    $message .= "Conference room: " .$_POST["conference_room"] . "\r\n";
    $message .= "A/V Needs: " .$_POST["avneeds"] . "\r\n";
    $message .= "Food & Beverage: " .$_POST["food"] . "\r\n";
    $message .= "Address: " .$_POST["billing"] . "\r\n";
    $message .= "Address2: " .$_POST["billing1"] . "\r\n";
    $message .= "City: " .$_POST["billing2"] . "\r\n";
    $message .= "State: " .$_POST["billing3"] . "\r\n";
    $message .= "Zip: " .$_POST["billing4"] . "\r\n";
    $message .= "Country: " .$_POST["billing5"] . "\r\n";
    $message .= "Email: " .$_POST["email"] . "\r\n";
    $message .= "Phone: " .$_POST["phone"] . "\r\n";
    $message .= "Phone: " .$_POST["phone1"] . "\r\n";
    $message .= "Phone: " .$_POST["phone2"] . "\r\n";
    $message .= "Fax: " .$_POST["fax"] . "\r\n";
    $message .= "Fax: " .$_POST["fax1"] . "\r\n";
    $message .= "Fax: " .$_POST["fax2"] . "\r\n";
    $message .= "Best way to confirm: " .$_POST["confirm"];
    mail($sendTo, $subject, $message, $headers) or die ("Failure");
    header("Location: $thankyou");
    ?>

    You could send it from the database (depending on what version you are running against), check out the UTL_SMTP package. Or look for some package written on top of it since it's no joy to use if you aren't familiar with the low level stuff. Not sure if it handles attachments, something written against the JavaMail API is probably more flexible for that

  • Adding input type to my mail page and PHP attached to it question

    I need to add a few more input boxes in my form but every time I do it, I still only get what's on the code under this what I'm writing now.
    This is the code in my mail page itself:
            <form action="mail.php" method="POST">
              <p><b>Name</b><br>
                <input type="text" name="subject" size=40>
              <p><b>Please fill out your email/address/phone number</b><br>
                  <textarea cols=40 rows=10 name="message"></textarea>
              <p><input type="submit" value=" Send ">
            </form>
    This is the code in my php page it's attached to.
    <html>
    <head><title>Support a Hero</title></head>
    <body>
    <?php
    $email = '[email protected]';
    $subject = $HTTP_POST_VARS['subject'];
    $message = $HTTP_POST_VARS['message'];
    if (!preg_match("/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/", $email)) {
      echo "<h4>Invalid email address</h4>";
      echo "<a href='javascript:history.back(1);'>Back</a>";
    } elseif ($subject == "") {
      echo "<h4>No subject</h4>";
      echo "<a href='javascript:history.back(1);'>Back</a>";
    elseif (mail($email,$subject,$message)) {
      echo "<h4>Thank you for sending email</h4>";
    } else {
      echo "<h4>Can't send email to $email</h4>";
    ?>
    </body>
    </html>

    anybody know?  I can't seem to add extra post_vars to communicate with my PHP script.  What am I doing wrong?  It looks like it should work.  I get the email to my email but I'm only getting the name in my email subject and then the message.  The other boxes that are filled out don't come to my email.  I would like to see where the email comes besides "secure server".  Is that possible?  Here's the script. 
    This is in my HTML:
    <body>
            <form action="mail.php" method="POST">
              <p><b>Name</b><br>
                <input type="text" name="subject" size=40>
                <p><b>Name</b><br>
                <input type="text" name="name" size=40>
                <p><b>Name</b><br>
                <input type="text" name="email" size=40>
                <p><b>Name</b><br>
                <input type="text" name="phone" size=40>
    <p><b>Please fill out your email/address/phone number</b><br>
                  <textarea cols=40 rows=10 name="message"></textarea>
              <p><input type="submit" value=" Send ">
        </form></td>
      </tr>
    </table>
    Here is my PHP that it's attached to. 
    <html>
    <head><title>Support a Hero</title></head>
    <body>
    <?php
    $email = '[email protected]';
    $name = $HTTP_POST_VARS['name'];
    $your email = $HTTP_POST_VARS['email'];
    $phone = $HTTP_POST_VARS['phone'];
    $message = $HTTP_POST_VARS['message'];
    if (!preg_match("/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/", $email)) {
      echo "<h4>Invalid email address</h4>";
      echo "<a href='javascript:history.back(1);'>Back</a>";
    } elseif ($subject == "") {
      echo "<h4>No subject</h4>";
      echo "<a href='javascript:history.back(1);'>Back</a>";
    elseif (mail($email,$subject,$message)) {
      echo "<h4>Thank you for sending email</h4>";
    } else {
      echo "<h4>Can't send email to $email</h4>";
    ?>
    </body>
    </html>

  • Specified url text input type of form in DW CS5

    If I wanted to dilspay a text input type form on the site's last page, Will the url link function during my table data display? I'm assuming it will be hoverable and active as a link if the text input type form used to submit the link to the database is set up properly? The text input type form creates a record that is automatically saved on a database that I can then use to check for display errors. What other type of url links work with text input type forms in DW.

    If I wanted to dilspay a text input type form on the site's last page, Will the url link function during my table data display?
    I don't understand what you are asking.  Can you say more about this url link function, and the text input type form?

  • Using a form with two input type="submit" ... buttons...

    Hello All!
    I'm using a form to add and remove parameters for a service definition.
    <form action="serviceinput.jsp" method="post">
                   <table>
                        <tr>
                             <td><b>Level</b></td>
                             <td><b>Fieldname</b></td>
                             <td><b>Stucturename</b></td>
                             <td><b>Type</b></td>
                             <td><b>Format</b></td>
                             <td><b>Optional</b></td>
                             <td><b>Semantics</b></td>
                        </tr>          
         <%
                        for (Iterator iterParameters = parameters.iterator(); iterParameters.hasNext();)
              Parameter parameter = (Parameter) iterParameters.next();
         %>
                        <tr>
              <td><%= parameter.getLevel() %></td>
              <td><%= parameter.getFieldname() %></td>
              <td><%= parameter.getStructurename() %></td>
              <td><%= parameter.getType() %></td>
              <td><%= parameter.getFormat() %></td>
              <td><%= parameter.getOptional() %></td>
              <td><%= parameter.getSemantics() %></td>
                        </tr>     
         <%
         %>
                   </table>
                   <input type="submit" name="<%= parameters.addParameter() %>" value="add"/>
                   <input type="submit" name="<%= parameters.removeParameter() %>" value="remove"/>
              </form>
    The special thing about is, that I'm using two <input type="submit"...> buttons.
    The idea is, that I'd like to add one more row with attributes by clicking the "add" button and removing one row by clicking the "remove" button.
    If I use just one of them, it works fine. If I use both of them, nothing happens at all.
    Isn't it allowed to use two <input type="submit"...> fields?
    Is there an alternative? How can I implement my form the correct way?
    Thanks a lot in advance to all!
    Regards,
    Tomi

    Hi,
    Hai Tomi ,
    As swati already Explained U can try it with buttons,
    But u have to make a Hidden field and set the value of the hidden field
    with the Javascript code after pressing the button , Call a client side function which has an argument as given below
    Validate the Flag field in the JSP file
    <script language=javascript>
    function Validate(s)
    if(s==1)
         document.forms['ServiceInput'].elements["flag"].value="add";
    else
         document.forms['ServiceInput'].elements["flag"].value="Remove";
    document.forms['ServiceInput'].submit();
    alert("hai");
    </script>
    <form name="ServiceInput" action="serviceinput.jsp" method="POst">
    <table>
    <tr>
    <td><b>Level</b></td>
    <td><b>Fieldname</b></td>
    <td><b>Stucturename</b></td>
    <td><b>Type</b></td>
    <td><b>Format</b></td>
    <td><b>Optional</b></td>
    <td><b>Semantics</b></td>
    </tr>
    <%
    for (Iterator iterParameters = parameters.iterator(); iterParameters.hasNext();)
    Parameter parameter = (Parameter) iterParameters.next();
    %>
    <tr>
    <td><%= parameter.getLevel() %></td>
    <td><%= parameter.getFieldname() %></td>
    <td><%= parameter.getStructurename() %></td>
    <td><%= parameter.getType() %></td>
    <td><%= parameter.getFormat() %></td>
    <td><%= parameter.getOptional() %></td>
    <td><%= parameter.getSemantics() %></td>
    </tr>
    <%
    %>
    </table>
    <input type=hidden name=flag value="bb">
    <input type="Button" name="b1" value="add" onclick= "Validate(1)">
    <input type="Button" name="b2" value="remove" onclick= "Validate(2)">
    </form>

  • Unable to submit form wen convrting input type="submit" to a onclick=""

    Hi
    I have used following code successfully to submit my form in JSP
    <form action="email.do" name="emailForm" onsubmit="return (checkscript())">
    <input type="submit" name="actionSend" class="GRPButtonRed" value="Send">
    </form>
    Now I have subtituted above code with :
    <form action="email.do" name="emailForm" >
    Submit
    </form>
    The screen is just getting refreshed
    Edited by: money321 on Dec 16, 2008 11:14 AM
    Edited by: money321 on Dec 16, 2008 11:15 AM

    It is just because of the CSS which i hav to use which supports <a> tag for creating a button.
    But I am wondering y is screen just getting refreshed after clicking on this button which i hav created using
    <a href = "#" onclick="">

  • Need help with PHP form with checkboxes, radio buttons and file attachment

    Hi guys,
    I'm having a nightmare with this PHP form where a user can fill it in, attach a doc/pdf and submit. After trying to sort it out with previous code I've used, I've stripped it out and think I should just start again in the hope you geniuses can help!
    Here is the HTML of contact.php:
    <form action="" method="post" name="contact" id="contact">
        <p>Job Title:*<br />
        <input name="position" type="text" /></p>
        <p>Nationality:*<br />
        <select name="nationality">
          <option value="">-- select one --</option>
          <option value="Afghan">Afghan</option>
          <option value="Albanian">Albanian</option>
          <option value="Algerian">Algerian</option>
          <option value="Zambian">Zambian</option>
          <option value="Zimbabwean">Zimbabwean</option>
        </select>
        </p>
        <p>Which country are you currently living in?*<br />
        <select name="country">
        <option value="">-- select one --</option>
        <option value="United Kingdom">United Kingdom</option>
        <option value="Afghanistan">Afghanistan</option>
        <option value="Africa">Africa</option>
        <option value="Zambia">Zambia</option>
        <option value="Zimbabwe">Zimbabwe</option>
        </select>
        </p>
        <label class="radio" for="checkRight">Yes/No question?</label><br />
        <input class="radio" type="radio" name="right" value="Yes" /> Yes
        <input class="radio" type="radio" name="right" value="No" /> No
        <input class="radio" type="radio" name="right" value="N/A" /> Not applicable
        <p>Yes/No question?<br />
        <select name="continue">
        <option value="">-- select one --</option>
        <option value="Yes">Yes</option>
        <option value="No">No</option>
        </select>
        </p>
        <p>Select your resorts:<br />
        Resort 1<input name="res1" type="checkbox" value="Resort 1" />
        Resort 2<input name="res2" type="checkbox" value="Resort 2" />
        Resort 3<input name="res3" type="checkbox" value="Resort 3" />
        Resort 4<input name="res4" type="checkbox" value="Resort 4" />
        Resort 5<input name="res5" type="checkbox" value="Resort 5" />
        Resort 6<input name="res6" type="checkbox" value="Resort 6" />   
        </p>
        <p>Don't send form unless this is checked:* <input type="checkbox" name="parttime" value="Yes" /></p>
        <p>Date of arrival: <input name="arrive" id="datepick" /><br />
        Date of departure: <input name="depart" id="datepick2" /></p>
        <script type="text/javascript" src="assets/scripts/datepickr/datepickr.js"></script>
        <link href="assets/scripts/datepickr/datepickr.css" rel="stylesheet">
        <script type="text/javascript">
        new datepickr('datepick');
        new datepickr('datepick2', {
        </script>
        <p>Name:*<br />
        <input name="name" type="text" /></p>
        <p>E-mail:*<br />
        <input name="email" type="text" /></p>
        <p>Telephone:*<br />
        <input name="telephone" type="text" class="ctextField" /></p>
        <p>Upload CV (Word of PDF formats only):<br />
        <input type="file" name="cv" class="textfield"></p>
        <p><input name="submit" value="Submit Enquiry" class="submitButton" type="submit" /><div style="visibility:hidden; width:1px; height:1px"><input name="url" type="text" size="45" id="url" /></div></p>
    </form>
    By the way, the date boxes work so excuse the Javascript in there!
    To prevent SPAM I've used a trick where there's a hidden URL field which must be left blank for the form to submit which you can see in the PHP.
    Below is where I'm at with the PHP which is placed above the header of contact.php...
    <?php
    if (array_key_exists('submit', $_POST)) {
        $position = $_POST['position'];
        $arrive = $_POST['arrive'];
        $nationality = $_POST['nationality'];
        $parttime = $_POST['parttime'];
        $depart = $_POST['depart'];
        $name = $_POST['name'];
        $email = $_POST['email'];
        $telephone = $_POST['telephone'];
    $to = "[email protected]";
    $subject = "Recruitment Application";
    $message = $headers;
    $message .= "Name: " . $_POST["name"] . "\r\n";
    $message .= "E-mail: " . $_POST["email"] . "\r\n";
    $headers  = "MIME-Version: 1.0\r\n";
    $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $headers .= 'From: My Website <[email protected]>' . "\r\n";
    $message= "
    $url = stripslashes($_POST["url"]);
    if (!empty($url)) {
    header( 'Location: http://www.go-away-spam-robots.com' );
    exit();
    if (!isset($warning)) {
    mail($to, $subject, $message, $headers);
    header( 'Location: http://www.mywebsite.co.uk/sent.php' );
    ?>
    I would like to make pretty much all the field compulsory so if a field is left empty (other than the hidden URL field), a warning message is displayed next to that field.
    Also I would like the file upload field to attach to the email that is sent to me and have the results come through to me in a table format.
    Can anyone help me get my form working?
    Thank you and I hope to hear from you!
    SM

    Hi Nancy,
    Great stuff, thank you for the reply.
    I've managed to get the Formm@iler working and running as I need it to.
    The only thing I'm struggling with is when the user clicks submit, they are taken to a page of whatever results the form returned but it is just a white background with Times New Roman text.
    How can I have it so the user is taken to the form results in the websites' page layout?
    I tried sending them to a generic 'thank you' page by adding the following code but it just took them there whatever the results of the form so that's no good...! I have a feeling it's a bit more complicated than that...
    header( 'Location: http://www.nofussbus.co.uk/test/sent.php' );
    Thank you for your help!

  • Why is my php form not sending to my e-mail?

    Here i have the code for my .php document and the code for my html. Why is the form not sending to my e-mail ([email protected])? At one point I had the form sending to my e-mail, but the information that was filled out was not appearing. Now no email is being sent at all. I tried a contact-us.php page with the php email code in the same document and now have the information in seperate documents, but I am getting the same results every which way. I need help I have been checking this over for hours and looking up solutions online but it all is very confusing. PLEASE HELP!
    send.php
    <?php
    if ($_POST['parse_var'] == "contactForm") {
              $emailTitle = 'Scheduele In Home Consultation or General Question';
              $yourEmail = '[email protected]';
              $firstName = $_POST['FirstName'];
              $lastName = $_POST['LastName'];
              $phoneNumber = $_POST['PhoneNumber'];
              $emailAddress = $_POST['EmailAddress'];
              $Message = $_POST['Message'];
              $body = <<<EOD
    <br><hr><br>
              First Name: $firstName <br />
              Last Name: $lastName <br />
              Phone Number: $phoneNumber <br />
              Email Address: $emailAddress <br />
              Message: $Message <br />
    EOD;
              $headers = "From: $emailAddress\r\n";
              $headers .= "Content-type: text/html\r\n";
              $success = mail("$yourEmail", "$emailTitle", "$body", "$headers");
              $sent = "Thank you! Your message has been sent.";
    ?>
    contact-us.html
          <form action="send.php" method="post" name="contactForm" id="contactForm">
            <table width="75%" align="left" cellpadding="5" id="contactustable">
              <tr>
                <td><label for="FirstName"></label>
                  <span id="sprytextfield1">
                  First Name<br>
                  <br>
                  <input type="text" name="FirstName" id="FirstName" value="<?php print "$firstName"; ?>">
                <span class="textfieldRequiredMsg">Please enter your first name.</span></span></td>
              </tr>
              <tr>
                <td> </td>
              </tr>
              <tr>
                <td><label for="LastName"></label>
                  <span id="sprytextfield2">
                  Last Name<br>
                  <br>
                  <input type="text" name="LastName" id="LastName" value="<?php print "$lastName"; ?>">
                <span class="textfieldRequiredMsg">Please enter your last name.</span></span></td>
              </tr>
              <tr>
                <td> </td>
              </tr>
              <tr>
                <td><label for="PhoneNumber"></label>
                  <span id="sprytextfield3">
                  Phone Number<br>
                  <br>
                  <input type="text" name="PhoneNumber" id="PhoneNumber" value="<?php print "$phoneNumber"; ?>">
    <span class="textfieldInvalidFormatMsg">Please enter your phone number.</span></span></td>
              </tr>
              <tr>
                <td> </td>
              </tr>
              <tr>
                <td><label for="EmailAddress"></label>
                  <span id="sprytextfield4">E-mail Address<br>
                  <br>
                  <input type="text" name="EmailAddress" id="EmailAddress" value="<?php print "$emailAddress"; ?>">
                <span class="textfieldRequiredMsg">Please enter your e-mail address.</span><span class="textfieldInvalidFormatMsg">Example: [email protected].</span></span></td>
              </tr>
              <tr>
                <td> </td>
              </tr>
              <tr>
                <td height="255"><label for="Message"></label>
                  <span id="sprytextarea1">
                  Message:<br>
                  <br>
                  <textarea name="Message" cols="85%" rows="12" id="Message"><?php print "$Message"; ?></textarea>
                <span class="textareaRequiredMsg">A value is required.</span></span></td>
              </tr>
              <tr>
                <td> </td>
              </tr>
              <tr>
                <td><input type="submit" name="Reset" id="Reset" value="Reset">
                  <input type="hidden" name="parse_var" id="parse_var">             
                <input type="submit" name="Submit" id="Submit" value="Send Message"></td>
              </tr>
              <tr>
                <td><?php print "$sent"; ?></td>
              </tr>
            </table>
          </form>

    tonyb1117 wrote:
    It works! Thank you very much for pointing that out "bregent" and "osgood_". I have one more small problem though, when signing out my contact form the phone number field does not accept any phone number?
                  <input type="text" name="PhoneNumber" id="PhoneNumber" value="<?php print "$phoneNumber"; ?>">
    <span class="textfieldInvalidFormatMsg">Please enter your phone number.</span></span></td>
    Any solutions?
    I don't know anything about Spry validation of form fields but I think it requires you to set the type of validation, i.e., text, email, number.
    Have you looked in that direction.
    I presume what youre saying is when you hit send you get a red message saying phone number is not valid or something along those lines?

  • SQL ERROR on Form Input

    I used the wizard in Dreamweaver CS4 Developer Toolbox to have a form to upload an image and some data to a MySql dbase.
    Here is the error I got:
    Error:Internal error.
    Developer Details:tNG_fields.getFakeRecordset:
    SQL error: Error creating temporary table:
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
    SQL:
    CREATE TEMPORARY TABLE KT_fakeRS_20100330 (fld_name TEXT, fld_location TEXT, fld_test TEXT, fld_image TEXT, key TEXT) (FIELDS_FAKE_RS_ERROR)
    tNG Execution Trace - VIEW
    tNG_insert.executeTransactionSTARTER.Trigger_Default_Starter
    tNG_insert.getRecordset
    tNG_insert.getLocalRecordset
    tNG_insert.getFakeRecordset*
    And here is the code that generated the error, again, all from developer toolbox:
    <?php require_once('../../Connections/site.php'); ?>
    <?php
    // Load the common classes
    require_once('../../includes/common/KT_common.php');
    // Load the tNG classes
    require_once('../../includes/tng/tNG.inc.php');
    // Make a transaction dispatcher instance
    $tNGs = new tNG_dispatcher("../../");
    // Make unified connection variable
    $conn_site = new KT_connection($site, $database_site);
    // Start trigger
    $formValidation = new tNG_FormValidation();
    $formValidation->addField("fld_name", true, "text", "", "", "", "");
    $formValidation->addField("fld_location", true, "text", "", "", "", "");
    $formValidation->addField("fld_test", true, "text", "", "1", "256", "Please enter less than 256 Characters.");
    $tNGs->prepareValidation($formValidation);
    // End trigger
    // Make an insert transaction instance
    $ins_tbl_testimonials = new tNG_insert($conn_site);
    $tNGs->addTransaction($ins_tbl_testimonials);
    // Register triggers
    $ins_tbl_testimonials->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1");
    $ins_tbl_testimonials->registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, $formValidation);
    $ins_tbl_testimonials->registerTrigger("END", "Trigger_Default_Redirect", 99, "/admin/testimonial/testimonial-control.php");
    // Add columns
    $ins_tbl_testimonials->setTable("tbl_testimonials");
    $ins_tbl_testimonials->addColumn("fld_name", "STRING_TYPE", "POST", "fld_name");
    $ins_tbl_testimonials->addColumn("fld_location", "STRING_TYPE", "POST", "fld_location");
    $ins_tbl_testimonials->addColumn("fld_test", "STRING_TYPE", "POST", "fld_test");
    $ins_tbl_testimonials->addColumn("fld_image", "FILE_TYPE", "FILES", "fld_image");
    $ins_tbl_testimonials->setPrimaryKey("key", "NUMERIC_TYPE");
    // Execute all the registered transactions
    $tNGs->executeTransactions();
    // Get the transaction recordset
    $rstbl_testimonials = $tNGs->getRecordset("tbl_testimonials");
    $row_rstbl_testimonials = mysql_fetch_assoc($rstbl_testimonials);
    $totalRows_rstbl_testimonials = mysql_num_rows($rstbl_testimonials);
    ?>
    <html>
    <head>
    <link href="../../includes/skins/mxkollection3.css" rel="stylesheet" type="text/css" media="all" />
    <script src="../../includes/common/js/base.js" type="text/javascript"></script>
    <script src="../../includes/common/js/utility.js" type="text/javascript"></script>
    <script src="../../includes/skins/style.js" type="text/javascript"></script>
    <?php echo $tNGs->displayValidationRules();?>
    </head>
    <body>
    <?php
        echo $tNGs->getErrorMsg();
    ?>
    <form method="post" id="form1" action="<?php echo KT_escapeAttribute(KT_getFullUri()); ?>" enctype="multipart/form-data">
      <table cellpadding="2" cellspacing="0" class="KT_tngtable">
        <tr>
          <td class="KT_th"><label for="fld_name">Fld_name:</label></td>
          <td><input type="text" name="fld_name" id="fld_name" value="<?php echo KT_escapeAttribute($row_rstbl_testimonials['fld_name']); ?>" size="32" />
            <?php echo $tNGs->displayFieldHint("fld_name");?> <?php echo $tNGs->displayFieldError("tbl_testimonials", "fld_name"); ?></td>
        </tr>
        <tr>
          <td class="KT_th"><label for="fld_location">Fld_location:</label></td>
          <td><input type="text" name="fld_location" id="fld_location" value="<?php echo KT_escapeAttribute($row_rstbl_testimonials['fld_location']); ?>" size="32" />
            <?php echo $tNGs->displayFieldHint("fld_location");?> <?php echo $tNGs->displayFieldError("tbl_testimonials", "fld_location"); ?></td>
        </tr>
        <tr>
          <td class="KT_th"><label for="fld_test">Fld_test:</label></td>
          <td><textarea name="fld_test" id="fld_test" cols="50" rows="5"><?php echo KT_escapeAttribute($row_rstbl_testimonials['fld_test']); ?></textarea>
            <?php echo $tNGs->displayFieldHint("fld_test");?> <?php echo $tNGs->displayFieldError("tbl_testimonials", "fld_test"); ?></td>
        </tr>
        <tr>
          <td class="KT_th"><label for="fld_image">Fld_image:</label></td>
          <td><input type="file" name="fld_image" id="fld_image" size="32" />
            <?php echo $tNGs->displayFieldError("tbl_testimonials", "fld_image"); ?></td>
        </tr>
        <tr class="KT_buttons">
          <td colspan="2"><input type="submit" name="KT_Insert1" id="KT_Insert1" value="Insert record" /></td>
        </tr>
      </table>
    </form>
    <p> </p>
    </body>
    </html>
    What can be wrong? I understand its an SQL error, but not sure why ADDT caused an SQL Error or how to fix it myself.
    Any help would be greatly appreciated.
    Chris

    Problem solved.  While it is noted that on a DC you cannot run the database as a local service, it is not mentioned that it will not even install if loaded as ANY service.  If given a full admin user and password to use as it's operating condition,
    the install goes fine.  Then change to what is desired.  I am not impressed with the error reporting in this install, as even the event logs gave no indication as to the reason for this.  Most of the install of the database service went OK (In
    the event logs and the install logs.) and when doing the final config, the problem pops up, aborting everything else.  You MUST then wipe ALL traces of the first install or different weird failures appear no matter what credentials are used.
    Hi C Policki,
    Sorry for my delay.
    Glad to hear that you have solved this issue and thanks for sharing in the forum. Your time and efforts are highly appreciated.
    I noticed that you install the SQL Server 2012 in a Windows Server 2012 R2 Essentials. Would you please let me confirm whether that Windows Server 2012 R2 Essentials was a Windows Server 2012
    R2 Standard/Datacenter with Windows Server Essentials Experience role, then you deploy it in an Existing Active Directory Environment?
    Deploying
    Windows Server 2012 R2 Standard/Datacenter with Windows Server Essentials Experience role in an Existing Active Directory Environment
    If it is just a Windows Server 2012 R2 Essentials, it should be a DC.That
    will be not recommended to install SQL Server on a domain controller. There are specific security restrictions when running SQL Server in this configuration and given the resource demands of a domain controller, SQL Server performance may be degraded.
    You may encounter problems when installing SQL Server on a domain controller
    Best regards,
    Justin Gu
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • My  PHP  form no longer works?

    Hi
    http://www.collegestudentvoice.com/form/form.php
    1. Programmer says there is no coding errors.  Nothing has changed.
    2. Host says there must be coding errors.
    3. There may version incompetibilities with Perl script between the form and the host version.
    these are 3 files:
    Sendform:
    <?php
    // Pear library includes
    // You should have the pear lib installed
    include_once('Mail.php');
    include_once('Mail/mime.php');
    //Settings
    $max_allowed_file_size = 10000000; // size in KB
    $allowed_extensions = array("jpg", "jpeg", "gif", "bmp");
    $upload_folder = 'files/'; //<-- this folder must be writeable by the script
    $your_email = '[email protected]';//<<--  update this to your email address
    $errors ='';
    if(isset($_POST['submit']))
        //Get the uploaded file information
        $name_of_uploaded_file =  basename($_FILES['uploaded_file']['name']);
        //get the file extension of the file
        $type_of_uploaded_file = substr($name_of_uploaded_file,
                                strrpos($name_of_uploaded_file, '.') + 1);
        $size_of_uploaded_file = $_FILES["uploaded_file"]["size"]/1024;
        ///------------Do Validations-------------
        if(empty($_POST['name'])||empty($_POST['email']))
            $errors .= "\n Name and Email are required fields. ";   
        if(IsInjected($visitor_email))
            $errors .= "\n Bad email value!";
        if($size_of_uploaded_file > $max_allowed_file_size )
            $errors .= "\n Size of file should be less than $max_allowed_file_size";
        //------ Validate the file extension -----
        $allowed_ext = false;
        for($i=0; $i<sizeof($allowed_extensions); $i++)
            if(strcasecmp($allowed_extensions[$i],$type_of_uploaded_file) == 0)
                $allowed_ext = true;       
        if(!$allowed_ext)
            $errors .= "\n The uploaded file is not supported file type. ".
            " Only the following file types are supported: ".implode(',',$allowed_extensions);
        //send the email
        if(empty($errors))
            //copy the temp. uploaded file to uploads folder
            $path_of_uploaded_file = $upload_folder . $name_of_uploaded_file;
            $tmp_path = $_FILES["uploaded_file"]["tmp_name"];
            if(is_uploaded_file($tmp_path))
                if(!copy($tmp_path,$path_of_uploaded_file))
                    $errors .= '\n error while copying the uploaded file';
            //send the email
            $name = $_POST['name'];
            $visitor_email = $_POST['email'];
            $user_message = $_POST['message'];
            $to = $your_email;
            $subject="New form submission";
            $from = $your_email;
            $text = "A user  $name has sent you this message:\n $user_message";
            $message = new Mail_mime();
            $message->setTXTBody($text);
            $message->addAttachment($path_of_uploaded_file);
            $body = $message->get();
            $extraheaders = array("From"=>$from, "Subject"=>$subject,"Reply-To"=>$visitor_email);
            $headers = $message->headers($extraheaders);
            $mail = Mail::factory("mail");
            $mail->send($to, $headers, $body);
            //redirect to 'thank-you page
            header('Location: thank-you.html');
    ///////////////////////////Functions/////////////////
    // Function to validate against any email injection attempts
    function IsInjected($str)
      $injections = array('(\n+)',
                  '(\r+)',
                  '(\t+)',
                  '(%0A+)',
                  '(%0D+)',
                  '(%08+)',
                  '(%09+)'
      $inject = join('|', $injections);
      $inject = "/$inject/i";
      if(preg_match($inject,$str))
        return true;
      else
        return false;
    ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
        <title>File upload form</title>
    <!-- define some style elements-->
    <style>
    label,a, body
        font-family : Arial, Helvetica, sans-serif;
        font-size : 12px;
    </style>   
    <!-- a helper script for vaidating the form-->
    <script language="JavaScript" src="scripts/gen_validatorv31.js" type="text/javascript"></script>   
    </head>
    <body>
    <?php
    if(!empty($errors))
        echo nl2br($errors);
    ?>
    <form method="POST" name="email_form_with_php"
    action="<?php echo htmlentities($_SERVER['PHP_SELF']); ?>" enctype="multipart/form-data">
    <p>
    <label for='name'>Name: </label><br>
    <input type="text" name="name" >
    </p>
    <p>
    <label for='email'>Email: </label><br>
    <input type="text" name="email" >
    </p>
    <p>
    <label for='message'>Message:</label> <br>
    <textarea name="message"></textarea>
    </p>
    <p>
    <label for='uploaded_file'>Select A File To Upload:</label> <br>
    <input type="file" name="uploaded_file">
    </p>
    <input type="submit" value="Submit" name='submit'>
    </form>
    <script language="JavaScript">
    // Code for validating the form
    // Visit http://www.javascript-coder.com/html-form/javascript-form-validation.phtml
    // for details
    var frmvalidator  = new Validator("email_form_with_php");
    frmvalidator.addValidation("name","req","Please provide your name");
    frmvalidator.addValidation("email","req","Please provide your email");
    frmvalidator.addValidation("email","email","Please enter a valid email address");
    </script>
    <noscript>
    <small><a href='http://www.html-form-guide.com/email-form/php-email-form-attachment.html'
    >How to attach file to email in PHP</a> article page.</small>
    </noscript>
    </body>
    </html>
    FORM:
    <!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>College Student</title>
    <link rel="stylesheet" type="text/css" href="css/view.css" media="all">
    <script type="text/javascript" src="js/view.js"></script>
    <script src="js/forms.js" type="text/javascript"></script>
    </head>
    <body id="main_body" >
        <div id="form_container">
    <form action="formaction.php" method="post" enctype="multipart/form-data" name="contactus" id="contactus"  style="border:none;" onsubmit="return validateForm()">
                        <div class="form_description">
                <h2><img src="CSVlogo.GIF" width="269" height="97" alt="Logo" /></h2>
                <p>Please type in your first and last names along with our school email address (i.e., [email protected]) when submitting your articles or photographs.</p>
    <p>Select the category that best describes the subject of  your article or photograph. (i.e., Business, Politics, Sports, Humor, etc.)</p>
    <p>When writing about a sporting event please include the name of the sport in the ‘Subject’ line of your email along with the date of the event and the names of the teams. (i.e., Basketball 01-15-11 L.A. Lakers vs.Detroit Pistons)</p>
            </div>       
            <div>
                    <?php
    if (isset($_GET['suc'])) {
    echo "<div style='color:#F00; padding:15px; display:block; margin:10px 0 10px 0;'> ";
    echo "Thank you for your submission!";
    echo "</div>";
    } else {
    ?>
    </div>
                <ul >
                        <li id="li_5" >
            <label class="description" for="Business">Business </label>
            <div>
            <select class="element select medium" name="Business">
                <option value="" selected="selected"></option>
    <option value="Classified" >Classified</option>
    <option value="careertips" >Career Tip</option>
            </select>
            </div>
            </li>        <li id="li_6" >
            <label class="description" for="ProfessionalSports">Professional Sports </label>
            <div>
            <select class="element select medium" name="ProfessionalSports">
                <option value="" selected="selected"></option>
    <option value="NBA" >NBA</option>
    <option value="NFL" >NFL</option>
    <option value="MLB" >MLB</option>
    <option value="otherprosports" >Other</option>
            </select>
            </div>
            </li>        <li id="li_7" >
            <label class="description" for="Humor101">Humor 101</label>
            <div>
            <select class="element select medium" name="Humor101">
                <option value="" selected="selected"></option>
    <option value="Cartoons" >Cartoons</option>
    <option value="Jokes" >Jokes</option>
    <option value="Stories" >Stories</option>
    <option value="Photographs" >Photographs</option>
            </select>
            </div>
            </li>        <li id="li_8" >
            <label class="description" for="CollegeSports">College Sports</label>
            <div>
            <select class="element select medium" name="CollegeSports">
                <option value="" selected="selected"></option>
    <option value="basketballcollege" >Basketball</option>
    <option value="baseballcollege" >Baseball</option>
    <option value="Footballcollege" >Football</option>
    <option value="Softball" >Softball</option>
    <option value="othercollege" >Other</option>
            </select>
            </div>
            </li>        <li id="li_9" >
            <label class="description" for="Politics">Politics</label>
            <div>
            <select class="element select medium" name="Politics">
                <option value="" selected="selected"></option>
    <option value="statelocal" >State/Local</option>
    <option value="National" >National</option>
    <option value="World" >World</option>
            </select>
            </div>
            </li>        <li id="li_1" >
            <label class="description" for="element_1">Name </label>
            <span>
                <input id="First" name="First" class="element text" maxlength="255" size="40" value=""/>
                <label>First</label>
            </span>
            <span>
                <input id="Last" name= "Last" class="element text" maxlength="255" size="40" value=""/>
                <label>Last</label>
            </span>
            </li>       
            <li id="li_sub" >
            <label class="description" for="Subject">Subject </label>
            <div>
                <input id="Subject" name="Subject" class="element text medium required" type="text" maxlength="255" value=""/>
            </div>
            </li>   
            <li id="li_2" >
            <label class="description" for="Email">Email </label>
            <div>
                <input id="Email" name="Email" class="element text medium required email" type="text" maxlength="255" value=""/>
            </div>
            </li>        <li id="li_3" >
            <label class="description" for="EmailC">Confirm Email </label>
            <div>
                <input id="EmailC" name="EmailC" class="element text medium" type="text" maxlength="255" value=""/>
            </div>
            </li>        <li id="li_4" >
            <label class="description" for="Suggestions">Suggestions </label>
            <div>
                <textarea id="Suggestions" name="Suggestions" class="element textarea medium"></textarea>
            </div>
            </li>
          <li id="li_5" >
            <label class="description" for="Upload">Upload File </label>
    <input type="file" name="uploaded_file">
            <div>
              </div>
            </li>
            <li id="li_6" >
            <label class="description" for="Upload">Are you human?</label>
            <?php
            require_once('recaptchalib.php');
              $publickey = "6LfwwsISAAAAAA7UTKJcDATLiK-e55gPFW1Opfrq"; // you got this from the signup page
              echo recaptcha_get_html($publickey);
            ?>
            <div>
              </div>
            </li>
                        <li class="buttons">
                    <input type="submit" name="Submit" value="Submit" class="button" />
    </li>
                </ul>
    </form>
    <!--        <div id="footer">
            </div>
    -->    </div>
    </body>
    </html>
    FORMACTION
    <?php
      require_once('recaptchalib.php');
    $privatekey = "6LfwwsISAAAAAAPShkJ6nV3qkgLDHCe2uXj9RTWw";
      $resp = recaptcha_check_answer ($privatekey,
                                    $_SERVER["REMOTE_ADDR"],
                                    $_POST["recaptcha_challenge_field"],
                                    $_POST["recaptcha_response_field"]);
      if (!$resp->is_valid) {
        die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." .
      else {
    include_once('Mail.php');
    include_once('Mail/mime.php');
    $errors ='';
    $max_allowed_file_size = 10000000; // size in KB
    $allowed_extensions = array("jpg", "jpeg", "gif", "bmp");
    $upload_folder = 'files/';
        $name_of_uploaded_file =  basename($_FILES['uploaded_file']['name']);
        $type_of_uploaded_file = substr($name_of_uploaded_file,
                                strrpos($name_of_uploaded_file, '.') + 1);
        $size_of_uploaded_file = $_FILES["uploaded_file"]["size"]/1024;
        if($size_of_uploaded_file > $max_allowed_file_size )
            $errors .= "\n Size of file should be less than $max_allowed_file_size";
        $allowed_ext = false;
        for($i=0; $i<sizeof($allowed_extensions); $i++)
            if(strcasecmp($allowed_extensions[$i],$type_of_uploaded_file) == 0)
                $allowed_ext = true;       
        if(!$allowed_ext)
            $errors .= "\n The uploaded file is not supported file type. ".
            " Only the following file types are supported: ".implode(',',$allowed_extensions);
        if(empty($errors))
            $path_of_uploaded_file = $upload_folder . $name_of_uploaded_file;
            $tmp_path = $_FILES["uploaded_file"]["tmp_name"];
            if(is_uploaded_file($tmp_path))
                if(!copy($tmp_path,$path_of_uploaded_file))
                    $errors .= '\n error while copying the uploaded file';
            $Business = Trim(stripslashes($_POST['Business']));
            $ProfessionalSports = Trim(stripslashes($_POST['ProfessionalSports']));
            $Humor101 = Trim(stripslashes($_POST['Humor101']));
            $CollegeSports = Trim(stripslashes($_POST['CollegeSports']));
            $Politics = Trim(stripslashes($_POST['Politics']));
            $EmailToBusiness = $Business . "@collegestudentvoice.net";
            $EmailToProfessionalSports = $ProfessionalSports . "@collegestudentvoice.net";
            $EmailToHumor101 =  $Humor101 ."@collegestudentvoice.net";
            $EmailToCollegeSports = $CollegeSports . "@collegestudentvoice.net";
            $EmailToPolitics = $Politics . "@collegestudentvoice.net";
            $EmailTo = "[email protected]";
            $EMailSubject = Trim(stripslashes($_POST['Subject']));
            $First = Trim(stripslashes($_POST['First']));
            $Last = Trim(stripslashes($_POST['Last']));
            $Email = Trim(stripslashes($_POST['Email']));
            $Suggestions = Trim(stripslashes($_POST['Suggestions']));
            $Body = "The following form has been filled";
            $Body .= "\n";
            $Body .= "---------------------------------------------------------------------------------";
            $Body .= "\n";
            $Body .= "\n";
            $Body .= "First Name: ";
            $Body .= $First;
            $Body .= "\n";
            $Body .= "Last Name: ";
            $Body .= $Last;
            $Body .= "\n";
            $Body .= "Email: ";
            $Body .= $Email;
            $Body .= "\n";
            $Body .= "Business: ";
            $Body .= $Business;
            $Body .= "\n";
            $Body .= "Professional Sports: ";
            $Body .= $ProfessionalSports;
            $Body .= "\n";
            $Body .= "Humor 101: ";
            $Body .= $Humor101;
            $Body .= "\n";
            $Body .= "College Sports: ";
            $Body .= $CollegeSports;
            $Body .= "\n";
            $Body .= "Politics: ";
            $Body .= $Politics;
            $Body .= "\n";
            $Body .= "Suggestions: ";
            $Body .= $Suggestions;
            $Body .= "\n";
            $Body .= "\n";
            $Body .= "---------------------------------------------------------------------------------\n";
            $Body .= "Emails sent to: " . strtolower($EmailToBusiness) . " / " .strtolower($EmailToProfessionalSports). " / " .strtolower($EmailToHumor101). " / " .strtolower($EmailToCollegeSports). " / ".strtolower($EmailToPolitics). "";
            $to = "[email protected]";
            $subject= $EMailSubject;
            $from = "[email protected]";
            $text = "\n $Body";
            $message = new Mail_mime();
            $message->setTXTBody($text);
            $message->addAttachment($path_of_uploaded_file);
            $body = $message->get();
            $extraheaders = array("From"=>$from, "Subject"=>$subject,"Reply-To"=>$Email);
            $headers = $message->headers($extraheaders);
            $mail = Mail::factory("mail");
            $mail->send($to, $headers, $body);
            if ($Business != "")
                        $mail->send(strtolower($EmailToBusiness), $headers, $body);
            if ($ProfessionalSports != "")
                        $mail->send(strtolower($EmailToProfessionalSports), $headers, $body);
            if ($Humor101 != "")
                        $mail->send(strtolower($EmailToHumor101), $headers, $body);
            if ($CollegeSports != "")
                        $mail->send(strtolower($EmailToCollegeSports), $headers, $body);
            if ($Politics != "")
                        $mail->send(strtolower($EmailToPolitics), $headers, $body);
            print "<meta http-equiv=\"refresh\" content=\"0;URL=form.php?suc=y\">";
    ?>

    bregent,
    you have explained everything was is happening.
    Mine firewall setttings block the scrip so when I fill the form and submit it, I do not get any errors, but that form information does not go anywhere.
    All firewall setting should be OFF  when a form is submitted?
    dreamweavewr101.1

  • Need to add senders email address into the subject header of my PHP form (somehow)

    Hello one and all,
    I have a PHP form which is working fine and sends our support team an email with the subject header 'Support'.
    I have been asked to fix this form to include the senders email address into the Subject header so that the support team can filter them easier and reply quicker.
    Any help would be very much appreciated indeed. The form code is below, let me know if you need the whole page.
    Thanks in advance,
    Bradley
    My current form PHP part looks like this: (and the HTML part is below in blue)
    <?php
        if($_GET["action"] == "email")
            $msg = "The following person need support:\n\n";
            $msg = $msg . "First Name: " . $_POST["FirstName"] . " " . $_POST["LastName"] . "\n";
            $msg = $msg . "Tel: " . $_POST["Tel"] . "\n";
            $msg = $msg . "Email: " . $_POST["FROM"] . "\n";
            $msg = $msg . "Support: " . $_POST["Support"] . "\n";
            $msg = $msg . "Model: " . $_POST["Model"] . "\n";
            $msg = $msg . "Comments: " . $_POST["Comments"] . "\n";
            $to ="[email protected]";
            $subject = "Support";
            $from = "From: " . $_POST["FROM"];
            mail($to, $subject, $msg, $emailFrom, $from);
            header("Location:support2.php");
    ?>
    and the HTML part of the fom is like this:
    <form id="form1" name="form1" method="post" action="support.php?action=email">
      <table width="700" border="0" cellspacing="10" cellpadding="10">
        <tr>
          <td valign="middle" class="formtext">*First name:</td>
          <td width="455" valign="middle"><label>
            <input name="FirstName" type="text" class="form-textbox" id="FirstName" />
          </label></td>
        </tr>
        <tr>
          <td valign="middle" class="formtext">*Last name:</td>
          <td valign="middle"><input name="LastName" type="text" class="form-textbox" id="LastName" /></td>
        </tr>
        <tr>
          <td valign="middle" class="formtext">*Email:</td>
          <td valign="middle"><input name="FROM" type="text" class="form-textbox" id="FROM" /></td>
        </tr>
        <tr>
          <td valign="middle" class="formtext">*Telephone:</td>
          <td valign="middle"><input name="Tel" type="text" class="form-textbox" id="Tel" /></td>
        </tr>
        <tr>
          <td valign="middle" class="formtext"> </td>
          <td valign="middle"> </td>
        </tr>
        <tr>
          <td valign="middle" class="formtext">*Support required:</td>
          <td valign="middle"><label>
            <select name="Support" class="form-dropdown" id="Support">
              <option selected="selected">Please select...</option>
              <option value="Connection Issues">Connection Issues</option>
              <option value="Technical Issues">Technical Issues</option>
              <option value="Furniture Faults">Furniture Faults</option>
              <option value="Other">Other</option>
            </select>
          </label></td>
        </tr>
        <tr>
          <td valign="middle" class="formtext">Chair model:</td>
          <td valign="middle"><input name="Model" type="text" class="form-textbox" id="Model" /></td>
        </tr>
        <tr>
          <td valign="middle" class="formtext">*Please describe your issue:</td>
          <td valign="middle"><textarea name="Comments" rows="5" class="form-textarea" id="Comments"></textarea></td>
        </tr>
        <tr>
          <td valign="middle" class="maintext"> </td>
          <td valign="middle" class="maintext"></td>
        </tr>
        <tr>
          <td valign="middle"> </td>
          <td valign="middle"><label>
            <input name="Submit" type="submit" class="form-submit-button" value="Submit" />
          </label></td>
        </tr>
      </table>
      </form>

    MurraySummers you sir, are an absolute legend! This worked perfect straight off the bat!
    I really apreciate your lightning fast reply!
    Thanks again.
    Bradley

Maybe you are looking for

  • Sales orders missing in MD04

    Hi, We have a specific issue where some of the sales order which are already confirmed but are missing in MD04. We have not able to identify the reasons. For correction we are using the program SDRQCR21 which again displays the missing SO in MD04. My

  • Jaas issue

    I am new to Jaas... I am using form based login.. I am using j_security_check for authentication purpose. How can i do validation like .. Username cannot be empty.. password cannot be empty... and If he is not autorized display Warning message "User

  • Losing my patience with repair of an x201!!

    I have an x201. The unit ran flawlessly needed no service repairs since I bought it. In December, I head gridning noises related to the fan bearings. I know its the fan because expereinced similar with my T61, which the depot service fixed properly i

  • Zend reCaptcha issue

    Hi, I am working out of chpt. 8 in David Power's new book Dreamweaver CS5 with PHP. I am getting an error with the reCaptcha script WHEN THE PAGE LOADS: Before adding the custom error message, I was getting "Missing response field" as an exception (a

  • GNOME on Ctrl Alt F7

    I am pretty sure the topic has already been raised in this forum. But I do not find the correct search terms. After one of the updates this year the GNOME desktop is now accessible via CTRL+ALT+F7. I have three terminals configured in inittab and the