Results 1 to 6 of 6

Thread: A Web form not working properly

  1. #1
    Join Date
    May 2008
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default A Web form not working properly

    Hello,

    I have a website and a form page that I wanted viewers to fill in their details like Name, address, email, & comment and when they click on the send button it will come to my email address ie felix.kondon@gmail.com

    It's working ok BUT the actual message is send as an attachment (postdata.att) if i have enctype = "Multipart/form-data". But if I have enctype = "text/plain" Iam recieving a message as "message_body".

    My big issue is iam recieving the email ok but I can't see the actual comment/message.

    Please assist me. If you want i can give you the simple code.

    Many thanks.
    Felix Lenep.

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Quote Originally Posted by Felix K Lenep View Post
    Please assist me. If you want i can give you the simple code..
    Yes, please. We're not mind readers Post your code and someone will help you figure out what's going on here.

  3. The Following User Says Thank You to Medyman For This Useful Post:

    Felix K Lenep (05-08-2008)

  4. #3
    Join Date
    May 2008
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Smile

    Hi
    Thanks for your comments. The code is as follows: As i said iam recieving email from users through the email below but I can't see or read the actual message.
    Thanks, fklenep.


    <script>
    function update_message_body ()
    {
    var username = document . input_form . username . value;
    var comment = document . input_form . comment . value;
    var email = document . input_form . email . value;
    document . proxy_form . message_body . value =
    "Greetings.\n"
    + "\n"
    + "I have a comment for you. It is:\n"
    + "\n"
    + "\t" + comment + "\n"
    + "\n"
    + "Sincerely,\n"
    + username + "\n";

    return true;
    }
    </script>

    <form name ="proxy_form"
    method ="post"
    enctype ="text/plain"
    action ="mailto:felix.kondon@gmail.com?subject=Your New Village Regislation Bill"
    onSubmit="return update_message_body ();">
    <input type=hidden name="message_body">
    <input type=submit value="send mail">
    </form>

  5. #4
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    You might want to give this a read. The way you're doing it is not recommended at all.

    Do you have access to PHP on your server?

  6. #5
    Join Date
    May 2008
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Smile

    Hi thanks for your reply.

    I do not have access to the server.

    Would it be possible if you could submit a simple html code for me.
    thanks & appreciate toy time & effort.

    Felix

  7. #6
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    You might have misunderstood me. You don't need access to the server. PHP just needs to be installed on it. If you're not sure, you can run a simple test.

    Otherwise, the form you're using is fine. But as you found out from that article, there is no guarantee that the method you use will work. I *might* sometimes and might not others.

    Javascript cannot send mail. So, for reliable and secure feedback forms, you need some sort of server side language -- ASP or PHP.

    If you don't have PHP (or ASP for windows servers) you might want to look into the tons of free services around the net that will host forms for you (usually contains lots of ads). Bravenet is one I believe.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •