Search
Left Quote    I think there is a world market for maybe five computers.
- Thomas Watson, Chairman of IBM 1943    
Right Quote
 
[login] | [Register]
Forum Index » PHP and mySQL » Viewing Topic and Replies
Post Reply


        Viewing Topic: Do I need PHP?
  This user is offline  lbcliff
  Subject: "Do I need PHP?" Posted: @ 2:39 pm on Apr 08 2007   
Member #: 313
Rank: User - (1)
Since: 04/08/07
Posts: 1

I am familiar with HTML. I outsource the "fancy&quo t; stuff like Javascript to a friend. He is just learning PHP.

I'm suffering from spam. Who isn't? I gather that the culprit is the mailto: in the source code. I want to get the contact function into a form that keeps the email address hidden from the bots. My research keeps leading me to PHP for the contact form.

My friend says we don't need to use PHP - that any HTML "form" ; will accomplish that.

Is this true?

If I should be sending this to another Forum division, please advise.

Thank you for your time.

Linda Clifford

    Viewed: 7,977 Times | Reply to This | To top
  This user is offline  ki
  Subject: "re: Do I need PHP?" Posted: @ 12:06 am on Apr 09 2007    

Member #: 204
Rank: User - (50)
Since: 09/16/06
Posts: 53
From: Florida

  lbcliff said...

< i> I am familiar with HTML. I outsource the "fancy&q uot; stuff like Javascript to a friend. He is just learning PHP.

I'm suffering from spam. Who isn't? I gather that the culprit is the mailto: in the source code. I want to get the contact function into a form that keeps the email address hidden from the bots. My research keeps leading me to PHP for the contact form.

My friend says we don't need to use PHP - that any HTML "form&qu ot; will accomplish that.

Is this true?

If I should be sending this to another Forum division, please advise.

Thank you for your time.

Linda Clifford

well you can always split of the tag

like so:


Code:
onClick=" ;javascript:loc ation.href='ma i'+'lto:'+' ema'+'il'&q uot;




woohoo!

    Viewed: 7,968 Times | Reply to This | To top
  This user is offline  misterhaan
  Subject: "re: Do I need PHP?" Posted: @ 3:26 pm on Apr 09 2007    

Member #: 5
Rank: User - (213)
Since: 02/11/05
Posts: 148
From: chair

if you really want to keep your e-mail address hidden from the spambots, you do need to use php (or another server-side scripting language) to process the form and send you an e-mail without letting people see what your e-mail address is. the form itself can be plain html, but the form action needs to be a script that knows your e-mail address and can send the information from the form to your e-mail.




please note that the above post is likely made up in its entirety.

    Viewed: 7,956 Times | Reply to This | To top
  This user is offline  sm0ke
  Subject: "re: Do I need PHP?" Posted: @ 6:02 pm on Jun 16 2007    

Member #: 168
Rank: User - (83)
Since: 06/05/06
Posts: 34
From: Manchester - UK

As Ki says above you could just use javascript and split the code.


Code:


<!-- Begin
user = "yourname "; site = "yoursite .com"; document.write( '<a href=\"m ailto:' + user + '@' + site + '\"> '); document.write( 'email me'+'</a&g t;');
// End -->



where user = first part of email and site = domain.com

most email harvesters dont read the javascript on a page, but for additional security you could hash / urlencode the email address. There are some free tools on the net to create the code for you



Edited at 06:08:49 pm on 06/16/07


Just because I dont care, doesnt mean I dont understand.

purepcs@hotmail
.co.uk |     Viewed: 7,480 Times | Reply to This | To top
Viewing Page: 1 of 1


1 |

You must be logged in to post on the forums. Login or Register








"AllSyntax.com" Copyright © 2002-2018; All rights lefted, all lefts righted.
Privacy Policy  |  Internet Rank