Simple PHP form question

I've made several php forms that work perfectly. I used the NateMail php script.
For some reason this one http://bravocleaningmn.com/contact.html is not working.
Any help would be greatly appreciated!

PHP is either not installed and running on the server, or it hasn't been enabled for your hosting account, from what I can tell.

Similar Messages

  • Simple Acrobat Form Question

    I just purchased the Adobe Acrobat Standard software.
    This is going to be a really simple answer:
    I am creating a PDF document in which I need my associates to be able to fill in their name, phone number, etc. on the form and save a copy using Adobe Reader.
    I was using the forms wizard and inputting text fields, however when I opened the form in Adobe READER it says the document can not be saved, only printed.
    I know this must be a simple setting. What am I missing here so that my associates can simply change the name and save a copy to redistribute with the only requirement being Adobe Reader?

    Hi phattystylez,
    Since you just purchased I assume you have Acrobat 9 Standard. If so, then you can enable rights to fill and save in the free Adobe Reader (you could not do this in Standard for previous versions). I don't use the Standard version but from the Adobe web site product page it states-
    "Enable anyone using free Adobe® Reader® software (version 8 or later) to fill in and save PDF forms locally*. No more printing and faxing. "
    Page is (http://www.adobe.com/products/acrobatstd/features/)
    That little asterisk is for "* For ad hoc form distribution and data collection for up to 500 people."
    In Acrobat 9 Pro you add the rights as mentioned above from the Advanced Menu. I'm not sure where the Menu command is in Standard, but it's there somewhere.
    Hope this helps,
    Dimitri
    WindJack Solutions
    www.windjack.com
    www.pdfscripting.com

  • Simple php form help, I think (checkboxes)

    I need a bit of help with some checkboxes in a form being proccessed with php.
    I'm using an array to collect the information then having it emailed.
    <input name="colours[]" value="Red" type="checkbox">Red <br />
    <input name="colours[]" value="Blue" type="checkbox">Blue <br />
    <input name="colours[]" value="Green" type="checkbox">Green <br />
    <input name="colours[]" value="Yellow" type="checkbox">Yellow <br />
    What I'm getting back in the email at the moment is:
    I'm interested in these colours: Array
    Below is the $body of the message:
    $body = "Please contact me regarding the following:\r\n\r\n";
    $body .= "Name: ".stripslashes($_POST['name'])."\r\n";
    $body .= "Address: ".stripslashes($_POST['address'])."\r\n";
    $body .= "Postcode: ".stripslashes($_POST['postcode'])."\r\n";
    $body .= "Telephone: ".stripslashes($_POST['telephone'])."\r\n";
    $body .= "Email: ".stripslashes($_POST['email'])."\r\n";
    $body .= "I'm interested these colours: ".$_POST['colours']."\r\n";
    I guess I need some more php to desl with the array?????
    Thanks
    Os

    Duplicate post. Original has been moved to Dreamweaver Application Development. Locking this thread.

  • PHP Form Question (Again...)

    Sorry for all these questions on PHP validations and such,
    but I know you
    all enjoy helping!
    Anyway - I'm using this bit of PHP code to keep the user's
    input inside the
    textfields and textboxes when the page is refreshed due to
    any errors being
    on the page:
    value="<?php if(isset($_POST['fieldname'])) echo
    htmlentities($_POST['fieldname']);?>"
    Or if it's inside a textarea, I just omit the value=" .
    Is this possible to do with select boxes? Each time the page
    reloads due to
    any errors (not filling in all the fields) they all reset to
    their default
    (first option) and the user has to select them all over
    again.
    Thanks guys!
    Shane H
    [email protected]
    http://www.avenuedesigners.com

    On 5/1/06 11:16 PM, "Shane H" wrote:
    > I've got 50 states to go through <lol> - isn't
    there an easier way than
    > entering them all into an array...?
    Hmmm.... the snippet I posted a few days ago of my php state
    select list
    function will keep an element's SELECTED value. See the "if
    (isset)" lines
    down toward the end? Those check for the POSTed status of the
    select element
    and set the option to selected if it was originally selected.
    function stateselectlist() {
    $states = array('' => 'Please Select State', 'AL' =>
    'Alabama', 'AK' =>
    'Alaska', 'AZ' => 'Arizona', 'AR' => 'Arkansas', 'CA'
    => 'California',
    'CO' => 'Colorado', 'CT' => 'Connecticut', 'DC' =>
    'District of
    Columbia', 'DE' => 'Delaware', 'FL' => 'Florida', 'GA'
    => 'Georgia', 'HI'
    => 'Hawaii', 'ID' => 'Idaho', 'IL' => 'Illinois',
    'IN' => 'Indiana', 'IA'
    => 'Iowa', 'KS' => 'Kansas', 'KY' => 'Kentucky',
    'LA' => 'Louisiana',
    'ME' => 'Maine', 'MD' => 'Maryland', 'MA' =>
    'Massachusetts', 'MI' =>
    'Michigan', 'MN' => 'Minnesota', 'MS' => 'Mississippi',
    'MO' =>
    'Missouri', 'MT' => 'Montana', 'NE' => 'Nebraska', 'NV'
    => 'Nevada', 'NH'
    => 'New Hampshire', 'NJ' => 'New Jersey', 'NM' =>
    'New Mexico', 'NY' =>
    'New York', 'NC' => 'North Carolina', 'ND' => 'North
    Dakota', 'OH' =>
    'Ohio', 'OK' => 'Oklahoma', 'OR' => 'Oregon', 'PA'
    => 'Pennsylvania', 'PR
    '=> 'Puerto Rico', 'RI' => 'Rhode Island', 'SC' =>
    'South Carolina', 'SD'
    => 'South Dakota', 'TN' => 'Tennessee', 'TX' =>
    'Texas', 'UT' => 'Utah',
    'VT' => 'Vermont', 'VA' => 'Virginia', 'WA' =>
    'Washington', 'WV' =>
    'West Virginia', 'WI' => 'Wisconsin', 'WY' =>
    'Wyoming');
    $str = "<select name=\"state\" id=\"state\">\n";
    foreach ($states as $key => $value) {
    $str .= "<option value=\"$key\"";
    if (isset($_POST['state']) && ($key ==
    $_POST['state']) ) {
    $str .= 'selected="selected"';
    $str .= ">$value</option>\n";
    $str .= "</select>\n";
    return $str;
    } // END function stateselectlist
    Sonjay

  • GoDaddy php form question

    I had this all working until I set the parameters for the
    form to redirect to the thank you page. Now the checkbox won't
    validate!
    Help!
    Here is the link
    to the form

    > name="Agreed to Terms"
    > type="checkbox" id="Agreed to Terms"
    change the name/id to something without blank spaces.
    "Agree_to_Terms"
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • Can you auto-attach files in a PHP form?

    Hi there,
    Have been looking over everywhere for a solution to my problem. I am going to try and be as clear as I can about the problem.
    I have had some experience making simple PHP forms that let the user put their name, email, subject and body text and send it in an email using the form.
    But for a project I am currently undertaking - the client has requested a form that will pre-attach a particular document to the email when it is sent. All the user has to do is input the email address of the adressee and their name/email address and all the other fields are custom made (i.e. subject, body text) - and the email will be sent to the selected recepient with the file already attached.
    I was envisaging the PHP script would collect the reference for a file that is already sitting on the web server and attach it in the function.
    Is there anyway to do this? Because if it isn't I may as well tell the client to go and use outlook - because the web form will really have no purpose.
    Thanks in advance

    Hi have proceeded along the path of inserting links
    into PHP generated email but I am having trouble in outputting the body message in HTML - All I get out
    in the output email is the HTML tags with the text (plain text).
    Did some research and found out that I have to determine the content type/charset.
    I have tried to do this in my PHP but to no avail. Also I am not getting the email or name of the sender in the email that is generated....
    Anyway, there is the PHP code (and it's not that tight but it works):
    AND SOME DEFAULT TEXT THAT WILL CONTAIN LINKS TO NECESSARY FILES TO DOWNLOAD:
    link to PDF '.$field_message; $headers = 'From: '.$cf_yremail."\r\n"; $headers .= 'Reply-To: '.$cf_yremail."\r\n"; /* If your e-mail is not valid show error message */ if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/", $mail_to)) { ?>
    Any help on this would be much appreciated....
    Thanks

  • Php Form Help

    I just developed a simple php form (my first time). I am
    trying to enable the information that is typed in the form by
    visitors, to be emailed directly to me. So far I can only get the
    person's email address and message left in information box to be
    sent to my email address. However, there are other contents within
    the form that I also need to receive. Can anyone help.
    http://www.newnie.com/informationform.php
    http://www.newnie.com/handle_form.php

    On 18 Oct 2007 in macromedia.dreamweaver.appdev, CellaMarr
    wrote:
    > When I fill out the form and press send the only
    information that I
    > receive is the "First Name", "Email Address", and
    "Project Details".
    > All the other info does not show up. Why will it only
    send some of
    > the information and not all of it? ("Phone Number",
    "Profession",
    > "Budget", "Hosting", and "Domain")
    Because you're not telling it to send them to you. Consider:
    $success = mail($to, $subject, $detail, $headers);
    This line is correct and sends the email as it should. You're
    telling
    it that you want $detail as the body of the message. However,
    when you
    load variables:
    $name = $_POST['name'];
    $email = $_POST['email'];
    $number = $_POST['number'];
    $detail = $_POST['detail'];
    $profession = $_POST['profession'];
    $entertainer = $_POST['entertainer'];
    $domain = $_POST['domain'];
    $hosting = $_POST['hosting'];
    $subject = 'Message from newnie.com'; // this is the subject
    line. you
    can make this say whatever you want
    $headers = "From: $name <$email>\n";
    $headers .= "Reply-To: $name <$email>\n";
    $to = '[email protected]'; //change this to your email
    you're only putting the contents of the 'detail' form field
    into
    $detail. You need to do something more like:
    $body = 'Name: ' . $_POST['name'] . "\n";
    $body .= 'EMail: ' . $_POST['email'] . "\n";
    $body .= 'Number: " . $_POST['number'] "\n";
    // etc
    $subject = 'Message from newnie.com'; // this is the subject
    line. you
    can make this say whatever you want
    $headers = "From: $name <$email>\n";
    $headers .= "Reply-To: $name <$email>\n";
    And your mail() statement becomes:
    $success = mail($to, $subject, $body, $headers);
    Joe Makowiec
    http://makowiec.net/
    Email:
    http://makowiec.net/contact.php

  • Form question. It looks simple, but is it...?

    I have this form:
    The image says it all, how can I move the circled text up to align with the top of the comments box and use multiple lines of text there, instead of at the bottom as it currently is?
    The form.php code is attached.http://www.millcon.nl/Harm/form.php
    The whole page is here: http://ppbm5.com/submission.html

    Ben,
    Thanks again for your help.
    First, some background on myself, so you know you have to take it easy...
    My programming background is from the days of Basic, Fortran, Cobol, RPG and - my favorite - APL. I did program econometric and statistical applications, using adanced techniques like ARIMA (auto-regressive integrated moving average) models similar to Box-Jenkins approaches. I have never progressed from APL to other, more modern languages, like C++, Java and the like. Matt Iverson is still my example of how to create A Programming Language (APL).
    My business (HR consultancy) nor my hobby, videography and video editing, required me to learn these new languages.
    A couple of months ago I started with DW CS4, which I have as part of the MC, because I wanted to create, together with Bill Gehrke, a new website for benchmarking hardware setups, specific for Premiere Pro CS5. See: http://ppbm5.com . Next I did a similar thing for my daughter, see http://poffertjes.ch
    One of the problems we encountered with the way we worked in the past was that people had to submit their data by filling out questions posed in a VB script. Some left out relevant deatils, others made typo's like 10,000 instead of 1,000 for disk capacity, others named their video card 470 Gtx while others named them GTX 470 and so on. This caused us a lot of hard work and time to safeguard consistency in the Excel spreadsheet that we publish on the http://ppbm5.com/Benchmark5.html page.
    With that in mind, I used a form maker to generate the php files to ease the burden a bit. See: PHP Form Mail Maker - A free tool to create ready-to-use web mail forms with customized auto response email | F.A.Q about PHP FormMail Generator
    Now, the info I have given was not complete, in the sense that this form generator gives you three files in a ZIP file:
    1. form.php, which is the layout of the form
    2. form.lib.php which is used for the auto-response mail, and
    3. admin.php for maintenance of the form and downloading CSV data from the forms submitted.
    (I have sent these to you by PM, because of privacy considerations)
    Your suggestions make a lot of sense. However, stupid noob that I am, I don't know where to paste your #php formatting statements. I deleted the OL class line and pasted your formats, but that is obviously not the way to go about is. Second problem I have is that the error correction on required fields no longer shows up correctly. Third issue is that in IE the form looks reasonably OK, the space between the comments box is slightly larger than the rest of the text, but FF leaves no space between them.
    If you ever have a question about Premiere Pro or hardware, I may be able to help you, but here I'm lost.
    PS. An autodidact is someone who had an idiot as a teacher. That applies to me.

  • Simple contact form php error

    I just replaced an adobe formscentral contact form with the muse simple contact form. It is not working, receiving a php server error when submitting. How can I fix this?? I'm hosting through Amazon Route53.
    Issue is here: CONTACT

    Hi,
    I was able to submit the form, kindly let me know if you are still facing the issue.
    Regards
    Sonam

  • Php form problem and question

    I am a new web designer who is not code savey yet. Anyway
    during the various sites i have designed i have used 3 different
    forms that process and email it to me using a seperate php form, 1
    in flash, 2 from a standard html form on a windows server. All have
    been uploaded, to the site, tested and worked fine. 2 are in old
    sites, one in my current site. Recently all 3 forms stopped working
    and while they looked like they worked fine they no longer actually
    sent anything. I had a big email arguement with my host and finally
    they added this line into my php script "ini_set
    ("sendmail_from","[email protected]");" email address is example here
    and they added another form to my site called "php4-cgi-fcgi.ini."
    Then my curent form started working again. I haven't changed
    anything, and of course the host never informed me of any changes.
    So why did this need to be added for my form to work again? Does
    this mean they upgraded to another version or something? Ihad a big
    arguement with them because they refused to tell me what they did
    that stopped all my forms from working, they kept acting like it
    was me or my provider that caused the problem, when i am positive
    we were not the problem. Any thoughts?

    doing a google on "ini_set ("sendmail_from" gives a lot of
    info.
    summary- the form script you are using is probably not
    setting a default
    "FROM" email address, so the host has phpmail() reject it as
    possible spam
    abuse.
    The .ini files the host added to your site correct the
    problem. They change
    values for php to use within your hosting domain.
    What php script are you using to send the emails? It is
    probably out of date
    if it doesn't address this issue.
    Off Topic: suggest never arguing with hosting support. Even
    it the person at
    the other end of the phone is an 18 year old drone not
    earning their salt.
    Move the site if needed. Develop social engineering skills to
    get things
    done.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • PHP form help - results not appearing in email

    Hi I have set up a simple entry form, and I am submiting it
    using PHP to my email address, It works well when you fill the form
    in and send it, I receive the email however the email only displays
    the questions and not the answers that have been filled in on the
    form. Itss driving me crazy as top why this is not working. Can
    someone please help?
    here is my form code, both form and PHP. Thanx

    I haven't checked the form, but I had a similar problem with
    my server when they upgraded their systems recently. I would
    receive the email, but it was blank.
    Th reason was ...
    As long as your scripts do not need "register_globals" they
    will work.
    The default php mail command works. Again - no
    "register_globals".
    A lot of old and lazy written scripts rely on it. But it is a
    major
    security risk - even more so on shared servers - and as such
    has been
    disabled by default in PHP since version 3.0.3.

  • Php form error?

    Hi. I've got php form from one of the templates but it doesn't work. Can anyone see an error?
    The code:
    <div id="content_item">
              <h1>Contact Us</h1>
              <p>Say hello, using this contact form.</p>
              <?php
                // Set-up these 3 parameters
                // 1. Enter the email address you would like the enquiry sent to
                // 2. Enter the subject of the email you will receive, when someone contacts you
                // 3. Enter the text that you would like the user to see once they submit the contact form
                $to = [email protected];
                $subject = Enquiry from the website;
                $contact_submitted = Your message has been sent.;
                // Do not amend anything below here, unless you know PHP
                function email_is_valid($email) {
                  return preg_match('/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i',$email);
                if (!email_is_valid($to)) {
                  echo '<p style="color: red;">You must set-up a valid (to) email address before this contact page will work.</p>';
                if (isset($_POST['contact_submitted'])) {
                  $return = "\r";
                  $youremail = trim(htmlspecialchars($_POST['your_email']));
                  $yourname = stripslashes(strip_tags($_POST['your_name']));
                  $yourmessage = stripslashes(strip_tags($_POST['your_message']));
                  $contact_name = "Name: ".$yourname;
                  $message_text = "Message: ".$yourmessage;
                  $user_answer = trim(htmlspecialchars($_POST['user_answer']));
                  $answer = trim(htmlspecialchars($_POST['answer']));
                  $message = $contact_name . $return . $message_text;
                  $headers = "From: ".$youremail;
                  if (email_is_valid($youremail) && !eregi("\r",$youremail) && !eregi("\n",$youremail) && $yourname != "" && $yourmessage != "" && substr(md5($user_answer),5,10) === $answer) {
                    mail($to,$subject,$message,$headers);
                    $yourname = '';
                    $youremail = '';
                    $yourmessage = '';
                    echo '<p style="color: blue;">'.$contact_submitted.'</p>';
                  else echo '<p style="color: red;">Please enter your name, a valid email address, your message and the answer to the simple maths question before sending your message.</p>';
                $number_1 = rand(1, 9);
                $number_2 = rand(1, 9);
                $answer = substr(md5($number_1+$number_2),5,10);
              ?>
              <form id="contact" action="contact.php" method="post">
                <div class="form_settings">
                  <p><span>Name</span><input class="contact" type="text" name="your_name" value="<?php echo $yourname; ?>" /></p>
                  <p><span>Email Address</span><input class="contact" type="text" name="your_email" value="<?php echo $youremail; ?>" /></p>
                  <p><span>Message</span><textarea class="contact textarea" rows="5" cols="50" name="your_message"><?php echo $yourmessage; ?></textarea></p>
                  <p style="line-height: 1.7em;">To help prevent spam, please enter the answer to this question:</p>
                  <p><span><?php echo $number_1; ?> + <?php echo $number_2; ?> = ?</span><input type="text" name="user_answer" /><input type="hidden" name="answer" value="<?php echo $answer; ?>" /></p>
                  <p style="padding-top: 15px"><span> </span><input class="submit" type="submit" name="contact_submitted" value="send" /></p>
                </div>
              </form>
            </div>

    The only error I see is your text strings which are assigned to the php variables should be enclosed in "  " like below: (best not to post real email addresses as it attracts spam)
    $to = "[email protected]";
                $subject = "Enquiry from the website";
                $contact_submitted = "Your message has been sent.";
    Plus change the $return variable to a line break (as below) otherwise the information will come through in one continuous line.
    $return = "\n\n";

  • PHP Form Validation and Insert Records

    Hi There,
    I've been scratching my head for 2 days and couldn't find a solution.
    Here is my problem:
    Go to http://ecopethandbags.com/contactTest.php and click the "Send Comments" button.
    You will see that the validation works.
    Now, go to http://ecopethandbags.com/contactTestInsert.php, this time, I've inserted the "Insert Record" server behavior.
    Click the "Send Comments" button again.
    You will see the ugly message like "Column 'firstname' cannot be null" in a plain white page.
    My question is:
    How can I insert the PHP form records in my database and take advantage of the form validation nicely like in http://ecopethandbags.com/contactTest.php
    I am attaching the files.
    Thank you for you help!

    boloco wrote:
    My question is:
    How can I insert the PHP form records in my database and take advantage of the form validation nicely like in http://ecopethandbags.com/contactTest.php
    Use simple PHP logic to merge the scripts together.
    Dreamweaver automatically puts the Insert Record server behavior code at the top of the script. You need to adapt it so that the validation is done first. If the validation succeeds, use the Insert Record server behavior. If not, redisplay the form.
    if (array_key_exists('send', $_POST)) {
      // validate the form input
      if (!$suspect && empty($missing)) {
      // send the mail
        if ($mailSent) {
        unset($missing);
        // insert the Insert Record server behavior code here

  • 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!

  • Php form data script

    Hi all
    would someone beable to help?
    I have been using a free php form data script on my website but I am finding that when people fill in the form that not all the form submissions are getting through and I am not sure if it is the php form script
    Would any one be to direct me to a good free php data script that is simple to use
    many thanks for your help!

    hi there
    many thanks for your help!
    ok, am  little new to this, so do you mean in my contact.php script I have?
    not sure what I would be looking for?
    I tried to attach to this post but copuld so zipped it for download here; http://www.thevineproject.org.uk/contact.zip
    thanks for your help

Maybe you are looking for

  • SOAP.request  URL issue

    Im using the below webservice script in my PDF, it is working fine. but, If the URL is wrong then the below code is not executing the remaining statement. If the URL is wrong or the server is down, I hav to show message, How should I catch that error

  • Connecting ipod shuffle to my 93 Honda accord radio

    Hi all, How can I connect my ipod shuffle to my car radio and get the best sound quality? Is there some noise filter or frequency filter I can attach to it? Please let me know Thanks for your help Web dude

  • How do I fix slight distortion in background in generating sine wave

    I'm getting a slight distortion in the background when I run the following code, the distortion is very slight and sounds like buzzing. Because of its subtle nature it makes believe there is some sort of aliasing going on with the byte casting: Note:

  • How to realize customer menu?

    I'm building an application with customer menu. I want to open a few subvis running indenpently with menu in main vi.Someone can tell me how to realize this and had better give some simple examples? I am a beginer,I need your help and your help is ap

  • Exchange Connector - Add a mailbox to ManagementScope

    Hi, I have installed SCSM 2012 RTM, also configured Exchange Connector 3.0 in my Test Environment. Also implemented Impersonate ([email protected]), everything is working fine. In prod we use  [email protected] for generating ticket, I am trying to a