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.

Tags: Dreamweaver

Similar Questions

  • 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="">

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

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

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

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

  • Problem with the currency in the form of exchange rate data

    Hi Experts,

    I have a problem in the form of exchange rate data. I created an application with several currencies (EUR, USD, INR) and I created a data form for the exchange rate. All work well, but all in am going to enter data for a given entity, then it is allowing me to enter only in local currency. I also need to enter data into its reference currency which is not possible for me. I tried the option allow multiple currencies per entity, but it does not work.

    For example: assume that the entity is in North America whose base currency is the USA but can not enter by the selection of currency local option when I select the currency like the US, is to show am only read, not able to get into the currency of the United States. But I need to enter data by selecting from the USA.

    Please help me on this.

    Thank you and best regards,
    Combot

    923621 wrote:
    I use built in currency conversion. The data that I entered the local currency saving in my base only currency, but my requirement is that the user must enter data by selecting its local currency (people of North America must select USD to enter data and Indian must select INR to enter data like that). Is it possible to like this.

    Select USD as the base currency for the North America and INR for the India (which is how it should be).

    So, whenever the user has to do the data through forms of data entry, it would be on the local currency and after the calculation is run it could fill its respective currency.

    Concerning
    -SM

  • 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

  • Problems with the construction of a tabular form manually

    Hello guys,.

    I would ask kindly for your help. I'm having a problem with the fields on a report updateble in my APEX application.

    The report I have two fields that im done with the htmldb_item function. One is the ID of the record and the other attribute that can be updated using a selection list.

    -----
    SELECT
    htmldb_item. DISPLAY_AND_SAVE (1, "TABLE".) "ID") "ID", "
    htmldb_item. SELECT_LIST_FROM_LOV (2, "TABLE".) "ATTRIBUTE", "LOV") "ATTRIBUTE", "
    THE "TABLE".
    -----

    Then I have a process that needs to update the table.

    -----
    BEGIN

    BECAUSE me IN 1.htmldb_application. G_F01. COUNTY
    LOOP

    apex_application.g_print_success_message: = ' < span style = "color: green" > attribute: ' | NVL (htmldb_application. G_F02 (i), 0). » ID : ' || htmldb_application. G_F01 (i) | "</span > ';

    UPDATE table
    Attribute SET = NVL (htmldb_application. G_F02 (i), 0)
    WHERE id = htmldb_application. G_F01 (i);

    END LOOP;
    END;
    -----

    The update can't even if the loop works fine, but the success message prints only the htmldb_application. G_F02 (i) but not the htmldb_application value. G_F01 (i). But how come doesn't work OK if loop the htmldb_application. G_F01 (i) has the value null?

    The funny thing is, that it works on my test environment, but he behaves like this on the production environment.

    Has anyone else have similar experiences?

    Kind regards
    Aleš

    Edited by: user1330618 the 21.12.2009 04:28

    Hello

    Its done.

    The record button was just redirection without submitting the page, it's him not display the message or the recording of the information...

    now, the button is present and redirect...

    Kind regards
    Shijesh

Maybe you are looking for

  • TB refuses my password - pswd is good because I can access e-mail on the web page of Yahoo from Verizon

    I use Yahoo from Verizon. Everything has worked when suddenly Thunderbird does not accept my password to give me the following error message: "sending the password failed. "Mail server incoming.yahoo.verizon.net replied: (#AUTH012) Incorrect username

  • Why do my AO create a Subvi doesn't work?

    I have a card PCI-6251. I do a simple DAQmx write the sequence by using an entry to create a task, Create Channel and clear. It works very well. When I copy/paste the task of creating, blocks of channels to create a Subvi with appropriate and all con

  • Blue screen after the recent updates of security for Windows XP SP3.

    I got following error messages "Blue screen" after the latest updates from Microsoft: 0X0000007E (0X8053355E, 0XBA4CB50C, 0 X 80000003, $0XBA CB208). I tired to run in all modes of SECURITY but still had the same problem. I ran Dell diagnostics and i

  • travel classic installation?

    I have very classic but then had to Exchange my phone.  I was hopeful the license should be part of what has been saved but he says now I'm on a trial again. Someone else had to deal with them to get a license of a S/N to another?  I'm underwhelmed w

  • Cannot change the video presentation of telepresence

    When I join a telepresence SX20 one of our WebEx MeetingCenter conferences, we are unable to choose a layout on the SX20. It uses only the small size main speaker (or split screen), with the film strip separate from participants on the lower 25% of t