Feedback Form
Moderator: Moderators
- Mooncat
- Senior Member
- Posts: 11466
- Joined: Sun Dec 23, 2007 4:11 pm
- Location: Wales
- Has thanked: 81 times
- Been thanked: 72 times
Feedback Form
I want to have a feedback form, (so readers can complain) which sends an email to an account I've set up for this purpose. Page here:
http://astrocat.exactpages.com/feedbackform.html
It looks OK but it doesn't work Can anybody here see why?
http://astrocat.exactpages.com/feedbackform.html
It looks OK but it doesn't work Can anybody here see why?
I started out with nothing, I still have most of it.
Directmail scam information site: http://astrocat.proboards.com/index.cgi?
Directmail scam information site: http://astrocat.proboards.com/index.cgi?
- village idiot
- diesel demon
- Posts: 2467
- Joined: Sat Jan 21, 2006 10:30 pm
- Location: In a world of his own
- Has thanked: 104 times
- Been thanked: 104 times
- Mooncat
- Senior Member
- Posts: 11466
- Joined: Sun Dec 23, 2007 4:11 pm
- Location: Wales
- Has thanked: 81 times
- Been thanked: 72 times
It's just a simple page with some basic HTML and Javascript. Are ou using Internet Explorer?
I started out with nothing, I still have most of it.
Directmail scam information site: http://astrocat.proboards.com/index.cgi?
Directmail scam information site: http://astrocat.proboards.com/index.cgi?
- dave.m
- Deceased 07-06-2012 R.I.P
- Posts: 4989
- Joined: Tue Jun 09, 2009 4:30 pm
- Location: A Yorky in Lancashire
- Has thanked: 13 times
- Been thanked: 318 times
It opens in Firefox 3.6
The Page Info shows:
Address: http://astrocat.exactpages.com/feedbackform.html
Type: text/html
Render mode: Quirks mode
Encoding: ISO-8859-1
Security states:
Not Encrypted, the site astrocat.exactpage.com does not support encryption for the page you are viewing.
Can't help you but that is what info I got. Should a report page be encrypted?
dave
The Page Info shows:
Address: http://astrocat.exactpages.com/feedbackform.html
Type: text/html
Render mode: Quirks mode
Encoding: ISO-8859-1
Security states:
Not Encrypted, the site astrocat.exactpage.com does not support encryption for the page you are viewing.
Can't help you but that is what info I got. Should a report page be encrypted?
dave
You can always tell a Yorkshireman,
But you cannot tell him much.
But you cannot tell him much.
- dave.m
- Deceased 07-06-2012 R.I.P
- Posts: 4989
- Joined: Tue Jun 09, 2009 4:30 pm
- Location: A Yorky in Lancashire
- Has thanked: 13 times
- Been thanked: 318 times
Just tried it in IE8 (64bit) and sent a test reply.
The Status bar showed as 'Done but with errors on page' after I had sent it.
I'll try a reply using Firefox next.
dave
I have sent a reply using Firefox.
Did notice that in IE8, above the name box in the form, there was a Search box, this did not show in the Firefox version.
dave
The Status bar showed as 'Done but with errors on page' after I had sent it.
I'll try a reply using Firefox next.
dave
I have sent a reply using Firefox.
Did notice that in IE8, above the name box in the form, there was a Search box, this did not show in the Firefox version.
dave
You can always tell a Yorkshireman,
But you cannot tell him much.
But you cannot tell him much.
- dave.m
- Deceased 07-06-2012 R.I.P
- Posts: 4989
- Joined: Tue Jun 09, 2009 4:30 pm
- Location: A Yorky in Lancashire
- Has thanked: 13 times
- Been thanked: 318 times
MC,
This is how it displayed:
Sorry about the quality but I was rushing to get my brew.
The search box is only in the IE version.
dave
This is how it displayed:
Sorry about the quality but I was rushing to get my brew.
The search box is only in the IE version.
dave
- Attachments
-
- Firefox
- Firefox (Small).jpg (12.59 KiB) Viewed 3780 times
-
- Internet Explorer
- IE. (Small).jpg (5.63 KiB) Viewed 3780 times
You can always tell a Yorkshireman,
But you cannot tell him much.
But you cannot tell him much.
- Mooncat
- Senior Member
- Posts: 11466
- Joined: Sun Dec 23, 2007 4:11 pm
- Location: Wales
- Has thanked: 81 times
- Been thanked: 72 times
That is how it looks for me as well. I'll just see if any messages have been received.
I started out with nothing, I still have most of it.
Directmail scam information site: http://astrocat.proboards.com/index.cgi?
Directmail scam information site: http://astrocat.proboards.com/index.cgi?
- thescruff
- Senior Member
- Posts: 49685
- Joined: Mon Mar 10, 2008 12:46 am
- Location: Bath
- Has thanked: 360 times
- Been thanked: 3735 times
- chat_to_rich
- Senior Member
- Posts: 254
- Joined: Fri Jan 08, 2010 1:46 pm
- Location: Kent
- Has thanked: 0
- Been thanked: 45 times
I did a view source on the page and there are a few coding errors. I copied the source to my machine and changed the javascript function as below. It now pops up an email window with information from the boxes in it. I've included a bit of code form above and below the function so you can see where it fits in. Let me know if this isn't what you wanted. You'll need to reset the email address.
<html>
<head>
<title>Form</title>
<script>
function SendEmail()
{
var toaddy = 'xxmontycanal@xxoperamail.com';
var subject = 'JS Form Submission';
var mailer = 'mailto:' + toaddy + '?subject=' + subject + '&body=' +
'Name is: \n\t' + document.jsform.visitorname.value +
'\n\n' +
'%0DEmail is: \n\t' + document.jsform.email.value +
'\n\n' +
'%0DMessage: \n\n' + document.jsform.message.value +
'\n\n';
win = window.open(mailer,'emailWindow');
if (win && win.open &&!win.closed) win.close();
}
</script>
<0Catch></noscript></div></xmp></style>
<html>
<head>
<title>Form</title>
<script>
function SendEmail()
{
var toaddy = 'xxmontycanal@xxoperamail.com';
var subject = 'JS Form Submission';
var mailer = 'mailto:' + toaddy + '?subject=' + subject + '&body=' +
'Name is: \n\t' + document.jsform.visitorname.value +
'\n\n' +
'%0DEmail is: \n\t' + document.jsform.email.value +
'\n\n' +
'%0DMessage: \n\n' + document.jsform.message.value +
'\n\n';
win = window.open(mailer,'emailWindow');
if (win && win.open &&!win.closed) win.close();
}
</script>
<0Catch></noscript></div></xmp></style>
- chat_to_rich
- Senior Member
- Posts: 254
- Joined: Fri Jan 08, 2010 1:46 pm
- Location: Kent
- Has thanked: 0
- Been thanked: 45 times
- Mooncat
- Senior Member
- Posts: 11466
- Joined: Sun Dec 23, 2007 4:11 pm
- Location: Wales
- Has thanked: 81 times
- Been thanked: 72 times
chat_to_rich wrote:I've just noticed some of the code is altered when I post. The bit that says script should say script type="text/javascript"
Thamk you. I'll edit my page, and let you know.
I started out with nothing, I still have most of it.
Directmail scam information site: http://astrocat.proboards.com/index.cgi?
Directmail scam information site: http://astrocat.proboards.com/index.cgi?
- Mooncat
- Senior Member
- Posts: 11466
- Joined: Sun Dec 23, 2007 4:11 pm
- Location: Wales
- Has thanked: 81 times
- Been thanked: 72 times
I edited the script, and uploaded it to the host site. But it does not send an email message automatically. though the message in the window looks better than mine did. There isn't a SEND button to send it.
I would prefer that users didn't leave my site to send me feedback.
I would prefer that users didn't leave my site to send me feedback.
I started out with nothing, I still have most of it.
Directmail scam information site: http://astrocat.proboards.com/index.cgi?
Directmail scam information site: http://astrocat.proboards.com/index.cgi?
- chat_to_rich
- Senior Member
- Posts: 254
- Joined: Fri Jan 08, 2010 1:46 pm
- Location: Kent
- Has thanked: 0
- Been thanked: 45 times
If you don't want to go down the mailto route, where the browser invokes the default mail client to send the email, (see here for details http://www.javascript-coder.com/javascr ... form.phtml) I would use a server-side script (PHP, Perl, ASP/ASP.NET) to send the email for you. I'm not a professional web developer, but if it's of any use I'm familiar with ASP and ASP.NET. You might also find this useful http://www.html-form-guide.com/email-form/
- chat_to_rich
- Senior Member
- Posts: 254
- Joined: Fri Jan 08, 2010 1:46 pm
- Location: Kent
- Has thanked: 0
- Been thanked: 45 times
You can use this site to generate email forms in ASP, Perl and PHP http://www.tele-pro.co.uk/scripts/contact_form/ If you google "email form generator" there are others.
- Mooncat
- Senior Member
- Posts: 11466
- Joined: Sun Dec 23, 2007 4:11 pm
- Location: Wales
- Has thanked: 81 times
- Been thanked: 72 times
Thank you, chat to rich. It looks as if I am up the creek with my script, so I'll be checking out the PHP route.
I started out with nothing, I still have most of it.
Directmail scam information site: http://astrocat.proboards.com/index.cgi?
Directmail scam information site: http://astrocat.proboards.com/index.cgi?