[PHP] start-condition stack underflow

2003-11-01 Thread Pieter W.D. Kroon
Fatal error: start-condition stack underflow Have not seen this error in 4 years of programming PHP. Came up in looping SMTP socket test. Anyone knows what this means? Thanks Buiten Westen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] login without database

2001-03-30 Thread W.D.
You would probably check against an encrypted file though for more security. you could use flat files, another words store the user information in a text file like below: username|pass|email bob|fgffsdg|[EMAIL PROTECTED] foo|bar|[EMAIL PROTECTED] and then just read and write the file

Re: [PHP] validating fields

2001-03-08 Thread W.D.
ng the registered vars $Email, $FirstName, $LastName. So I dunno whats wrong.. From: "W.D." [EMAIL PROTECTED] I dont know how to do this, but Ive tried several things with no success. I need to validate several form fields and here is the script I'm working with... ?php if($H

[PHP] validating fields

2001-03-01 Thread W.D.
I dont know how to do this, but Ive tried several things with no success. I need to validate several form fields and here is the script I'm working with... ?php if($HTTP_SERVER_VARS["REQUEST_METHOD"] == "POST") { (eregi("^[a-z0-9\._-]+@+[a-z0-9\._-]+\.+[a-z]{2,3}$", $Email))? header("Location:

Re: [PHP] mail() question

2001-02-27 Thread W.D.
just the info in the .txt file did you want to actually send the .txt file or just the info in the .txt file?? -Original Message- From: W.D. [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 28, 2001 10:19 AM To: [EMAIL PROTECTED] Subject: [PHP] mail() question I want

[PHP] help with branching eregi

2001-02-27 Thread W.D.
this script isnt working like I want itmainly I need multiple eregi() to check fields ?php if($HTTP_SERVER_VARS["REQUEST_METHOD"] == "POST") { (eregi("^[a-z0-9\._-]+@+[a-z0-9\._-]+\.+[a-z]{2,3}$", $Email))(eregi("^[a-z]$", $FirstName))(eregi("[a-z]$", $LastName))? header("Location:

[PHP] whats happening with form

2001-02-27 Thread W.D.
I use session variables to retrieve values from form fields and send by mail(). Problem is upon testing after I fill out form once and send, then go back and test again with different info it sends the info from the first time. Whats wrong?

Re: [PHP] whats happening with form

2001-02-27 Thread W.D.
Do I have to call each variable like session_unset(var1, var2, var3); and session_destroy(var1, var2, var3)? I use session variables to retrieve values from form fields and send by mail(). Problem is upon testing after I fill out form once and send, then go back and test again with

[PHP] Please help with multi eregi

2001-02-27 Thread W.D.
I have this following if statement.?php if($HTTP_SERVER_VARS["REQUEST_METHOD"] == "POST") then I need to check the following three strings with eregi (eregi("^[a-z0-9\._-]+@+[a-z0-9\._-]+\.+[a-z]{2,3}$", $Email))? header("Location: http://www.site.com/thanks.php"): header("Location:

[PHP] concatenate vars?

2001-02-22 Thread W.D.
I need to combine two variables which are set to two form field values and will be put into $from of mail(). Should it be $from = "$varOne . $varTwo" ? also a way to make if(.something) (eregi("blah", $one)("blah2", $two)("blah3", $three));will this work?

[PHP] mail prob

2001-02-22 Thread W.D.
I'm using a remote host, and when I call mail() with all the var's pulling values from form fields, it still shows as nobody in from header. Is this a server situation? Theyre using php4 support and they claim its that I'm not using appropriate variables in the function.

Re: [PHP] mail prob

2001-02-22 Thread W.D.
so there is no way to pull this variable from an email form field? From: "W.D." [EMAIL PROTECTED] I'm using a remote host, and when I call mail() with all the var's pulling values from form fields, it still shows as nobody in from header. Is this a server situation? Theyre

[PHP] session var not carrying

2001-02-21 Thread W.D.
unable to get these session variable to be used on thanks.php page Contact.php ?php session_start(); ?htmlhead/headbody form method="POST" action="/thanks.php" First Name: input type=TEXT name="FirstName" size=15p Last Name: input type=TEXT name="LastName" size=25p E-mail Address: input

[PHP] ereg match problem

2001-02-20 Thread W.D.
I'm testing email address, but want to test not only characters but the @ sign and for .com, .net, .org, or .tv. How would I include all of these? $test = $email if( ereg("[a-zA-Z0-9]+)\@([a-zA-Z0-9]+)\.comhow would I include the rest?

[PHP] Will this work?

2001-02-19 Thread W.D.
I'm still new to php, just wanted to check to make sure this will work ok. Thanks form method="POST" action="?php print("$PHP_SELF"); ?" First Name: input type=TEXT name="FirstName" size=15p Last Name: input type=TEXT name="LastName" size=25p E-mail Address: input type=TEXT name="Email" size=25p

Re: [PHP] Will this work?

2001-02-19 Thread W.D.
Ok, I removed the (" ") from action and it worked, but it doesnt validate, just sends to thanks page regardless of whether the fields are filled or not. Am I mistaking IsSet for handling that? Hi, form method="POST" action="?php print("$PHP_SELF"); ?" First Name: input type=TEXT