Jump to content

Ricklord

Members
  • Posts

    60
  • Joined

  • Last visited

    Never

Posts posted by Ricklord

  1. Hi Guys,

    Getting an error in my code that netscape does not support the following tag.

    [code]background="image.gif"[/code]

    I am using tables rather than div on this one and want the table background to work in netscape navigator 7.0.

    Anyone know what i should use?

    Cheers in advance

    Rick
  2. ok sorry if im being 100% thick which i probably am but ive added the

    [code]$header = "From: {$name}<{$email_field}>";[/code]

    it might be in the worng place though????

    does it need to be above the $to and $subject or do i need to change these to

    [code]$header = "To: rick@creativecogs.co.uk>"
    $header = "Subject: rick@creativecogs.co.uk>"
    [/code]

    I don't understand php that well so thats probably wrong. could you let me know where im going wrong?

    Rick

    Thanks again
  3. just read the other 2 posts about having the from field as the email address or setting it to show the web address.

    Reason i want it to show me the email address is so i can have an autoresponder going from my webserver. dont know if this is possible with php but just thought if i can get the email address to show up then my auto responder on my web server can do this for me.

    Rick
  4. Hi Again,

    got the header in the right place and now forwarding on to a html page so thanks.

    With the from field it is just coming up blank now any suggestions? or do i need to incorporate a validator before it will work?

    this is my script now

    [code]<?php
    header("Location: http://www.creativecogs.co.uk/thankyou.html");

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

    $to = "rick@creativecogs.co.uk";
    $subject = "Web Design Online enquiry";


    $header = "From: {$name}<{$email_field}>";
    $name_field = $_POST['name'];
    $email_field = $_POST['email'];
    $telephone_field = $_POST['telephone'];
    $message = $_POST['message'];

     
    foreach($_POST['check'] as $value) {
    $check_msg .= "Checked: $value\n";
    }
     
    $body = "From: $name_field\n E-Mail: $email_field\n Telephone: $telephone_field\n $check_msg Option: $option\n Message: $message";
     
    echo "Data has been submitted to $to!";
    mail($to, $subject, $body, $header);
     
    } else {
    echo "failed please try again";
    }
    ?> [/code]

    Cheers

    Rick
  5. Ok will do a search for the validator.

    Any idea on how to forward onto a html page rather than the echo command i am using? I have searched for this but had no look, dont even know if im typing the right thing into google.

    Also having the email address entered come through as the sender in my inbox?

    Cheers
  6. sweet!!! thanks!!!

    i did look at the but becuase it was going through to the contact.php page thought the submit button was working fine and assumed it was a problem with the php script.

    added <<<<how do you mean vaildate the email address, is this a few lines of code i need to add?>>>>>>

    But thanks, its working now.

    How do i get the email address entered to come up as the sender in my inbox, it just says the email is from creativecogs.co.uk???

    and finally how do i get it to go to a thankyou.html page after the script is executed instead of the echo command???

    thanks again for spotting that submit error and so quickly.

    Rick :):):):)
  7. Hi peeps,

    I don't usually ask questions in forums, but this one has been bugging me for the last few hours and ive read so many tutorials on how to do the contact us form but it just isnt working properly.

    please view my html side at: http://www.creativecogs.co.uk/testform/contact_us.html

    The script is available at: http://www.creativecogs.co.uk/testform/contact.phps

    I dont know why but this form just wont work it was working at the strt when i tested it but as i have put it into my actual site and added a few check boxes it doesnt work.

    When the form is submitted it just goes to the error text i have put into the php script.

    Im not a coder so please go easy on me. Ive tried to put different parts out of different scripts into one which is why it might not be working.

    If anyone can help i would be most grateful

    Cheers

    Rick
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.