Search found 16 matches

by bordman
Tue Aug 22, 2006 2:01 pm
Forum: PHP - Code
Topic: My form needs spamming protection...
Replies: 7
Views: 469

Hi, again, thank your input...

I know a comma is not allowd as part of an email, but depending on the program sending the mail, usually a comma or ; are used to seperate the email addresses, right?

I don't see a function that will just let me count the number of @ in the string...
by bordman
Tue Aug 22, 2006 12:00 pm
Forum: PHP - Code
Topic: My form needs spamming protection...
Replies: 7
Views: 469

Security image in place...

Thanks, I have a security image in place already...I'm just trying to make sure only one email address is excepted. I thought perhaps a script that checks for more than one @ or that doesn't allow a comma or ; I'm just not such which function to use to find more than one of those characters. Similar...
by bordman
Tue Aug 22, 2006 10:56 am
Forum: PHP - Code
Topic: My form needs spamming protection...
Replies: 7
Views: 469

My form needs spamming protection...

Hi, I have a form which sends an email, and in my form validation, I want to make sure only one email address can be accepted. I'm fairly new to php and can't seem to find what I need via google and othe php manuals...because I'm not sure what to look for... I have some code that checks for a proper...
by bordman
Thu Jun 29, 2006 3:08 pm
Forum: PHP - Code
Topic: What would be the best way? Array?
Replies: 17
Views: 804

What do you mean?

You can change the number of owners at the top. This just sends an email...there is no db.
by bordman
Thu Jun 29, 2006 10:50 am
Forum: PHP - Code
Topic: What would be the best way? Array?
Replies: 17
Views: 804

Thanks Everyone!

This is what I came up with, which seems to do just fine, except for the email part which I haven't done yet. <? $numowner = $_POST['numowner']; $counter = 1 ; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Test</title> <meta http-equiv="Conten...
by bordman
Tue Jun 27, 2006 4:36 pm
Forum: PHP - Code
Topic: What would be the best way? Array?
Replies: 17
Views: 804

What would be the best way? Array?

Hi, I'm new to PHP and I'm not sure of the best way to do this. Here's what I need to do. I need a quote form (name,state, phone, email) that will use php to send an email. The form will start with a question: "Number of people?" with text field for the user to enter a number. I will proba...
by bordman
Wed Mar 08, 2006 3:30 pm
Forum: PHP - Code
Topic: header redirect not sending the variable
Replies: 3
Views: 222

Yes it works like that...I tried this too:

Code: Select all

header("Location: $fileErrorPage");
and that does the same thing...but that's not the problem...
by bordman
Wed Mar 08, 2006 2:58 pm
Forum: PHP - Code
Topic: header redirect not sending the variable
Replies: 3
Views: 222

header redirect not sending the variable

Hi, I have a page (contact_us.php) which submits to contact_us_process.php After some form validation on contact_us_process.php, I have the following code: $fileErrorPage = 'contact_us_result.php?result=error'; header('Location: $fileErrorPage'); exit; I get the following error: The error page: http...
by bordman
Fri Feb 24, 2006 12:00 pm
Forum: PHP - Code
Topic: Getting a page name from the server (PHP Newbie)
Replies: 3
Views: 271

basename() works perfect!!!!!!!!!!!!!!!!!!!!!!!!!!!!! I was digging into a php reference site, that saves me some time!! THANKS!!!!!!!!!!!!
by bordman
Fri Feb 24, 2006 11:15 am
Forum: PHP - Code
Topic: Getting a page name from the server (PHP Newbie)
Replies: 3
Views: 271

Getting a page name from the server (PHP Newbie)

Hi, I have the following code: <? $pagename = $_SERVER['PHP_SELF'] ; if ($pagename == "index.php") { $myimage = "image1.jpg" ; } else { $myimage = "image2.jpg" ; } ?> pagename returns /foldername/index.php How can I split this up so I only get index.php THANKS!!!
by bordman
Wed Feb 01, 2006 12:04 pm
Forum: PHP - Code
Topic: expression help for php newbie
Replies: 5
Views: 286

SWEET!!!

Pickle,
Thanks for the help, that works out great!!

Jenk and scrotaye,
Also thanks for the explaination and the tutorials, I've already looked through them and they help it all make sense!

Best Regards,
Bordman
by bordman
Wed Feb 01, 2006 10:41 am
Forum: PHP - Code
Topic: expression help for php newbie
Replies: 5
Views: 286

I don't think that's the problem then.

Cool, I'll check that out, but now that I know what that does, I don't think that's my problem then. I have code that check's a date format. Right now the code checks for mm/dd/yyyy and displays an error if somebody puts in 2/1/2006 instead of 02/01/2006. I like to change this piece of code to allow...
by bordman
Wed Feb 01, 2006 10:13 am
Forum: PHP - Code
Topic: expression help for php newbie
Replies: 5
Views: 286

expression help for php newbie

In this line of code:

Code: Select all

$result=ereg("^[0-9]+$",$month,$trashed);

can someone explain what this part is doing:

Code: Select all

"^[0-9]+$"


I'm not sure what the ^ or the +$ is doing. Or, if someone has a good reference that would be helpful too.

Thanks!
by bordman
Fri Jan 27, 2006 9:35 am
Forum: PHP - Code
Topic: Validate a correct month format 1-12???
Replies: 2
Views: 285

Validate a correct month format 1-12???

feyd | Please use and tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color] Hi, I'm trying to make sure a user can only put in 1 - 12 for a month field. Here's the code I'm trying: //policy_eff_date_mo Policy...
by bordman
Thu Jan 26, 2006 9:07 am
Forum: PHP - Code
Topic: New to PHP, how would you do a Server.Transfer in php??
Replies: 11
Views: 1510

Sessions eh...

Is this really the best way to do it? There is no equivalent to Server.Transfer("")? :oops:

Even still, after I set the sessions, how do I redirect to the next page?

Thanks for your help!!

:lol: