F
F
Fozzy7772018-02-28 20:59:37
PHP
Fozzy777, 2018-02-28 20:59:37

How to set the name of the post request parameter from a variable?

Actually there is a $name variable.
How to substitute it instead of the parameter name in a curl request:
Example:

$curl->postdata('first='.$first'&last='.$last.'&тут_переменная='.$value.'');

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2018-02-28
@Fozzy777

..."&$name="...
or
...'&'.$name.'='...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question