PHP email form - problem with WHO, it is

Hello

I have a reference page on my site where the user puts in their details as well as a friends and form triggers an email to the friend. The form is in HTML and published on a PHP file. The problem is that I get in email for who she is:

Of'Scott Bradshaw"@server74.ukservers.net

I don't want the

@server74.ukservers.net

in their.

Is it a problem with the PHP files and forms or is their a way round it? I know I could do a mailto link: train, but don't want to. What are my options?

Thank you, Scott

You realize that your server is running a version of PHP which is no longer supported? All support for PHP 4 was abandoned a year ago.

It is much easier to run the validation server with PHP 5.2 or higher. However, the following text should provide basic protection:

function detectSuspect($val, &$ok) {
  if (preg_match('/Content-Type:|Cc:|Bcc:/i', $val)) {
    $ok = false;
  }
}

Add this function to your script. Then add your validation:

$validationOK = true;
detectSuspect($YourName, $validationOK);
detectSuspect($YourEmail, $validationOK);
detectSuspect($RefName, $validationOK);
detectSuspect($RefEmail, $validationOK);

You can then change the following line:

$success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>");

to do this:

$success = mail($EmailTo, $Subject, $Body, "From: $EmailFrom<$YourEmail>");

The fourth argument to the second mail() function should also include an e-mail address.

Tags: Dreamweaver

Similar Questions

  • BlackBerry smartphone email a problem with my Torch 9800.

    I have a problem with my Torch 9800. When you try to configure the e-mail account on the torch, my companion of techno geniuses who ran in while I was reading upward on the ins and outs selected the company option and then tried to enter the e-mail address and the password. When she came back invalid, I had just read the correct option. Now the torch will not support to give me the Internet e-mail account option. or company. I made the default I saw through the command prompt and options, nothing seems to work when he gets online after the restoration, select email overall upward and it's always the newspaper and projection of password to the company. This phone is only 4 days old, I'm not impressed that I can't go back to the option, or am I missing something?

    Help will be appreciated.

    See you soon

    Thanks for the tip on the service provider. Turns out there was to be a $10 monthly fee paid to blackberry to activate the service.

    All good and working

    See you soon

  • Advanced PHP email form

    I recently bought a model I want to use the extension of the advanced form of PHP Email that I bought on dreamweaver with the shape of models very simple and small, but returned with an error.

    I'll post the code and an image in the form below, and I hope it will help answer my question:

    < div class = "col-sm-6 col-md-6" >

    < do action = "#" method = "post" >

    < div class = "form-group" >

    <!-< label for 'contact_name' = > name: < / label >->

    < input type = "text" id = 'contact_name' class = placeholder 'form control' = "Name" / >

    < / div >

    < div class = "form-group" >

    <!-< label for 'contact_email' = > Email: < / label >->

    < input type = "text" id = 'contact_email' class = placeholder 'form control' = "Email address" / >

    < / div >

    < div class = "form-group" >

    <!-< label for 'contact_email' = > Email: < / label >->

    < input type = "text" id = 'contact_phone' class = placeholder 'form control' = 'Phone number' / >

    < / div >

    < div class = "form-group" >

    <!-< label for = "contact_message" > Message: < / label >->

    < textarea id = "contact_message" class = "form control" rows = "9" placeholder = "write a message" > < / textarea >

    < / div >

    < button type = 'submit' class = 'btn, btn-primary' > Send < / button >

    < / make >

    < / div >

    Capture.JPG

    The error that I'll be back when I try and insert the extenstion with the form is:

    TypeError: formNode.childNodes [i]. Name has no property

    What should I do to get this form to work with the extension, the answer is probably simple, but I'm lost as ive tried a few things and failed.

    Thank you

    Erik

    To add to Jon, I would also say that you add a 'name' attribute to all yourelements such as:

    name = 'contact_name' type = 'text' id = 'contact_name' class = placeholder 'form control' = "Name" / >

    to see if that helps. Looking at the error message that you get this, that's what I think.

  • SAP Adobe Print Forms - problem with Chinese characters

    Hi all

    We use printing forms Adobe SAP to create a business document. It is designed using lifecycle of the Adobe Designer (ALD). The form is displayed in the Chinese language. The requirement is to display subtitles for the few fields in bold.

    When you design the form, we put the legend as "BOLD", but when the form is generated only a few characters are displayed in bold.

    I don't know if it of problem with Adobe Reader or should there be specific fonts to be installed on the AD server?

    Please let me know that all the fonts packs must be installed on the local machine?

    Thank you; I got your new document.  But nothing has changed. This first line is always exactly the same mixture of Japanese and Chinese fonts, as in the original.

    If I change these fonts to Adobe Heiti Std R (in bold), it looks like this (in both Acrobat and Reader 11.0.09 11.0.09)

    I downloaded the PDF changed to https://files.acrobat.com/a/preview/e5380c9e-2b0f-4ad4-ad94-ac83d86cd80e so you can see the difference.  Heiti font is embedded, so you will not need the police on your local computer.

  • PHP Contact form problem

    Hi all

    I am using a php Contact form and it is throwing an error before I click on submit. As a beginner in PHP I don't really know where I am going wrong.

    Here is the link to the contact form.

    http://www.thesketchcollective.co.UK/clients/form-example/MyForm1.php

    Secondly, I join the form to send an email but also send the information to CSV format. It currently sends it a little to a CSV file.

    Any help would be appreciated.

    See you soon

    Tom

    Just what I thought.  Add this before line 2:

    if (isset($_POST['formSubmit'])) {
    

    And add after line 27:

    }
    

    Then the lines 46 & 50 that you use a variable that does not exist yet.  Y at - it a page before this form where the variable is set before this page?

    If the answer is no, and more than likely it is remove the "value =...". "part of the code for your contributions.  They aren't really any purpose here and it is because of the same error type, as indicated above.  The value field essentially specifies the information that must be in the input field when the page loads before the user types anything.  Then, you should be able to remove it without consequences, unless it is a multiple page form or as long as you don't go no information of this form before it is entered by the user.

  • Coding of PHP Email form

    System: Mac OS 10.5.1
    Dreamweaver 8

    Hi people,
    I have created email forms web, standard "contact me" type ones ( http://www.allgoonerdup.com/ContactUs/Contact.php) as well as some more in depth more ( http://www.vipink.co.uk/LimoService/VIPLimoBooking.php) against the coding is the same for input text boxes. I now need to produce another form of web, but one of the questions must have a drop of water in a box - working example ( http://dt7design.co.uk/Forms/Form.php) and the coding does not work for this section - nobody knows how this code correctly. Any information would be appreciated.

    Thank you very much
    TS

    Quote:
    Posted by: NateBaldwin
    > I now need to produce another form of web, but one of the questions must have a
    > - example of work drop-down box ( http://dt7design.co.uk/Forms/Form.php) and
    > coding does not work for this section

    Looks like you need to add values for the "select" menu options. So, more like:

    The label is just in the interest of the browser (in general), and the value is what is presented to the script. From there on, the treatment would be the same in PHP (unless it's a multiple selection menu, you must manage the tabular value)

    Absolutely perfect! Thank you very much! It's another area, I can check now! Love your work!

  • A (former) problem with discoloration in PE 4 titles?

    I ' am in collaboration with PE 4.0 for en 3 years I still have a problem with the titles of the discoloration. I use the fade in and out - the menu that is displayed by the right mouse button options. When I visited my film with such a title to the AVI format, the title appears with a flash at the beginning and at the end. The effect does not appear in the preview.

    Now, I cancelled the problem using also the Cross-fade effect at the beginning and the end of the title. But that can't be the solution of the problem! Anyone know an easier way?

    It is probably related to your video source. What kind of camcorder is your coming video and how did you in your computer?

    MPEG and VOB is known to cause uneven effects because of the compression system they use. Especially when they are used in a project that has not been implemented for their video format.

  • Basic PHP email form does not work after upgrade to 20141

    I have a MAC OS X 10.7.5 - I have 2 sites that use e-mail very basic PHP forms that worked very well until I upgraded to Dreamweaver.  Now, I can fill in the form and there is not error - it seems that it works as before, but I never have the email.  Says Adobe support has nothing to do with the upgrade and there is an error in the script code.  Can someone help me?  Here is the send.php

    <?

    $name = $_POST ['name'];

    $email = $_POST ['email'];

    $tel = $_POST ['such'];

    $comments = $_POST ['comment'];

    $security = $_POST ['security'];

    $to = " [email protected] "; "

    $subject = 'New Contact site';

    $message = ' a visitor of DLPRecordingStudios.com introduced a contact request.\n\nName: $name\n\nEmail: $email\n\nTelephone: $tel\n\nComments: $comments\n\nPlease answer to the request.\n\nBest contact cordially, \n\nYour Webmaster (and master of your universe);

    If ($security == '7') {}

    mail ($to, $Subject, $message);

    Header("Location:contact.php?s=1");

    }

    else {}

    Header("Location:contact.php?s=2");

    }

    ? >

    Thanks - Tracey

    Sure that you will find the upgrade is not to blame, and the timing is a coincidence.

    Cause the most likely problem is your SMTP server being modified settings. It is very common to block mail scripts because they are a major source of spam.

    In addition, as Rob says, always include a "From" header It is not required, but doesn't it have will significantly increase the chances of your anti spam mail.

  • PHP email form checkbox values?

    Hello

    I have created a form to email php what part of it is made up of a few boxes I need to get the values of. My knowledge of php is not terrible that so I used a tutorial to create the largest part of the form.

    I currently have 7 boxes set up as such:

    ...
    <input type="checkbox" id="grade_5" name="grade[]" value="Grade 5" />
    ...
    
    

    All of them are named "grade []" to be stored in a table called "rank".

    I know that values are correctly stored in the table as they appear in the browser when I take the picture.

    $grade = $_POST['grade'];
    
    $N = count($grade);
    
    for($i=0; $i < $N; $i++) {
         echo($grade[$i] . " ");
    }
    
    

    Thus, the part with the fact that I have a problem is to get the values displayed in the body of the email.

    $body = "
    ...
    Grade Level(s): $grade
    ...
    ;
    
    

    In this case, all that is returned is the word "Array" instead of the rank you want checked values.

    Any help is very appreciated! Thank you in advance!

    * Note: All other values (text boxes, drop-down list selection, etc.) are already transmitted to the email.

    danedmonds wrote:

    In this case, all that is returned is the word "Array" instead of the rank you want checked values.

    This is because $grade is an array. If you want to access the values, you must use a loop. Alternatively, using implode () into a string separated by commas, as follows:

    $grade = implode(', ', $grade);
    
  • PHP email form

    Hello Peeps

    All started playing around in web design, I managed to acquire a model for my friends of the society of golf, but I am unable to get the correct form php put in place for the contact page. The code for the form is below.

    < form id = "Contact form" action = "email.php" method = "post" > "

    < div >

    "< label > < span class ="input"> < input type ="text"value =" "your name:" onBlur = "if(this.value=='') this.value ='Your name:'" onFocus = "if (' this.value ==' your name :') this.value =" "/ > < / span > < / label >)"

    "< label > < span class ="input"> < input type ="text"value =" "your email:" onBlur = "if(this.value=='') this.value ='Your E-mail:'" onFocus = "if (' this.value ==' E-mail :') this.value =" "/ > < / span > < / label >)"

    "< label > < span class ="input"> < input type ="text"value =" "your state:" onBlur = "if(this.value=='') this.value ='Your State:'" onFocus = "if (' this.value ==' your state :') this.value =" "/ > < / span > < / label >)"

    < span class = "textarea" > < textarea onBlur = "if(this.value=='') ' this.value ='Your Message:'" onFocus = "if (this.value ==' your Message :') this.value =") "> your Message: < / textarea > < / span >"

    < / div >

    < div class = "alignright" >

    < a href = "#" class = "link" onClick = "document.getElementById('ContactForm').reset ()" > < span > < span > claire </span > < / span > < /a >

    < a href = "#" class = "link" onClick = "document.getElementById('ContactForm').submit ()" > < sending span > < span > </span > < / span > < /a >

    < / div >

    < / make >

    I searched the net for a solution and found the below, but I can't get the content of the message to appear in the emails.

    <? PHP

    -Put these settings-

    Subject of the email sent to you.

    $subject = "Contact form results."

    Your email address. This is where the information on the form will be sent.

    $emailadd = ' [email protected] ';

    Where redirect after form is processed.

    $url = ' http://www.wsog.co.uk/Contact.html';

    Makes all the required fields. If the value of '1' no field cannot be empty. If the '0' value any or all fields can be empty.

    $req = '1';

    -Do not edit below this line-

    $text = "comes from the shape: \n\n";

    $space = ' ';

    $line = '

    ';

    foreach ($_POST as $key = > $value)

    {

    If ($req is '1')

    {

    If ($value == ")

    {echo "$key is empty"; die ;}

    }

    $j = strlen ($key);

    If ($j > = 20)

    {echo "Of the form $key name cannot be longer than 20 characters"; die ;}}

    $j = 20 - $j;

    for ($i = 1; $i < = $j; $i ++)

    {$space. = ' ' ;}}

    $value = str_replace ('\n', "$line", $value);

    $conc = "{$key}: $space {$value} $line";

    $text = $conc;

    $space = ' ';

    }

    mail ($emailadd, $subject, $text, ' from: '. $emailadd. ");

    echo "< META HTTP-EQUIV = CONTENT refresh ="0; " URL ='. $url. " » >';

    ? >

    advice on how I can get the text to be sent would be very greatfull.

    Your input and textarea fields have no names. The name becomes the key used by the post superglobal. Without it, nothing will be passed to this POST when sending. So, for example, where you have the value = "your state:"you must follow with name = 'State' "

  • CheckBox in php email form

    Hello Dreamweavers

    I'm working on a new site that has a contact form to send an email.

    It works very well

    form has the following fields: name, email, phone, Web site, subject, and message

    site is here: http://tinyurl.com/7vzgl7z

    I would now like to add a box that people can check if they want to receive a "questionnaire".

    I added this to my form as follows:

    < label for 'questionnaire' = > Yes, please send me the questionnaire < / label >

    < input type = "checkbox" id = 'questionnaire' name = 'questionnaire' value = "yes" >

    The mail is then sent by the file send.php as follows:

    $post = (! empty($_POST))? true: false;

    If ($post)

    {

    $name = stripslashes($_POST['name']);

    $email = trim($_POST['email']);

    $phone = stripslashes($_POST['phone']);

    $website = stripslashes($_POST['website']);

    $subject = stripslashes($_POST['subject']);

    $message = stripslashes($_POST['message']);

    $error = ";

    some more code

    My question is how to get the value of the check to be sent to my email address

    I found some examples on the web, but still can't make it work.

    Should simply be $questionnaire = $_POST ['questionnaire'];

  • Flash 8 AS and PHP email form

    Hello

    I finally find some time during the holidays to work on my flash site Web e-mail form. I had wonderful help of kglad and Chris a couple of months. I will attach my AS2 code first, and then my PHP code I got from Yahoo. (Our server hosting for the website).

    I get my error message of... "Sorry, it is a server error, please try again."

    I also specified the default e-mail account in my web account to yahoo small business under PHP/Perl Mail Setup by default [email protected].

    Any help would be greatly appreciated and thanks in advance!

    Brand of Hey! Sorry I've been out of the loop for a while :) very busy. and thanks for the help guys, especially gwd.

    I think I see the problem here, in your answer to yahoo, they indicated that the "FROM:"field has been focused on the miss not a domain address. and since the last php here, I see that you had not changed the info in this area. We will try to change the line to this:

    $mailheaders = "from: [email protected] \r\nContent-type: text/html".

    and the rest of the php to the initial declaration for the swf file.
    You fingers cross :)

  • Calculation of tabular form, problem with decimal numbers

    Hello

    I wrote a simple java script function that is responsible for calculating the price * quantity and store that value to total_price.

    function CalcTotalPrice (pThis)
    {
    var vRow = pThis.id.substr (pThis.id.indexOf ('_') + 1);
    html_GetElement ('f07_' + vRow). Value = parseInt (html_GetElement('f06_'+vRow).value, 10) * parseInt (html_GetElement('f05_'+vRow).value, 10);
    }

    The function calculation is correct, but I have problem when the price or quantity decimal numbers.
    For example.
    Currently:
    price * quantity = total_price
    7.5 * 1 = 7 instead of * cf. 7.5 *.

    I've already put a mask of correct format for all of these areas (999G999G999G999G990D00).

    I appreciate your help.

    Request Express 4.2.1.00.08
    Oracle Database 11g Express Edition Release 11.2.0.2.0

    Kind regards

    Hi John,.

    before the multiplication, you analyze your values as an integer, so 'cut' the decimals.
    Replace "parseInt" by "parseFloat" should do the trick.

    function CalcTotalPrice(pThis)
    {
    var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
    html_GetElement('f07_'+vRow).value = parseFloat(html_GetElement('f06_'+vRow).value, 10) * parseFloat(html_GetElement('f05_'+vRow).value, 10);
    }
    

    Please let me know if this worked for you.

    Thank you
    Sandro

  • Problem creating a hierarchical tree in the generator of forms [problem with the query]

    Hi all

    I have 2 tables.

    box (box_id, box_name)

    point (item_id, nom_element, box_id)

    There are several items in a box.

    I want to create a HIERARCHICAL tree to display items that are present in each box.

    AS:

    | - BOX1
    | |-ITEM 1
    | | - ITEM 2
    |
    | - BOX2
    | |-ITEM 1
    | | - ITEM 2

    I'm trying this query:

    SELECT-1 State, box_name, box_id, "icon" val
    in zone b, point i;

    I don't know what the value for upgrade, I don't know how the code part "connect by front.

    Could you please tell me?

    Michael.

    PS. then I'll eventually use this query in the form designer.

    Hi MichaelR

    I'm getting the FRM - 47321 error in forms Builder...

    That's why In order to fill a tree, the select must recover 5 columns:
    STATUS, LEVEL, LABEL, ICON, u-VALUE should be noted this command in your application, this will resolve the error and pls notice that the...

    My advice is to use the online help in your form generator to help u in this...

    Initial state : number
    Node tree depth : number
    Label for the node : varchar2
    Icon for the node : varchar2
    Data : varchar2
    

    This must be a TIME NEW FORM INSTANCE trigger to fill your tree...

    Another thing why do you think of building your tree I've done here in the following example... Pls take a look here....

    I hope this helps...

    Kind regards

    Amatu Allah.

  • I have problems with the form widget. When I created my forms, I need to leave out the line, one email because my client does not want the message line and two because those who have tried to fill the online form cannot submit because that box "email".

    I have problems with the form widget. When I created my forms, I need to leave out the line, one email because my client does not want the message line and two because those who have tried to fill the online form cannot submit because the 'email' box keep rejecting their email address valid. And I just tried to remove the line in my form and it does not allow me to delete or to mark it as not necessary either.

    Currently, there is no way around the field email forms of the Muse. Another option is to have a look at Jotforms or another third-party provider of shape that Muse has widgets for.

Maybe you are looking for

  • There are older versions of garageband?

    There are older versions of garageband?

  • Langer sign Skype ID

    Hey, when I made my account, I put my full name as my Skype sign in ID and I would change it. Someone found my site with information and I want to prevent that does not happen. Thank you.

  • Pavilion 17: Off Hp Pavilion system

    Help, please My system was found distraught when my son entered the incorrect password, disabled people's code: 99498200HP Pavilion 17 notebook pc Thanks in advance

  • Disk failure of USB storage while loading XP Pro

    Whenever I insert a 4 GB drive particular usb into any usb port on WinXP on any machine, I get: Windows - delayed write failed Windows was unable to save all the data for the file \...\DP (1) 0-0 + e3. ETC...Something about the usb drive throws this

  • Error code: 8024200d (cannot install SP2 KB948465)

    already addressed automatic "delayed" associated with the area of the BITS in administrative tools.  Got a little further along the bu eventually, then this second error 8024200d code now appears and is labelled unidentified.