How to display a JSON response on separate lines using jQuery and PHP

后端 未结 4 956
离开以前
离开以前 2021-01-16 07:54

I am using AJAX to submit a form, and would like to display a summary of the information on the page so that the user can confirm the information before submitting. I am hav

4条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-16 08:02

    $return['message'] = 'First Entry: ' . $_POST['Name1'] . '
    ' . 'Second Entry: ' . $_POST['Name2'] . '
    ' . 'Third Entry: ' . $_POST['Name3'];

提交回复
热议问题