Feedback Form

All your computer hardware and software questions in here please.

Moderator: Moderators

Post Reply
User avatar
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

Post by Mooncat »

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 :sad: 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?
User avatar
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

Post by village idiot »

WOT blocked it saying it had a poor reputation :roll:
i love being married
it's great to find that one special person that you want to annoy for the rest of your life

I have a soft spot for the wife, it's a peat bog just outside Ardross

Still Yes Highland
User avatar
Mooncat
Senior Member
Posts: 11466
Joined: Sun Dec 23, 2007 4:11 pm
Location: Wales
Has thanked: 81 times
Been thanked: 72 times

Post by Mooncat »

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?
User avatar
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

Post by dave.m »

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
You can always tell a Yorkshireman,
But you cannot tell him much.
User avatar
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

Post by dave.m »

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
You can always tell a Yorkshireman,
But you cannot tell him much.
User avatar
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

Post by dave.m »

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
Attachments
Firefox
Firefox
Firefox (Small).jpg (12.59 KiB) Viewed 3778 times
Internet Explorer
Internet Explorer
IE. (Small).jpg (5.63 KiB) Viewed 3778 times
You can always tell a Yorkshireman,
But you cannot tell him much.
User avatar
Mooncat
Senior Member
Posts: 11466
Joined: Sun Dec 23, 2007 4:11 pm
Location: Wales
Has thanked: 81 times
Been thanked: 72 times

Post by Mooncat »

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?
User avatar
thescruff
Senior Member
Posts: 49685
Joined: Mon Mar 10, 2008 12:46 am
Location: Bath
Has thanked: 360 times
Been thanked: 3735 times

Post by thescruff »

I sent one :roll:
User avatar
chat_to_rich
Senior Member
Posts: 254
Joined: Fri Jan 08, 2010 1:46 pm
Location: Kent
Has thanked: 0
Been thanked: 45 times

Post by chat_to_rich »

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>
User avatar
chat_to_rich
Senior Member
Posts: 254
Joined: Fri Jan 08, 2010 1:46 pm
Location: Kent
Has thanked: 0
Been thanked: 45 times

Post by chat_to_rich »

I've just noticed some of the code is altered when I post. The bit that says script should say script type="text/javascript"
User avatar
Mooncat
Senior Member
Posts: 11466
Joined: Sun Dec 23, 2007 4:11 pm
Location: Wales
Has thanked: 81 times
Been thanked: 72 times

Post by Mooncat »

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?
User avatar
Mooncat
Senior Member
Posts: 11466
Joined: Sun Dec 23, 2007 4:11 pm
Location: Wales
Has thanked: 81 times
Been thanked: 72 times

Post by Mooncat »

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 started out with nothing, I still have most of it.

Directmail scam information site: http://astrocat.proboards.com/index.cgi?
User avatar
chat_to_rich
Senior Member
Posts: 254
Joined: Fri Jan 08, 2010 1:46 pm
Location: Kent
Has thanked: 0
Been thanked: 45 times

Post by chat_to_rich »

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/
User avatar
chat_to_rich
Senior Member
Posts: 254
Joined: Fri Jan 08, 2010 1:46 pm
Location: Kent
Has thanked: 0
Been thanked: 45 times

Post by chat_to_rich »

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.
User avatar
Mooncat
Senior Member
Posts: 11466
Joined: Sun Dec 23, 2007 4:11 pm
Location: Wales
Has thanked: 81 times
Been thanked: 72 times

Post by Mooncat »

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?
Post Reply

Return to “Computers”