form/ php?

Discussion in 'Web Design' started by mattiasb, Jan 15, 2009.

to remove all ads.
  1. mattiasb

    mattiasb New Member

    Messages:
    38
    hello, I'd just like to know if there's a way of constructing simple forms which a customer fills in and then are sent to an email, without php?
    what I've read this far you need php for all forms, or am I wrong?
    Is there anyone who knows, I'll be very happy for an answer!
    I just need a simple form to be sent to an email.
     
  2. Matthew

    Matthew New Member

    Messages:
    57
    I'm not really sure, but I don't think there is any easy way to do it without PHP. Why don't you want to use PHP?
     
  3. jnjc

    jnjc New Member

    Messages:
    493
    If it's just a "Contact Us" page, I think there are site that will provide the server for you and you just put a piece of HTML that they supply on you page and it handles the rest. There was a thread sometime ago about it but I can't remember the actual site name.

    If it's more complex then that then you will need some form of server side script to do this.

    HTH,
    JC
     
  4. mattiasb

    mattiasb New Member

    Messages:
    38
    Hello Matthew, I just dont know how PHP works, that's all. :)
    but I have looked into it. Do I have to install PHP on the server in that case? Or how does it work? I also downloaded Matt's CGI form mail from http://www.scriptarchive.com/formmail.html
    but I didnt work it out..
    am grateful for any help! :)

    / Mattias
     
  5. Matthew

    Matthew New Member

    Messages:
    57
    Hey,
    What does you current hosting company and plan provide you with?

    M.
     
  6. mattiasb

    mattiasb New Member

    Messages:
    38
    I think they host php and cgi, am on my way to investigate..
    do you know how this cgi works? Have no idea what to do with the scripts I downloaded, and can't find a how-to-do either..
    / Mattias
     
  7. Matthew

    Matthew New Member

    Messages:
    57
    Using PHP, you can do this: http://www.phpeasystep.com/phptu/8.html

    It is very simple to understand, contact form. Read and create that and test it out etc. Where you looking for a contact form, or something more detailed?

    M.
     
  8. mattiasb

    mattiasb New Member

    Messages:
    38
    Thanx for the link,
    they need a form where people can say what kind of information they want, and maybe a scroll-list, in the first stage.
    I probably have to upload the formfile on the server and try it to see if it works, right?
    / Mattias
     
  9. Matthew

    Matthew New Member

    Messages:
    57
    Once you have created both of the files you then need to upload them both. Then you point your browser to www.yourwebsite.com/contact.php Or where ever you uploaded both of the files.

    So does your host have PHP. Can you tell us who your host is, if your not sure?

    Thanks,
    M.
     
  10. mattiasb

    mattiasb New Member

    Messages:
    38
    Hi, you say the 2 files? which is the second? :)
    the host is 1and1.co.uk, and the account is upgraded to cgi and php
     
  11. Matthew

    Matthew New Member

    Messages:
    57
    Did you read the full tutorial?

     
  12. Matthew

    Matthew New Member

    Messages:
    57
    Also which plan are you on with that hosting? The cheapest one doesn't have PHP.
     
  13. mattiasb

    mattiasb New Member

    Messages:
    38
    yes the domain was just upgraded to php and cgi.
    ok, I don't think I've seen that 2 php-scripts are needed before..
     
  14. LouTheDesigner

    LouTheDesigner New Member

    Messages:
    506
    this is strange. I just tried using it, and I get the confirmation that the e-mail has been received (the echo), but I haven't yet received the e-mail. It's been about 10 minutes. I double checked and the e-mail is correct and in the correct position.
     
  15. Matthew

    Matthew New Member

    Messages:
    57
    I have never actually used that one before, it is just a good example. There are many others on the internet.

    I will try that one now, and give you a link to it, to see if it works or me.
    M.
     
  16. LouTheDesigner

    LouTheDesigner New Member

    Messages:
    506
    Okay. After an hour of testing with no results, I thought it might be that the mail() function doesn't work with gmail or yahoo mail; and I was right.
     
  17. Matthew

    Matthew New Member

    Messages:
    57
    No it doesn't, which is why it works when I use [email protected]. Though it just appears blank. Give me a sec, I have a form that actually works this time :)
     
  18. Matthew

    Matthew New Member

    Messages:
    57
    Ok from here. I have created a contact form, which is working nicely.

    The one which I put on my website can be found here.. I have changed a few of the things like the drop down menu to make is slightly related to what you want it for.

    So to show you, if I fill in the form like this:

    http://img105.imageshack.us/img105/26/formmk9.jpg

    After it has been submitted I recieve an email straight away and it looks like:

    http://img70.imageshack.us/img70/2214/contactformwf2.jpg

    It is basic but it works nicely.

    You can easily edit how things are formatted and what options you can have when people are using the forum, like the drop down menu for example.

    If you want I can customize one for you to exactly suite your needs, just give me a yell. Of course this can also be put into existing pages.

    Cheers,
    M.
     
  19. mattiasb

    mattiasb New Member

    Messages:
    38
    Hi, thanx a lot for your answer. Though I wonder where I will put the recipient email adress?? I can't find it in the code.
    Or is this where that second file comes in?? :)


    / Mattias
     
  20. Matthew

    Matthew New Member

    Messages:
    57
    Look, if you want me to I can do it for you, just give me your email and then we can try it out.

    I'm not sure if it will work with hotmail, or other free emails. Currently it is working with my [email protected].

    M.
     

Share This Page