Jump to content

how to add a data to a PHP page??


PHP1234

Recommended Posts

dear all

 

i am new somehow to PHP but i have a good info. about programming in general (c/c++ , vb , C# ...etc)

 

my ques. now is about the following

 

  i have a page PHP+html with a textbox and submit button , what i need that each time a word in written in the textbox and the user click the submit button ,the word should be added to a table in the same page

 

  as the following

 

        1- test1

        2- car

        3- man

and so on

 

i need to know what is the best ways to edit the page and to add such info

 

the page don't used any DB so the data must be updated to the page

 

thanks all

 

Link to comment
https://forums.phpfreaks.com/topic/88167-how-to-add-a-data-to-a-php-page/
Share on other sites

It sounds more to me that he wants the data to be displayed for every user, rather than just the user that submits it.  For that you're going to have to use either a database, a file or you can try editing the page then uploading it (not sure if this will work though).

 

I'd suggest using a .txt file or something similar though if a database is not an open, look up fwrite and file_get_contents in the manual.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.