Is it possible when pressing the button to do three functions at the same time?

There is a block div, which displays data from database. Records are displayed one at a time.
When you press the button 1)to change the value of php variable $step to 1, 2) to obtain the value of the selected radio, and pass in the php function. The function result is number of records from the database, which 3)should be displayed in a div. Please help to implement. A lot of time spent on it and no avail...
June 5th 19 at 21:38
2 answers
June 5th 19 at 21:40
It's certainly more rhetoric than answer. Because the sane response to such a malformed question, it is difficult to provide. I understand that you are a student, but you have a complete mess of fragments of knowledge (front, back, etc.). In addition, it is not necessary to ask the same thing three times, only a few to paraphrase the context of the question.
If you have a specific assignment in the University, bring him in.
If you saw your bike for self - development please give the full code.
No one will teleportirovat that the button that you describe, it is necessary to believe: submits the form, or Vice versa, is handled by jquery to make an asynchronous request...
More to the point, or spherical cloven-hoofed in a vacuum:

//logic database
$result = mysql_query('SELECT * FROM `somwhere` WHERE `somewhat` = '.$_POST['param'].');
if (!$result) {
 die('Invalid query:' . mysql_error());
//logic database
$step =POST['step'];
the <div><? php echo $result; ?></div>
<input type="hidden" name="step" value="<?php echo $step; ?>">
<input type="radio" name="param" value="1">Entry 1<br>
<input type="radio" name="param" value="2">Record 2<br>
<button type="submit">Send</button>
June 5th 19 at 21:42
Thank you very much! Very helpful!

Find more questions by tags PHP