Reply to Re: refresh causes double post

Your name:

Reply:


Posted by Peter Fox on 02/24/06 14:24

Following on from Mark's message. . .
>relevant code:
>
>// submit comment
>if( $name && $comment )
>{
> $query = "INSERT INTO comments (name,email,comment,id) VALUES
>('$name','$email','$comment',$id)";
> mysql_query($query,$db);

You /have/ taken precautions to avoid SQL injection?

--
PETER FOX Not the same since the cardboard box company folded
peterfox@eminent.demon.co.uk.not.this.bit.no.html
2 Tees Close, Witham, Essex.
Gravity beer in Essex <http://www.eminent.demon.co.uk>

[Back to original 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

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