View Single Post
  #3 (permalink)  
Old Mar 19th, 2008, 06:18
alexgeek's Avatar
alexgeek alexgeek is offline
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,803
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: Random String Verification help

It helps to put a space between code and the closing tags, instead of:
PHP: Select all

<?php $rand_str=random_string(5);?> 
<?php echo $rand_str?>
Use:
PHP: Select all

<?php $rand_str=random_string(5); ?> 
<?php echo $rand_str?>
Cloud is right though,this is not javascript so there error is probably caused by mixing html and php incorrectly.
Reply With Quote