Jump to content

Ashes

New Members
  • Posts

    7
  • Joined

  • Last visited

Ashes's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I figured it out on my own, changed it to this and everything is working smoothly: $matchstring = "/^([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+" . "@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$/"; if( $_POST['email'] && preg_match( $matchstring, $_POST['email'] ) ) Thanks everyone for your help, it was very much appreciated!!
  2. Hope this is enough, this looks like a 'section' to me. $matchstring = "^([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+" . "@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$"; if( $_POST['email'] && ereg( $matchstring, $_POST['email'] ) ) $email = clean( $_POST['email'] ); else $messages['email'] = 'You must enter a valid email address.';
  3. Hey, I told you in the first post that I know almost nothing about PHP. I wasn't joking. I replaced the line as you instructed, and am now getting this error and am not being allowed to submit the form (will be going back to the old line now 'cause at least it let people join): Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in /home/fatedus/fatedus/loved/admin/show_join.php on line 141
  4. Whoa. mac_gyver was right, I have no clue how that happened. Thank you so much, I never would have even known to look for that. After replacing show_join.php with a brand new show_join.php (with the correct line) I'm still getting this error when I try to join: Deprecated: Function ereg() is deprecated in /home/fatedus/fatedus/loved/admin/show_join.php on line 141 And yeah, of course, this is the new line 141: if( $_POST['email'] && ereg( $matchstring, $_POST['email'] ) ) Apparently the join form works 'cause I just got the confirmation e-mail that I joined.. I'm just also getting that error above on the confirmation page right after I submit the form.
  5. I operate several 'fanlistings' where people who are fans of things can join and be listed among other fans. It's powered by the Enthusiast script. I recently switched hosts (to DreamHost) - and before this I wasn't having any issues. Someone told me that my join form was giving them trouble and I tested it out and am getting this error: Warning: preg_match() expects parameter 2 to be string, array given in /home/fatedus/fatedus/loved/admin/show_join.php on line 141 This is line 141 of show_join.php: if( $_POST && preg_match( $matchstring, $_POST ) ) Here is a link to one of my fanlisting's join page: http://odin.fated.us/join.php And here is a link to the Enthusiast script for those unfamiliar with it: http://scripts.indisguise.org/ Any help would be greatly appreciated, I know extremely little about PHP.
  6. I recently switched hosts to DreamHost, and even after a completely clean install of Codesort I'm getting these errors: The top of the Codesort admin panel: Deprecated: Assigning the return value of new by reference is deprecated in /home/fatedus/fatedus/loved/codesort/functions.php on line 35 WARNING: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/fatedus/fatedus/loved/codesort/functions.php:35) WARNING: Cannot modify header information - headers already sent by (output started at /home/fatedus/fatedus/loved/codesort/functions.php:35) And displayed on the codes page of my fanlistings is this, too: Deprecated: Assigning the return value of new by reference is deprecated in /home/fatedus/fatedus/loved/codesort/functions.php on line 35 This is line 35 of the functions.php file: $instance =& new $object; Here is a link to the script for those unfamiliar with it: http://fanupdate.net/codesort.php Here's a link to one of my fanlisting pages where the error shows up: http://odin.fated.us/codes.php Also here is a screenshot of what the error looks like inside the Codesort admin panel: http://i.imgur.com/yDlT8d9.png Help would be really appreciated, this host move has been such a pain. ;c
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.