html and php form

Discussion in 'PHP' started by chiller4life, Feb 7, 2012.

  1. #1
    hi everyone i m new to web designing i just downloaded a contact form from a site and i put it in a hosting space to test it out when i press submit instead of sending it opens the php file? please help with details thank u
     
    chiller4life, Feb 7, 2012 IP
  2. Joshua F

    Joshua F Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Not sure how your contact form works, but I'm guessing you have a page titled contact.html(example), and inside the form you have which would tell it to go to send.php when the form is submitted. Since html files can't send emails or anything like that it would have to go to the send.php file to actually work.
    <form action="send.php">
    HTML:
    (Once again an example)
     
    Joshua F, Feb 7, 2012 IP
  3. ezprint2008

    ezprint2008 Well-Known Member

    Messages:
    611
    Likes Received:
    15
    Best Answers:
    2
    Trophy Points:
    140
    Digital Goods:
    1
    #3
    Did you steal the code off the view source? if so , you're missing the WHOLE code that actually sends and handles the email form. The form alone won't do anything.
     
    ezprint2008, Feb 7, 2012 IP
  4. chiller4life

    chiller4life Member

    Messages:
    108
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #4
    no i got it from css-tricks.com <<< something like that they have the whole code snippet
     
    chiller4life, Feb 8, 2012 IP
  5. moon_gfx77

    moon_gfx77 Active Member

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #5
    you need to customize your form and it design in proper way, but it is required php knowledge
     
    moon_gfx77, Feb 8, 2012 IP