•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 373,927 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,246 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 316 | Replies: 3
![]() |
•
•
Join Date: Jul 2007
Posts: 94
Reputation:
Rep Power: 2
Solved Threads: 2
Hi
Using a form you can have the user type in there data and then onsubmit, link to another page. On that page you should have the writing to a text file all the seperate data on different lines. If you want you can have it write to two text files and make it so only one of them can have data deleated from, therefore creating an admin accound. Obviously this is a simple way a much more complex and reliable way would be to use a database. If you give me an idea of what you want i could write the code for you.
Using a form you can have the user type in there data and then onsubmit, link to another page. On that page you should have the writing to a text file all the seperate data on different lines. If you want you can have it write to two text files and make it so only one of them can have data deleated from, therefore creating an admin accound. Obviously this is a simple way a much more complex and reliable way would be to use a database. If you give me an idea of what you want i could write the code for you.
•
•
Join Date: Jul 2006
Posts: 102
Reputation:
Rep Power: 2
Solved Threads: 0
Thanks for the reply. But I wish to create consent forms. Where the user views the agreement and then hits the submit button. I need to give the admin the right to edit the text displayed in the consent form. What is the norm for doing this? Do I save the text in the database or should I create text files?
•
•
Join Date: Feb 2007
Location: St. Vincent and the Grenadines, Caribbean
Posts: 906
Reputation:
Rep Power: 3
Solved Threads: 38
•
•
•
•
What is the norm for doing this? Do I save the text in the database or should I create text files?
Forget the norm. Do what best suits you.
If your site is not already run on a database, creating one *just* for the consent form can be expensive. In that case I would stick with the text file.
However, if the site is already run on a database, maintaining this feature through the database will not take much effort at all, and I most likely would suggest you do that.
There would also be other factors for you. My advice would be to weigh in the rpos and the cons to each, crossing out or amplifying each ones that apply to you according to you situation. In the end, you should pick hat is the best fit for your website, and not something else for the sake of conforming to the norm.
Half and a half meck a whole, and I donned it a hundrid purcent
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
Other Threads in the PHP Forum
- Previous Thread: php header() redirect issues
- Next Thread: hi


Linear Mode