You are here: Re: Shoutbox , ridding SPAM, adding features, Syntax, explanations of my shoutbox code, help on additional code « PHP Programming Language « IT news, forums, messages
Re: Shoutbox , ridding SPAM, adding features, Syntax, explanations of my shoutbox code, help on additional code

Posted by Shelly on 07/27/06 01:13

<ire.kevin@gmail.com> wrote in message
news:1153960578.889516.169600@i3g2000cwc.googlegroups.com...
> Here's where I'm at. I managed to write this much.
>
> [code]
> $count = substr_count($message, 'href');
>
> if ($count > 2)
> die ();
> [/code]
>
> Problem is... the die kills the rest of the php on the page, I also had
> to insert it in after the 'message' has been given the value $message,
> so the content is already shot to the database before it dies....
>
> I need to know how to assign the text inside my text area named
> 'message' can be assigned as a variable before being sent to the db,
> and also preventing the info from being sent to the db with out killing
> all php on the page...

$message = $_POST['then name of the message field'] ????

Shelly

 

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

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