You are here: Re: publish and save button question « All PHP « IT news, forums, messages
Re: publish and save button question

Posted by Rik on 12/19/06 01:40

the red dot wrote:
> i hope i can explain this clearly enough (i am not very good at
> jargon - correct terms - etc) hell im not even sure if i am in the
> right group... anyway here we go
>
> im trying to build a page where the user can enter some details in a
> form and (on clicking submit/publish/etc) it is uploaded to a
> database and the words entered can then be seen via another page
> (like a blog) all well and good i can do that
>
> but,
> i also would like a 'save' button which would save the entry for later
> updating/publishing - and i am stuck as to how to make this button do
> this...
>
> i dont know if what i am asking for is simple or difficult and was
> hoping that somone could point me to some sort of tutorial, ive tried
> searching but am unsure of what search terms i should actually be
> inputting in order to get an answer
>
> sorry to bother you folk with this but i am an old man (45 ha) in my
> final year at university and all our php lecturers have left (taken
> early redundancy) so im stuck with no-one to ask.

It depends on how it works exactly:
- It it's about logged in users, I assume you have a database, in which you
could simply store the known fields in a table.
- If you want to store the data on the server, but isn't highly sensitive,
and your users are anonymous, then server them a cookie with a unique id,
store the data in a table with that unique id, and as soon as a visitor
returns with that particular cookie fill the forms with previous entered
information before you server it. Store a timestamp with it, and clean it
up after a while, as users will enevitable either clear their cookies or
not return at all.
- If the data is relatively small, not sensitive, and you have anonymous
users, you could opt to storing all entered information in a /several
cookie{s}. Only do this if the amount of data is very small, totally
unsensitive, and it's ok to lose it.
--
Rik Wasmus

 

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

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