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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.