Welcome, Guest. Please login or register for free.
Did you miss your activation email?
Wednesday 09 July 08 11:00 BST (UK)
Welcome Home Help Shop Search Calendar Login Register
Search Images 

Online
 
  First Name(s)

Last Name

 
News: Ad: New! FULL 1841 Census: England - Isle of Man - Wales  - Channel Islands Now online. No missing counties.

+  RootsChat.Com
|-+  General
| |-+  The Common Room
| | |-+  Free RootsChat Webspace (Moderator: trystan)
| | | |-+  Forms for Emailing from site
« previous next »
Pages: 1 [2] 3 Print
Author Topic: Forms for Emailing from site  (Read 3885 times)
MaryA
RootsChat Marquessate
********
Offline Offline

Posts: 7105


St Chads, Kirkby


WWW
Re: Forms for Emailing from site
« Reply #15 on: Saturday 08 October 05 09:38 BST (UK) »

Nice one Zeb, I've had complaints that I haven't put an email address on my site so nobody can contact me, reason being reluctance to give out the email address and this gets around it nicely.

But .... and I'm sure I won't be the only dummy asking this question so I might as well be the first - not having used php before, how do I call it from a html page please?  If this is covered elsewhere could maybe Bob just post the link as a reply and I'll read up from there.

Thanks for your effort Zeb, I'm sure lots of people will appreciate it.

Mary

Added after thinking about it

duh!!! You just put a link as normal right?? instead of linking to .html you link it to the emailme.php.  Guess I need another coffee and wake up.  Tongue Tongue Tongue Tongue

I still think it's a great script, thanks
Logged

Census Information is Crown Copyright, from www.nationalarchives.gov.uk
Lunt (Wavertree/West Derby), Forshaw (West Derby), Richardson (Knowsley), Kent (Cheshire),
Cain (Hertfordshire, London), Larkins (Bedfordshire, London), Nunn (London), Lenton, Hillyard (Bedfordshire),
Parle, Lambert, Furlong, Wafer (Wexford)
Special separate interest in Longford (Blackrock, Dublin)
Berlin-Bob
Global Moderator
RootsChat Marquessate
*******
Offline Offline

Posts: 4931


by My Daughter. Chatting to find her Roots !


WWW
Re: Forms for Emailing from site
« Reply #16 on: Saturday 08 October 05 09:45 BST (UK) »

Marvellous what coffee can do, isn't it  Grin
Logged

Searching for Coleman, Moore, Kallnung in London; Margulies, Remenyi in E. Europe;
Ancestors of Hessie Stevenson-Coleman-Baxter (Ireland, 1861)
and, of course, any other ancestors for my web-site http://boco.rootschat.net

All Census Data included in this post is Crown Copyright (see: www.nationalarchives.gov.uk)
MaryA
RootsChat Marquessate
********
Offline Offline

Posts: 7105


St Chads, Kirkby


WWW
Re: Forms for Emailing from site
« Reply #17 on: Saturday 08 October 05 09:45 BST (UK) »

One day they'll invent a puter that can do these necessary things!  Grin Grin Grin
Logged

Census Information is Crown Copyright, from www.nationalarchives.gov.uk
Lunt (Wavertree/West Derby), Forshaw (West Derby), Richardson (Knowsley), Kent (Cheshire),
Cain (Hertfordshire, London), Larkins (Bedfordshire, London), Nunn (London), Lenton, Hillyard (Bedfordshire),
Parle, Lambert, Furlong, Wafer (Wexford)
Special separate interest in Longford (Blackrock, Dublin)
Zeb
RootsChat Senior
****
Offline Offline

Posts: 431



WWW
Re: Forms for Emailing from site
« Reply #18 on: Saturday 08 October 05 09:59 BST (UK) »

Link to it using something like this:
Code:
<a href="emailme.php">Contact Me</a>
I prefer to have forms like this beause as yuo say, you don't have to have your email address made public.  I know people who write scripts to trawl through websites digging out information.  This can be abused by pulling out email addresses from sites to use for spamming.  Viewing the source of the script won't show the email address because its embedded in the PHP section.

When posting my email address publically I add "NOSPAM" after the @ like this: ivan@NOSPAMzeboliver.co.uk.  Any bots then pick up the entire email and of course, with NOSPAM in it, its invalid.  Another way is writing it ivanATzeboliverDOTcoDOTuk

 Grin
Logged

Derby: WOODCOCK (Donnington)
Devon: HARRIS (Plymouth)
Lancashire: DERRICK
Lincolnshire: CROPPER, WOODCOCK (Boston)
London: BARKER, DUGGIN, HARRIS, HINTON, HULBERT, WHITE
Wales: HARRIS, PRITCHARD (Pembrokeshire)
Warwickshire: DERRICK, WOODCOCK
Desperate for my Woodcocks from Birmingham!
Gamone
RootsChat Extra
**
Offline Offline

Posts: 37



Re: Forms for Emailing from site
« Reply #19 on: Saturday 08 October 05 10:23 BST (UK) »

I used to insert such forms into my early websites, but I abandoned the device ages ago. There are two basic problems:

  • Anonymous pranksters can send you rubbish.

  • Genuine visitors can make an error in their email address, and you never know who contacted you.

Nothing beats email. Well yes, there's something that we all know, which is almost as good as email, at least for members of this forum: instant messages.

Another nasty thing. If an organization gives out free webspace and PHP/database services to members, combined with the possibility of sending out emails, this might well be (one never knows) an open invitation to hackers to use this organization's server for sending out spam. Here in France, the Free organization, which sponsors most of my websites, does not allow members to use their websites for emailing, and that constraint doesn't bother me at all.

William Skyvington
Logged

Skeffington, Skevington, Skiffington, Skivington, etc (England, Ireland) -- Mepham, Pickering (England) -- Walker (Cork) -- Hickey (Tipperary) -- O'Keefe, Dixon (Clare) --  Kennedy, Baillie (Fermanagh) -- Cranston, Dancey (Cavan).
Zeb
RootsChat Senior
****
Offline Offline

Posts: 431



WWW
Re: Forms for Emailing from site
« Reply #20 on: Saturday 08 October 05 10:37 BST (UK) »

I understand what you mean so the next version will see the user having to confirm their details before sending the email.

Anonymous pranksters can send you rubbish via email anyway by masking their "from" and "reply" tags.  Even if they don't mask them they can still send prank emails.

Did you know that if you send me a regular email I can get your IP address from it?  That then can be used for a lot worse than prank emails but that rarely happens but the abuse factor is still there.  At least with an email form the IP address can only be obtained if its written into the script.  I just checked an email header on an email sent via the form and my IP address isn't revealed.
Logged

Derby: WOODCOCK (Donnington)
Devon: HARRIS (Plymouth)
Lancashire: DERRICK
Lincolnshire: CROPPER, WOODCOCK (Boston)
London: BARKER, DUGGIN, HARRIS, HINTON, HULBERT, WHITE
Wales: HARRIS, PRITCHARD (Pembrokeshire)
Warwickshire: DERRICK, WOODCOCK
Desperate for my Woodcocks from Birmingham!
Berlin-Bob
Global Moderator
RootsChat Marquessate
*******
Offline Offline

Posts: 4931


by My Daughter. Chatting to find her Roots !


WWW
Re: Forms for Emailing from site
« Reply #21 on: Saturday 08 October 05 10:48 BST (UK) »

A difficult subject, this one.

There is probably no "best solution", everyone has to decide for themselves.

For those who dont want to go "Zeb's route", there are a couple of tips for e-mail addresses here
Topic: TIP: putting an e-mail address on your web site
http://www.rootschat.com/forum/index.php/topic,47479.0.html

Bob
Logged

Searching for Coleman, Moore, Kallnung in London; Margulies, Remenyi in E. Europe;
Ancestors of Hessie Stevenson-Coleman-Baxter (Ireland, 1861)
and, of course, any other ancestors for my web-site http://boco.rootschat.net

All Census Data included in this post is Crown Copyright (see: www.nationalarchives.gov.uk)
ger_g
RootsChat Member
***
Offline Offline

Posts: 203


S-Bend surfer... righteous.


WWW
Re: Forms for Emailing from site
« Reply #22 on: Wednesday 19 October 05 13:04 BST (UK) »

Hey everyone

Have been offline for a few weeks (**"$%@!!!) but back now.  Can't wait to give this a whirl (when I get back from work eheh)

Ger Smiley
Logged

EVANS, SMART, PREECE, PARTRIDGE, SYKES  (Ross-on-Wye and surrounds Herefordshire ENGLAND)
LEWIS (Llangarren Herefordshire ENGLAND)
ROBERTS (St Maughans Monmouth and Llangarron Herefs)
POWELL (Monmouth and Herefordshire)
WATKINS, JENKINS (Hentland Herefordshire)
HAMILTON, McCUTCHEN (Urney Strabane Co. Tyrone IRELAND)
McLAUGHLIN (Manorcunningham Co. Donegal IRELAND)
http://evansinherefords.rootschat.net/

Census information is Crown Copyright, from www.nationalarchives.gov.uk
ger_g
RootsChat Member
***
Offline Offline

Posts: 203


S-Bend surfer... righteous.


WWW
Re: Forms for Emailing from site
« Reply #23 on: Friday 28 October 05 15:47 BST (UK) »

Zeb you are a champ!

Okey dokes I have managed to edit and upload a form... when i go to send a test message tho, the form goes blank. I had a look through the script but couldn't see a 'go to here' url... or am I a bit blind? (maybe more coffee needed lol). I haven't yet linked it to another page - does that make a difference?

Cheers
Ger Smiley
Logged

EVANS, SMART, PREECE, PARTRIDGE, SYKES  (Ross-on-Wye and surrounds Herefordshire ENGLAND)
LEWIS (Llangarren Herefordshire ENGLAND)
ROBERTS (St Maughans Monmouth and Llangarron Herefs)
POWELL (Monmouth and Herefordshire)
WATKINS, JENKINS (Hentland Herefordshire)
HAMILTON, McCUTCHEN (Urney Strabane Co. Tyrone IRELAND)
McLAUGHLIN (Manorcunningham Co. Donegal IRELAND)
http://evansinherefords.rootschat.net/

Census information is Crown Copyright, from www.nationalarchives.gov.uk
Zeb
RootsChat Senior
****
Offline Offline

Posts: 431



WWW
Re: Forms for Emailing from site
« Reply #24 on: Saturday 29 October 05 09:01 BST (UK) »

Look for this line:
Code:
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">

Thats the line that tells the browser where to go next when you submit the form.  One thing you can do is use this instead:
Code:
<form action="mailme.php" method="post">

The "mailme.php" would be the same name as the file itself - so the script is calling itself.  I presume you've uploaded it as a ".php" file and not ".html" or ".htm"?

I did look at your site to see where it was but couldn't find it.
Logged

Derby: WOODCOCK (Donnington)
Devon: HARRIS (Plymouth)
Lancashire: DERRICK
Lincolnshire: CROPPER, WOODCOCK (Boston)
London: BARKER, DUGGIN, HARRIS, HINTON, HULBERT, WHITE
Wales: HARRIS, PRITCHARD (Pembrokeshire)
Warwickshire: DERRICK, WOODCOCK
Desperate for my Woodcocks from Birmingham!
ger_g
RootsChat Member
***
Offline Offline

Posts: 203


S-Bend surfer... righteous.


WWW
Re: Forms for Emailing from site
« Reply #25 on: Saturday 29 October 05 12:40 BST (UK) »

Hey Zeb

Hmmmm.... okay my form action section looks like the second one i.e. <form action="emailme.php" method="post"> and i've linked it to the index page... found i had messed up the script (wow what a surprise hehe). Woohoo! Success - message arrived to my inbox Smiley

Also - I would like to remove the drop down for 'surname' but since my last doctor-job went a little bung I will ask this time before diving in  Wink

THANK YOU! Ger Smiley
Logged

EVANS, SMART, PREECE, PARTRIDGE, SYKES  (Ross-on-Wye and surrounds Herefordshire ENGLAND)
LEWIS (Llangarren Herefordshire ENGLAND)
ROBERTS (St Maughans Monmouth and Llangarron Herefs)
POWELL (Monmouth and Herefordshire)
WATKINS, JENKINS (Hentland Herefordshire)
HAMILTON, McCUTCHEN (Urney Strabane Co. Tyrone IRELAND)
McLAUGHLIN (Manorcunningham Co. Donegal IRELAND)
http://evansinherefords.rootschat.net/

Census information is Crown Copyright, from www.nationalarchives.gov.uk
Falkyrn
RootsChat Marquessate
********
Online Online

Posts: 4431


Nemo Me Impune Lacessit


Re: Forms for Emailing from site
« Reply #26 on: Saturday 29 October 05 13:35 BST (UK) »

For those who want to use psp or other coding  there is a useful (free) utility called "Forms to go" available from http://www.bebosoft.com/products/formstogo/

Quote
Very simple to use
Forms To Go is a very simple and powerful application that creates scripts in PHP, ASP and Perl to process your HTML forms, and send all the form's field values via email or save them in a text file on your server.

Forms To Go has been created with the web designer in mind. No programming knowledge is necessary, just the basic information about your server configuration. This can be obtained from your system administrator or web hosting provider, then you'll be ready to create the script to process your form.


As I hate coding I found it particularly useful.
Logged

~RJ Paton~
Searching for: PATTON: GOURLAY: DEWAR : MACLELLAN : STEWART, FERGUSON : WIGGINS, FLUKE, POGUE (POLLOCK).

Cuimhnich air na daoine o'n d'thainig thu
Zeb
RootsChat Senior
****
Offline Offline

Posts: 431



WWW
Re: Forms for Emailing from site
« Reply #27 on: Sunday 30 October 05 04:13 GMT (UK) »

ger_g, just remove this line:
Code:
<tr><td class="btext">Surname</td><td class="needed" colspan="2"><select name="surname" class="maxwidth"><?=$nameslist?></select></td></tr>


Logged

Derby: WOODCOCK (Donnington)
Devon: HARRIS (Plymouth)
Lancashire: DERRICK
Lincolnshire: CROPPER, WOODCOCK (Boston)
London: BARKER, DUGGIN, HARRIS, HINTON, HULBERT, WHITE
Wales: HARRIS, PRITCHARD (Pembrokeshire)
Warwickshire: DERRICK, WOODCOCK
Desperate for my Woodcocks from Birmingham!
ger_g
RootsChat Member
***
Offline Offline

Posts: 203


S-Bend surfer... righteous.


WWW
Re: Forms for Emailing from site
« Reply #28 on: Sunday 30 October 05 09:43 GMT (UK) »

THank you very much lads you're a pair of stars!! Grin

Ger Smiley
Logged

EVANS, SMART, PREECE, PARTRIDGE, SYKES  (Ross-on-Wye and surrounds Herefordshire ENGLAND)
LEWIS (Llangarren Herefordshire ENGLAND)
ROBERTS (St Maughans Monmouth and Llangarron Herefs)
POWELL (Monmouth and Herefordshire)
WATKINS, JENKINS (Hentland Herefordshire)
HAMILTON, McCUTCHEN (Urney Strabane Co. Tyrone IRELAND)
McLAUGHLIN (Manorcunningham Co. Donegal IRELAND)
http://evansinherefords.rootschat.net/

Census information is Crown Copyright, from www.nationalarchives.gov.uk
Berlin-Bob
Global Moderator
RootsChat Marquessate
*******
Offline Offline

Posts: 4931


by My Daughter. Chatting to find her Roots !


WWW
Re: Forms for Emailing from site
« Reply #29 on: Wednesday 09 November 05 18:45 GMT (UK) »

Thanks Zeb !!!


I've just uploaded your script to my site.
All I needed to do was to edit two lines (my e-mail address, and "no image") and it worked straight away !!

Great job, thank you !

Bob
Logged

Searching for Coleman, Moore, Kallnung in London; Margulies, Remenyi in E. Europe;
Ancestors of Hessie Stevenson-Coleman-Baxter (Ireland, 1861)
and, of course, any other ancestors for my web-site http://boco.rootschat.net

All Census Data included in this post is Crown Copyright (see: www.nationalarchives.gov.uk)
Pages: 1 [2] 3 Print 
« previous next »


[Copyright] [Free RootsChat Webspace] [Your Surname Interests] [Shrink Link] [About Us] [Terms of Use]
All Census Lookups are Crown Copyright, National Archives for academic and non-commercial research purposes only
RootsChat.com cannot be held responsible directly or indirectly for the messages or content posted by others. Inline images in messages are the copyright of the respective linked sites.
RootsChat.com, Europa House, Bury, Lancashire, BL9 5BT
0.184:21