About passing strings in js
YOSIN_L
YOSIN_L 2018-06-23 20:46:20
0
2
1247

<script>

function doDel(id) {

alert(id);

if(confirm('Confirm deletion? ')) {

                                                                                             window.location='action.php?action=del&p_id='                                                    

                                                                                                                ;

PHP in

echo "<td>

                                                                                             'p_id']})'>Delete</a>

</td>";

## Problems encountered: I am now A number like $row['p_id']=20151000 can be passed, but once $row['p_id']=qwq121, it will show that qwq121 is undefined. How to solve it?


YOSIN_L
YOSIN_L

reply all(1)
小さな手は

Brother dei must have quotation marks $row['p_id']='qwq121';$row['p_id']="qwq121";

  • reply Yeah, yeah, I got it done. I typed it wrong at first. It was really embarrassing. I thought I was wrong.
    YOSIN_L author 2018-06-24 00:39:27
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template