Problem with the form - to-email.php

Can someone please tell me why the "shape-to-email.php' code below does not show the details of the sender when the message reached inbox to there other end?" The details of the source of the email is empty, as the email is always displayed in the Inbox of spam. Im guessing that is the result of there being no present details.

<? PHP

$name = $_POST ['name'];

$email = $_POST ['email'];

$message = $_POST ['message'];

Validate first

If (Empty ($Name) |) Empty ($email))

{

echo "name and email are required".

"exit";

}

If (IsInjected ($email))

{

echo "value of Bad email!";

"exit";

}

$email_from = ' clockdoctors.co.uk';// < == update e-mail address

$email_subject = "message from doctors clock Web site";

$email_body = "name of visitors: $name.» \n » ;

$email_body. = "e-mail: $email.» \n » ;

$email_body. = "message: $message.» \n » ;

$to = " [email protected] ";// < == update the email address .

$headers = "from: $from\r\nReply - to: $email";

Send the email!

mail ($à $objet_message, $email_body, $headers); / / fact. Redirect to the thank you page.

fact. Redirect to the thank you page.

header ('Location: http://clockdoctors.co.uk/Thanks.html');

Function to validate against any attempt to electronic fuel injection

function IsInjected ($str)

{

$injections = array ('(\n+)',

'(\r+)',

'(\t+)',

"(% 0 A +) »,

' (0 % D +)',

'(% 08 +) »,

« (% 09 +) »

);

$inject = join ('|) (', $injections);

$inject = ' / $injecter / I ";

If (preg_match ($Inject, $STR))

{

Returns true;

}

on the other

{

Returns false;

}

}

? >

Change this line:

$email_from = ' clockdoctors.co.uk';//<== update="" the="" email="">

To do this:

$from = ' [email protected]'; / /<== update="" the="" email="">

Tags: Dreamweaver

Similar Questions

  • Problems with the form of course php

    Everything about my form works very well except when you hit the Send button, it takes you to a page instead of my page "Please fill out the form. Here is the link to the form:

    http://www.vintagebycrystal.com/pages/form.htm

    It's my script process (it's very simple because I am not that talented with php):

    Vintage Crystal < title > < / title > <? PHP

    $name = $_POST ['name'];
    $address = $_POST ['address'];
    $email = $_POST ['email'];
    $phone = $_POST ['phone'];
    $insurance = $_POST ['insurance'];
    $payment = $_POST ['payment'];
    $comments = $_POST ['comment'];

    $recipient = "[email protected]";
    $subject = "westwood investigation."

    $message = "name: $name \n";
    $message. = ' address: $address \n ";
    $message. = "e-mail: $email \n";
    $message. = ' Phone: $phone \n ";
    $message. = ' insurance: $insurance \n ";
    $message. = "payment: $payment \n";
    $message. = ' Comments: $comments \n\n ";

    $headers = ' to: my form \n ";
    $headers. = "reply-To: $email";

    mail ($Recipient, $Subject, $message, $headers);
    Header ('Location: http:vintagebycrystal.com/Pages/thankyou.html "");
    "exit";

    ? >


    This is the link to the submit button is supposed to send to you:

    http://www.vintagebycrystal.com/pages/thankyou.html

    I am sure that the problem lies in line 26, i.e.:

    Header ('Location: http:vintagebycrystal.com/Pages/thankyou.html "");

    Can someone help me understand what the problem is?


    -Crystal

    This is because you have something before output to the browser, the
    Header(). If nothing is output to the browser (including spaces or line
    breaks) then the headers are closed and the command of the header() function don't work, then
    you get the error.

    Looking at your code again (I missed it the first time), I see you
    have the title of the page above the PHP code, and it is passed before the
    order header at the origin of the problem.

    Move theVintage Crystal(and any other HTML or output
    You may need) below the PHP code and it should work.

    --
    Gareth
    http://www.phploginsuite.co.UK/
    PHP Login Suite V2 - 34 server behaviors to build a complete system of connection.

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

  • When we publish a Web site create in MUSE, the server must be linux? Please let me know because I have the problem with the form works... now the server that I use is the window...

    I am trying to publish in my domain on windows server, but I have a problem with the form...

    The server must be linux to work the form?

    Thanks in advance for your help...

    Thank you Brad... but how can I understand if a Linux server support? I try to do something in particular?

  • I have a problem with the receipt of emails from Mozilla to a different address but not my only recorded

    I signed to & & checked my email address but still get the emails sent to [email protected] not to [email protected] that has been verified in my profile.

    Hi andy,.
    Fix. After the cancellation of a subscription, signing up with the correct e-mail will solve the problem.

  • Problem with the form field.

    well don't know what to do with it. First of all, I removed all the contacts on the site of BC. So, right now, there is no customer in the CRM.

    But when I go to create a web form under the TITLE instead of having simply Mr., Mrs., etc... I have a complete list of email addresses. I can clean manually if I paste the code of the form on the page but don't want to do that every time. Any ideas as to where this source is shooting?

    webform sample.jpg

    Go to the CRM, go to a client or to go make one.

    Click on the square next to the title field - this allows you to create/edit and delete entries.

    In terms of how it happened - when you have imported you imported the names in the wrong column and was in the title column.

  • problems with the form created in muse for use in ecommerce business catalyst Fund

    I am trying to create a form to use with my BC site hosted for the trade module extraction

    I created an example of form - but whenever I update the site she replaces the form that I modified in British Colombia

    I checked the no export option not the page that the form is placed on, but it always replaces...

    Hello

    any online form that is not used so far, will be removed by the Muse. To solve this problem,

    (1) create the purchase form online with details of payment in British Colombia.

    (2) model add-on Goto-> online store-> register buy arrangement and place the form online.

    3) go to the URL of the test page and submit an entry test.

    (4) return in the end an order will be created.

    (5) then publish the site through Muse.

    Muse never removes an online form that has been used for the presentation.

    Let me know if you have any question.

  • HELP problems with the FORM submission!

    I got this form in HTML and I want to act! but it doesn't work? In HTML, the code looked like this:

    < name of the form = "logmeinsupport" action = "https://secure.logmeinrescue.com/Customer/Code.aspx" method = "post" >
    < table >
    code < tr > < td > enter your 6-digit PIN code: < table > < td > < input type = "text" name = value "Code" = "/ > < table > < /tr >
    < tr > < td colspan = "2" > < input type = "submit" value = "Connect to technician" / > < table > < /tr >
    < /table >
    < / make >

    I created a button in Flash and a field to enter the code but it does not work. Does anyone know how I would like to convert it to action script code? Thank you.

    OK thanks for all your help!

  • What is the problem with the form of code signing?

    I would ask code signing for BB10, I go to https://www.blackberry.com/SignedKeys/codesigning.html BUT when I choose sign app for BB10, it always go to the BlackBerry ID login page

    A few months ago anymore, at least not in the way you have used for a signature key. Is now complete with your BlackBerry ID now, hence the need to connect. It used to be a sticky thread at the top of the Council of native development, but I see that they removed that now.

    Go here.

  • Problems with the form of task &amp; Wacom?

    I'm new to Illustrator and I have a MacPro 2009 running OS 10.9.4 with Wacom driver 6.3.8 - 2 and when I go in the Blob brush controls, all menus popup to size etc only fixed and Random active and all other items are grayed. It's the same question weather I'm on CC or CC 2014. I tried to replace the file pref for CC 2014 and it made no difference. Is there a setting I'm missing?

    Thank you!

    Edit: Forgot to mention pen pressure option works fine in Photoshop CC 2014

    This is the latest driver for Wacom?

    Have you tried running the utility of Wacom and remove preferences?

  • Problem with the redirection email Yahoo after installation of nine updates

    Original title: problem with transfer of emails after having installed new updates

    I installed the windows updates nine but a few days ago since then have had a problem with the redirection of emails coming into my inbox on my BT Yahoo mail account. When I get the Outbox until you find at least half of the time the "add recipients" does not work despite all the efforts, which means that I would put in manually email addresses (long and painful). My windows mail forwarding system seems to work OK. -Wood Marcus * address email is removed from the privacy *

    Hello

    1. What were the updates that have been installed on your computer?

    Check out the following link.

    See the Windows updates are installed

    http://Windows.Microsoft.com/en-us/Windows-Vista/see-which-Windows-updates-are-installed

    2. don't you configure e-mail account Yahoo BT in any e-mail client? Example: Outlook, Windows Mail.

    3. you use Internet Explorer to access BT Yahoo mail account?

    If you have configured the account BT Yahoo mail on the mail client, post of additional information to help you more away or well you could contact Yahoo Mail Support forums to help you best. Check out the following link.

    http://answers.Yahoo.com/dir/index?link=list&SID=396546091

  • Problem with the Login user and scroll form

    Hi all, I have a problem with the form for the user to login to my page.

    There is a connection user transaction and the cursor automatically appears in the tefxfield of connection, which causes the page to scroll automatically, so the banner is completely displayed.

    I tried with the blur() and javascript function, but it simply doesn't. Anyone know a solution to this problem?

    Just came across the following in the file 'includes/tng/scripts/FormValidation.js ': code snippet

    if (typeof KT_FVO['kt_login_user']!='undefined') {
                   var user_name_ctrl = document.getElementById("kt_login_user");
                   if (user_name_ctrl) {
                        user_name_ctrl.focus();
                   }
              }
         }
    

    If I understand correctly, here´s where ADDT´s "kt_login_user" of field entry will focus on loading the page, so I think basic is enough to disable the line...

    user_name_ctrl. Focus();

    .. .to add a first comment in javascript:

    user_name_ctrl. Focus();

    See you soon,.

    Günter

  • Problem with contact form

    I don't have the same experience in the Web design, but I create a using Adobe Muse. Everything works on the site expect Web contact form. If I use a gmail account I get the form but or my domain email I get nothing. I am in contact Godaddy for help but they don't know what to do...

    The domain is ensmarble.com. Can someone help on this topic?

    What should I do or how should I solve this problem?

    Thank you.

    Hi filiper79629728,

    There is an easy solution if you use GoDaddy's Web hosting.  Just a warning, this only works if you use GoDaddy Web hosting and forms of the Muse.  This isn't a problem with Muse for as long as it is a setting that needs to be adjusted on all that the host you are using.

    1. Place the shape in the Muse. Make sure to add the correct settings, that is, the e-mail address that will receive the forms.
    2. Next step is to navigate to your cPanel on GoDaddy.  This is where you manage your web hosting.
    3. On the main page of cPanel, scroll up to where it says ": Email".
    4. Click on "MX", which is located just below the 'accounts '.  This is the mail server setting.  By default, GoDaddy assume you are using a GoDaddy mail account.
    5. Make sure "Remote mail server" is checked on and that "Local mail server" is turned off.
    6. Your form should now be functional.

    The problem with the forms of the Muse and GoDaddy is that GoDaddy assumes that you will welcome your emails via GoDaddy.  If you have configured an e-mail address for your shape in the Muse that isn't an e-mail address hosted GoDaddy, GoDaddy and then do not accept by default. You must give permission to GoDaddy to send a form to what GoDaddy considers that an email "at a distance".

    I hope this works for anyone who has struggled with form when using of Muse forms that are hosted on GoDaddy servers.

    Thank you

    Ankush.

  • Problems with the contact form

    Good day to you all,.

    im a total newbie-muse.

    That said: I have some problems with a contact form I've tried to insert into my homepage.

    When I try to download it via ftp to our server muse tells me that there are some problems with the configuration of PHP.

    In addition to the contact form, the site works very well.

    I tried to change the version of php on our server at 5.6, but it still doesn't work.


    Any ideas?

    Thanks in advance and greetings from the Germany.

    You can consult this document: Troubleshooting Muse form Widgets used on the third... | Adobe Community

  • My customer is having a serious problem with the Contact form Widget

    My Client is to have a serious problem with the Contact form Widget that I can't seem to figure out how to fix.

    I created a website for a client and inserted a widget of Contact form on the "Contact us" page Whenever someone uses the form, e-mail receive my client shows my e-mail address as the sender. So when they "meet" the email, the response is sent to me and not the person who sent the original message. This creates a major problem in that I get flooded with answers e-mail while my client's potential customers go without a response.

    When I look at ' Site Manager > email system > Workflow information > e-mail address on the site administration Console, it displays my e-mail information. This is what needs to be changed?  If this is the case, what needs to be placed in this field for the email address of my client receives presents information email senders in the field "from".  My client wants to be able to click on reply and the message sent to the right side. They would be very angry if should be cut and past shippers Correo electronico of the body text on all the contacts they receive.

    Their feeling is that if I can't find a way to make the contact form works as it should, then there is no need for them.

    Can someone help me understand this? I really don't want to disappoint my first client.

    Congratulations for your first customer! =>

    Looks like you can have your email in places where your customers email should be.

    Here are the places you need to change your e-mail address.

    First adjust the answering of your web form is your customer email. Screenshot: http://screencast.com/t/YWiZZ30E0jE and http://screencast.com/t/u4t69anTLR

    Second set Emails to come your clients e-mail system. Site management > system email > set default "from" e-mail. Screenshot: http://screencast.com/t/EAr2sfXk

    I always go through each email system and check the e-mail address after you set the default value. I found that it doesn't always change them for some reason any. Note: If you are on a lower to webCommerce plan your list can be shorter than what is shown.

    Make sure that the email you the list of customers is also an email they want in public.

    Also provide information on the TSA that thetrickster888 is good information.

    I hope this helps.

    Lynda

Maybe you are looking for

  • I recently received a print order and wish to order others.  How?

    I recently received a print order and I'm very happy with it.  Now, I would like to order more.  I have to go through the same procedure (ie. by selecting format, select photos, creates the text, etc.) or is there a simpler and easier way to proceed?

  • Satellite M300 - how to use the recovery disk

    Hello world I was wondering how to use the 2 recovery discs that I burned recently if I wanted to fix my USB ports (as seen in my Toshiba M300 - wire to USB ports) Any suggestions?

  • Arrow black constantly on tracking services. This drain my battery?

    HI, I recently bought a watch of rock (yes I know, not expensive mans iPhone), iphone app uses constantly in the background location services and black filled in arrow is constantly on the screen. Will this deplete my phones battery faster? Thanks fo

  • Errors when I try to use the WLAN on Satellite M30X

    Hi, I have trouble with my WIFI. I use a Satellite M30X 124, running on Windows XP. I installed a WLAN router.Sometimes it works, sometimes it doesn't. Two different errors: the system starts, but fails when obtaining the IP address. Sometimes the WL

  • Envy 17 3270NR: Envy 3270NR - mouse problems

    Help, please! the touchpad on my envy 17 is so imprecise / jumpy.  I can move the pointer in the right place, but when I click on the mouse button it jumps off the side and selects something else. This problem can be resolved via a patch or what I ne