You are here: comapring two variables of strings « PHP Programming Language « IT news, forums, messages
comapring two variables of strings

Posted by shror on 03/06/07 22:01

hi,

i am building a small mail form system that i want to make it safe as
much as i can, so i added a ramdomly generated 4 characters that my
user have to enter in the corresponding text box so that if he entered
these characters correct the mail is sent if not the error message
appear.

what i have:
1- i used a randomly generated 4 characters
2- text bex for the user to enter the randomly generated variables
3- if else statement:

my if...else code

if ($UserEnteredText == $RandomText){
echo "correct";
}
else{
echo "wrong";
}


my problem:
always the code echos wrong message, which means that i have a problem
that i dont know what is it.

so please help me
I really need your help ASAP

Thanks in advance

shror
www.s7els7.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация