What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » My site.......

Pages: (3): « First « 1 [ 2 ] 3 » Last »
My site.......
Author: Message:
king_of_cool_kids
Full Member
***

Avatar
Im a Cat fan.

Posts: 264
– / Male / –
Joined: Dec 2003
O.P. RE: My site.......
quote:
* Send auto email after submitting to let user know email has been recieved (requires database??)
Well, PHP doesn't know if you received the mail, but knows for sure if it has been sent. Doesn't need a db
* Let a user submit only 5 times a day to reduce spam (database or cookies??)
don't rely on cookies if you can use sessions or db. But if it's not a big thing you can use simple text, ini or inc.php files
* Only click submit once to reduce spam (php please, no silly javascript codes)
huh?

ok, dont worry about the auto email.

Would be glad if you could tell me and code the pages needed for the 5 times a day.

And submit once (when someone click the submit button, it greys out or something or fades out with the words "Processing, please wait", so it stops them clicking more than once to reduce spam)
See this thread please:
http://shoutbox.menthix.net/showthread.php?action=lastpost&tid=29609

I am running:
Windows XP Pro
MSN messenger: 6.2.0137
MsgPlus!: 3.01.94
07-11-2004 11:10 PM
Profile PM Web Find Quote Report
Guido
Elite Member
*****

Avatar
Design is Safety

Posts: 4566
Reputation: 50
37 / Male / Flag
Joined: Dec 2002
RE: RE: My site.......
quote:
* Send auto email after submitting to let user know email has been recieved (requires database??)
Doesn't require any database, just do a second mail() with the message of your choice and directed to the email inputted in the contact form.

quote:
* Let a user submit only 5 times a day to reduce spam (database or cookies??)
I would not reccommend cookies, I would use the IP and yes, via a database. Someone more expert at php/mysql will be able to provide you with the full code :)

quote:
* Only click submit once to reduce spam (php please, no silly javascript codes)
That can't be done with PHP, because it doesn't run on the client. You have to do it with javascript. However if the above point is working, he won't be able to send the e-mail more than 5 times.

quote:
* Send it to both me and someone else (simple little code like:
Yeah, almost that :)
code:
<?php
$headers = "From: Mysite.Com <webmaster@mysite.com>\r\n";
$headers .= "Reply-To: webmaster@mysite.com\r\n";
$send_to = "someone@here.com, someone_else@there.com, another@wherever.com";
mail($send_to, "My Subject", "This is my message", $headers);
?>

quote:
Originally posted by x4nder
well what ever you do try and stay away from cookies. they can be easily deleted. its how loads of sites block people. by ip and cookies.
fools........
Excuse me... are there many other ways that those fools don't know about? cookies and IP are pretty much everything you can use to block users...

This post was edited on 07-12-2004 at 04:35 PM by Guido.
07-12-2004 04:26 PM
Profile E-Mail PM Web Find Quote Report
saralk
Veteran Member
*****

Avatar

Posts: 2598
Reputation: 38
35 / Male / Flag
Joined: Feb 2003
RE: My site.......
for the average joe, cookies would be fine for blocking people short term. Most people wont know how to delete their cookies, and so wouldn't be able to get to your site.
Also most people have dynamic IPs so you can only ban them for one session.
The Artist Formerly Known As saralk
London · New York · Paris
Est. 1989
07-12-2004 06:18 PM
Profile PM Find Quote Report
king_of_cool_kids
Full Member
***

Avatar
Im a Cat fan.

Posts: 264
– / Male / –
Joined: Dec 2003
O.P. RE: My site.......
ok, thanks guido and Todd B for helping with the mutliple people thing. Now, Im working on the ability to add attachments.

Attached is the file I have put the code in. This is the page: http://www.linuxbox.co.nz/~kieran/Runescape/contact.php

As you will see if you click ctrl + a, there is a parse error at the top. Much thanks to anyone that can get it going.

.php File Attachment: form.php (6.12 KB)
This file has been downloaded 107 time(s).
See this thread please:
http://shoutbox.menthix.net/showthread.php?action=lastpost&tid=29609

I am running:
Windows XP Pro
MSN messenger: 6.2.0137
MsgPlus!: 3.01.94
07-20-2004 12:36 AM
Profile PM Web Find Quote Report
Guido
Elite Member
*****

Avatar
Design is Safety

Posts: 4566
Reputation: 50
37 / Male / Flag
Joined: Dec 2002
RE: My site.......
Line 206: are you sure it's "$cleanmessage = $badword->word_fliter($bettermessage);" ?

Anyway the parse error consists in a { not closed. Check one by one and see if you have closed all of them towards the end of the code.
07-20-2004 03:37 AM
Profile E-Mail PM Web Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: My site.......
I assume you meant to have a } after the block of HTML for...

code:
elseif (!$validator->ValidateEmailBox($email)) {

In other words, above this line:

code:
// get the sender's name and email address
07-20-2004 04:03 AM
Profile PM Web Find Quote Report
king_of_cool_kids
Full Member
***

Avatar
Im a Cat fan.

Posts: 264
– / Male / –
Joined: Dec 2003
O.P. RE: My site.......
Guido, yes, that is right. "$cleanmessage = $badword->word_fliter($bettermessage);" ? scans the messgae for swear words and cleans them by turning them into ####'s. Also, im a copy and paste then learn type person.

So thanks WDZ for the code. Unfortunatly:

The form does not send, there are no errors, and it doesn't go to the thanks page anymore.

Any other ideas??
See this thread please:
http://shoutbox.menthix.net/showthread.php?action=lastpost&tid=29609

I am running:
Windows XP Pro
MSN messenger: 6.2.0137
MsgPlus!: 3.01.94
07-20-2004 04:21 AM
Profile PM Web Find Quote Report
ddunk
Veteran Member
*****

Avatar

Posts: 1228
Reputation: 51
35 / Male / Flag
Joined: Mar 2004
RE: My site.......
quote:
Originally posted by king_of_cool_kids
Guido, yes, that is right. "$cleanmessage = $badword->word_fliter($bettermessage);" ? scans the messgae for swear words and cleans them by turning them into ####'s. Also, im a copy and paste then learn type person.

I think Guido means filter is spelled wrong, you've got it as fliter in your code.
07-20-2004 04:45 AM
Profile E-Mail PM Web Find Quote Report
king_of_cool_kids
Full Member
***

Avatar
Im a Cat fan.

Posts: 264
– / Male / –
Joined: Dec 2003
O.P. RE: My site.......
well, it still works :)
See this thread please:
http://shoutbox.menthix.net/showthread.php?action=lastpost&tid=29609

I am running:
Windows XP Pro
MSN messenger: 6.2.0137
MsgPlus!: 3.01.94
07-20-2004 06:40 AM
Profile PM Web Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: My site.......
O_o

The function name is also spelled wrong when it's defined in the badword class? :rolleyes:
07-20-2004 07:00 AM
Profile PM Web Find Quote Report
Pages: (3): « First « 1 [ 2 ] 3 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On