1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

A contact form that doesn't use an e-mail client

Discussion in 'HTML & Website Design' started by tayiper, Oct 8, 2007.

  1. tayiper

    tayiper Active Member

    Messages:
    421
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #21
    For editing my .html documents I use EditPad Lite (because of its use of tabs, i.e. multi-document editing), while otherwise I use Metapad as a replacement for Notepad ...


    P.S. - Oh and yes, I am too 28 years old!!


    tayiperSEMrush
     
    tayiper, Oct 14, 2007 IP
    SEMrush
  2. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    434
    Best Answers:
    0
    Trophy Points:
    0
    #22
    I use Edit+ myself (http://www.editplus.com). Next question then I guess would be does your hosting provider support PHP?
     
    Dan Schulz, Oct 14, 2007 IP
  3. tayiper

    tayiper Active Member

    Messages:
    421
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #23
    Oh well, today I finally went to my friend's girlfriend's house, uploaded the (of course modified) form, and yeah, of course it works: "kontakt.html", so in the end it looks like that the reason for the form not working in case of my two test-files: "contact-test1.html", "contact-test2.html" is that apparently my "50webs"free-host indeed doesn't support PHP.


    tayiper
     
    tayiper, Oct 15, 2007 IP
  4. Hoyts

    Hoyts Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #24
    simply go to google and type in email script
     
    Hoyts, Oct 15, 2007 IP
  5. tayiper

    tayiper Active Member

    Messages:
    421
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #25
    Well, we already passed that particular "phase"; if wouldn't hurt if you would check the whole thread first before replying ...


    tayiper
     
    tayiper, Oct 16, 2007 IP
  6. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    434
    Best Answers:
    0
    Trophy Points:
    0
    #26
    If you're going to look for free hosting that supports PHP, check out www.awardspace.com - not only does it offer free hosting (similar to your current provider, but with support for things like PHP and MySQL) but if you want to keep the free hosting and point your own domain name at it, you can do so as well. :)
     
    Dan Schulz, Oct 16, 2007 IP
  7. PHPGator

    PHPGator Moderator Staff

    Messages:
    4,437
    Likes Received:
    133
    Best Answers:
    0
    Trophy Points:
    260
    #27
    tayiper, rather than trying to filter though the hateful / non-helpful comments, i figured i'd just throw in a response. If you need help getting your form working let me know via PM. :)
     
    PHPGator, Oct 16, 2007 IP
  8. HDaddy

    HDaddy Active Member

    Messages:
    287
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #28
    I was looking for a feedback form and stumbled in to this http://www.emailmeform.com/. I found it very easy to use. It has a letter protection if you want to.
     
    HDaddy, Oct 17, 2007 IP
  9. tayiper

    tayiper Active Member

    Messages:
    421
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #29
    Hey Dan Schulz, thank you soooo much for letting me know about this free host!!


    tayiper
     
    tayiper, Oct 17, 2007 IP
  10. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    434
    Best Answers:
    0
    Trophy Points:
    0
    #30
    No problem.
     
    Dan Schulz, Oct 17, 2007 IP
  11. tayiper

    tayiper Active Member

    Messages:
    421
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #31
    OK folks, I am very sorry, but I have further questions; in fact one is related to problems with contact form that doesn't use an e-mail client (the on-topic one, and the most important), and the other one to contact form that does use it ...


    1. You see, after Dan Schulz recommended to me to try the free-host at www.awardspace.com in this very same thread, I then created a completely new website, which is just a slovenian version of the previous one; see its link below under "2.".


    - As first on my new website's http://tadejpersic.awardspace.com/kontakt.html page, after attempting to send the test message I get this text (or rather, I am directed to this "link") below:

    http://tadejpersic.awardspace.com/?name=test&email=soever@email.si&comments=test#


    - And similarly on the page kontaktiraj-me.html after I try sending the test message I get this similar text below:

    http://tadejpersic.awardspace.com/ostalo/?index=&name=test&email=soever@email.si&comments=test #

    Note however that I don't use the file as it is originally named, i.e. I've renamed it from "FormToEmail.php" to "kontakt.php" (and of course, changed the <form action= to point to that file instead), but AFAIK this shouldn't cause problems at at all!!


    2. I will use this opportunity to also ask a question about that other contact form that does use an e-mail client, which I was using since a week ago or so on all my various websites. And although I remember it actually working once back then on my main computing-related website's http://tadej-ivan.50webs.com/other/about.html page (it still sort of works, i.e. it opens the http://tadej-ivan.50webs.com/script/thanks.html page), if I try now, I don't receive any e-mail message.


    - Similarly to above under "1." on the http://tadejpersic.50webs.com/contact.html page after submitting it I get this text below:

    http://tadejpersic.50webs.com/?YourName=test&YourEmail=soever@email.si&YourMessage=test/

    (or if I don't use it like that but through clicking the button (i.e. through that special h=560,w=440 in size window), it just opens the "index.html" page)


    - And on the http://tadejpersic.50webs.com/stuff/contact-me.html page (which is under /stuff/ sub-directory as you can see), I am directed to this "link" below:

    http://tadejpersic.50webs.com/stuff...t&YourEmail=soever@email.si&YourMessage=test/

    But beside that, the following error-message is displayed in the browser's window:

    Therefore I am asking you to visit at least some of the pages linked above (and possibly also check out the source-code; it's very straight-forward), and try sending a message to see the results for yourself.


    P.S. - Oh and one totally unrelated question (if I may): why after hitting the "bookmark it" button (or clicking the "contact" or "search", it doesn't matter) I am always "redirected" to for example these: http://tadejpersic.50webs.com/?x=8&y=15&index=# two: http://tadejpersic.50webs.com/?x=5&y=9&index=# (note that the numbers are randomly, ehm, let's say "generated") strange pages??!


    tayiper
     
    tayiper, Oct 18, 2007 IP
  12. tayiper

    tayiper Active Member

    Messages:
    421
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #32
    After all it looks like that though Awardspace free hosting package/account does indeed support PHP, it unfortunately doesn't support the "Mail()" function; see for instance the Mail() thread (and there're others too related to this particular issue) under the PHP, ASP, MYSQL and Other Programming Languages section of Awardspace forum ...


    But anyways, the question regarding that other type of e-mail contact form (the one that doesn't need PHP support) that's also not working still remains unanswered!!


    tayiper
     
    tayiper, Oct 30, 2007 IP
  13. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    434
    Best Answers:
    0
    Trophy Points:
    0
    #33
    Well doesn't that just suck... I was sure they supported the mail() function.
     
    Dan Schulz, Oct 30, 2007 IP
  14. tayiper

    tayiper Active Member

    Messages:
    421
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #34
    OK, I finally think that I know the reason for that other (non-PHP) e-mail form not working, i.e. it's the other code that's causing the form to fail on sending an e-mail!! Although it's true that I don't understand why exactly this other code is causing it ...


    1. You see, when I was once again testing the code off-line (i.e. not connected to the Internet), I soon noticed that the "pure code" doesn't cause it, but as it is on my page (i.e. the form of it and all addtitional code), it does. First I thought that all this is fault of <base href="..., but then I realised that removing it doesn't fix anything at all.


    The screenshot of IE's error prompt:

    [​IMG]


    2. Strangely, then if I removed only all the "meta" (and other) stuff between the "</title>" and "</head>", that error above didn't popup anymore, and similarly to when I was testing the form online, I was redirected to this location:

    file:///B:/Working/Reactor/Operator/contact-me.html?index=&YourName=soever&YourEmail=soever@email.si&YourMessage=soever@email


    3. And finally, if I removed all the other non-absolutely-needed stuff (commented-out text of the Creative Commons license, Google Analytics and StatCounter code etc. etc.) so that only the main/required tags and a form remain, only then I get that from the screenshot below.


    The screenshot of notice on submit:

    [​IMG]


    Anyway, finally after that I was testing it even further (by removing the parts of code one after another, and trying out the form in between), I am now 100% sure that what's causing all this is the following code (i.e. it's yet another form/more forms):

    <form action="#" /><input type="image" src="save.png" title="bookmark page" onclick="bookmark('contact.html','Tadej Persic\'s website | contact')" />&nbsp;<input type="image" src="search.png" title="search site/web" onclick="window.open('search.html','search','height=560,width=440')" />&nbsp;<input type="image" src="contact.png" title="contact me" onclick="window.open('contact.html','contact','height=560,width=440')" />&nbsp;<a href="mailto:tayiper@volja.net"><img class="button" src="email.png" alt="send email" title="send email" /></a>&nbsp;<a href="index.html"><img class="button" src="home.png" alt="go home" title="go home" /></a>&nbsp;<a href="sitemap.html" onclick="target='_blank';"><img class="button" src="sitemap.png" alt="view sitemap" title="view sitemap" /></a>&nbsp;<a href="xmldata.xml" onclick="target='_blank';"><img class="button" src="info.png" alt="view xmldata" title="view xmldata" /></a>&nbsp;<a href="http://validator.w3.org/check?uri=referer" onclick="target='_blank';"><img class="button" src="xhtml.png" alt="valid xhtml" title="valid xhtml" /></a>&nbsp;<a href="http://jigsaw.w3.org/css-validator/check/referer" onclick="target='_blank';"><img class="button" src="css.png" alt="valid css" title="valid css" /></a>
    Code (markup):
    Here is the original code of the e-mail form:

    <form method="POST" action="mailto:your@email-address.com" onsubmit=window.setTimeout("location.href='YOUR_THANK_YOU_PAGE.html'",5000)>
    	Your Name <input type="text" name="YourName" size="20"><br>
    	Your Email <input type="text" name="YourEmail" size="20"><br>
    	Your Message<br> <textarea name="YourMessage" rows="6" cols="25"></textarea><br>
    	<input type="submit" value="Send Email">
    </form>
    Code (markup):
    And here the code (of the e-mail form) as it's modified by me:

    <form method="post" action="mailto:tayiper@volja.net" onsubmit=window.setTimeout("location.href='thanks.html'",5000)>Your Name <input type="text" name="YourName" size="28" /><br /><br />Your E-mail <input type="text" name="YourEmail" size="28" /><br /><br />Your Message<br /><br /> <textarea name="YourMessage" rows="16" cols="48"></textarea><br /><br /><br />To contact me, please fill the "contact form" above.<br /><br /><br /><br /><input type="submit" value="Send Email" onmouseover='window.status="Check out if you filled-in all the required fields before submitting";' onmouseout='window.status="";' /></form>
    Code (markup):
    tayiper
     
    tayiper, Nov 5, 2007 IP
  15. tayiper

    tayiper Active Member

    Messages:
    421
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #35
    /UPDATE: Well, and now I noticed that I forgot to close it (i.e. the mentioned form element) with the "</form>" ending tag, i.e. I used "<form action="#" />" instead of closing it properly with the mentioned closing tag. But this brings up yet another problem; for this one please check out the new thread that I opened here on DP forums ...


    tayiper
     
    tayiper, Nov 5, 2007 IP