Bravo List
Register
Go Back   > Bravo List > P2P > Forum > Community Cafe
Reply
  #1  
Old 23rd October 2009, 00:22
irfan's Avatar
irfan irfan is offline
Senior Member
 
Join Date: Jun 2009
United Kingdom
Posts: 67
Default help for mail
hey guys i get this error in Fatal error: Call to undefined function is_valid_email() in C:\xampp\htdocs\adduser.php on line 15

is it because im using xammp if so how should it resolve
Reply With Quote
  #2  
Old 23rd October 2009, 10:06
Nightcrawler's Avatar
Nightcrawler Nightcrawler is offline
Senior Member
 
Join Date: Oct 2009
P2P
Posts: 97
Default
Quote:
Originally Posted by irfan View Post
hey guys i get this error in Fatal error: Call to undefined function is_valid_email() in C:\xampp\htdocs\adduser.php on line 15

is it because im using xammp if so how should it resolve
It appears the function is not being found in the file you are using maybe not defined for example the function will be in a file called funtions.php or whatever but the file you are using does not include the file so the function is non existent post up the adduser.php.
Reply With Quote
  #3  
Old 23rd October 2009, 12:08
irfan's Avatar
irfan irfan is offline
Senior Member
 
Join Date: Jun 2009
United Kingdom
Posts: 67
Default
therre you go. :)
Attached Files
File Type: php adduser.php (1.8 KB, 1 views)
Reply With Quote
  #4  
Old 23rd October 2009, 14:19
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
add this to line 5
PHP Code:
function is_valid_email($email) {
    if (
ereg("^([A-Za-z0-9]+_+)|([A-Za-z0-9]+\-+)|([A-Za-z0-9]+\.+)|([A-Za-z0-9]+\++))*[A-Za-z0-9]+@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$"$email)) 
        return 
true;
    else
        return 
false;

__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
The Following User Says Thank You to joeroberts For This Useful Post:
irfan (23rd October 2009)
  #5  
Old 23rd October 2009, 15:42
irfan's Avatar
irfan irfan is offline
Senior Member
 
Join Date: Jun 2009
United Kingdom
Posts: 67
Default
also one more question i tried adding a search box in browse.php but it comes up messed up, any ways u can add to it?

heres the attached file so u can add the codes to it.

thanks guys
Attached Files
File Type: php browse.php (6.4 KB, 0 views)
Reply With Quote
Reply

Tags
mail

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Server Ruffneck Template Shares 3 3rd May 2012 06:06
An e-mail mod! ajax TBDev 3 20th February 2010 16:59
E mail sent tomys TBDev 3 7th September 2009 16:53
help for a mail server danscarlat Template Shares 0 7th January 2009 11:44
Mail confirmation emilianstef BT.Manager (phpMyBitTorrent) 1 21st June 2008 19:08



All times are GMT +2. The time now is 02:18. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.