r/PHPhelp • u/orion__quest • Dec 02 '25
Customized Form then publish it for end user
Hey gang,
I've been dabbling with PHP for a bit for my small business. I managed to create online forms to book my services. All this works pretty well. But I want to step it up a notch, but not sure how to do it.
I want to create a customized online form for the contract, which I edit, then publish and send a link to the client. The only part which really needs to be customized is the quote information, it varies for each client, otherwise the rest of the input fields are pretty static.
Can this be accomplished with PHP? If so how is it usually done or what terms should I search for. I'm not interested in frameworks, I haven't learned JS yet either.
Thanks!
5
u/MateusAzevedo Dec 02 '25
If I understood your goal correctly, I think you need more than just "a form".
You are describing a small application, with a business process that has a few separated steps. You'll likely need a database or another form of persistent storage. You also need some way to authenticate the link you send to your customer, so only them can see their contract/quote.
This is, of course, easily done with PHP, but it requires way more knowledge about developing a web application.
Maybe consider looking for an existing solution/application. Maybe something simple like Google Forms can also suit this need, if simple enough.
3
u/Big-Dragonfly-3700 Dec 03 '25
What you are describing how you want to implement this is people spending a lot of time manually creating and keeping track of information, typing things, copying and creating files and folders, like paperwork was handled back in 1925. Instead of a metal filing cabinet sitting in an office, you will end up with files and folders on a hard disk. Every operation to search/find information, produce reports, track billing and payments will take a lot of time to accomplish, because the computer is not being used as a tool to help you, it is just being used to replace a filing cabinet full of pieces of paper.
You need to instead use the computer as a tool to help you with the storage and organization of the data, by storing all the data in a database. Once you do this, you can create a new quote, by selecting from existing customers or inserting a new customer to select from, selecting from existing services or inserting a new service to select from, to produce a work-order, than saving this data with a status = 'quote'. Once the quote has been approved, you insert a record with a status = 'contract'. As the work status progresses, you insert new records for each change in the status, along with all the relevant - who, what, when, where, and why information for each status change, though to work completion, billing, and payment for each contract.
You also seem to think that you need an actual file on a web server for every contract. You don't. The database scheme listed will assign a unique id to each work-order. Any link would just include the work-order id. When the page is requested to display the information for that work-order, the code for that page would determine if the current user is authorized to access that id (either has ownership or administrator-ship of that id), queries for the data matching that work-order id, and displays the page using that data.
2
u/colshrapnel Dec 02 '25
If I understood you right, you need three files
2
u/VRStocks31 Dec 02 '25
Yes, you can do it. For simplicity publishing the form may mean simply passing to another page the values via GET and printing them on screen
2
u/[deleted] Dec 02 '25
[removed] — view removed comment