O
O
overh1t2022-01-31 23:07:08
PHP
overh1t, 2022-01-31 23:07:08

How to store user responses in php variables?

Hello everyone,

I can not find a solution for the telegram bot in php! Can you please tell me how to save user responses in different variables? For example,

First Name
Last Name
Age
, etc.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vlog, 2022-02-01
@vlog

You don't need variables, you need a database. Variables are variables for that, they will be updated every time your code is executed and you do not save any data in them.
Perhaps, of course, I misunderstood you and you really need variables, but something tells me that you want to save user data so that you can use it for future requests.
Learn how to work with a database or write to a file (which I strongly advise you not to do). Nothing can be saved in the script.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question