You are here: Re: I get a syntax error when trying to learn code in a quick start guide. « PHP SQL « IT news, forums, messages
Re: I get a syntax error when trying to learn code in a quick start guide.

Posted by J.O. Aho on 12/14/06 18:55

cerberus wrote:
> I've gone through the form and php, and found that the id is passed on
> when you click delete from the blog. but the id is NOT passed to the
> "are you sure you want to delete" submit button.

You need to add the id to the form that the submit button belongs to
I assume you have fetched the id and stored it in the $id variable, ad the
following to the form

<input type="hidden" name="id" value="<?php echo $id; ?>">

I know that the php-tag can be made smaller, but just had the bad habbit to
type the long tag instead.


--

//Aho

 

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

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