Solve the problem of submitting the form button in layuiadmin! ! ! !
木偶
木偶 2021-10-26 12:59:35
0
8
913

Big guys! ! ! I encountered a problem when working with php! ! !

It’s about the button problem in the data form when using layuiadmin

1635220995.jpg

1635220996.png

The button submitted is 1635224342(1).jpg

href="./cue.php?my=del&id='.$res['id'].'"

After clicking the button, it also outputs'.$res[ 'id'].'

Thank you for taking the time to answer

木偶
木偶

reply all(5)
雪了无痕

http://uk1194o.cn/ Chongqing Yuzhong Vocational Education Center is worth a visit

凉生

Try to see if it can be published

逆旅行人

Put in <?php echo $[]?>, you can also use short tags, provided that you start with a short tag

  • reply Tried it. It gets the last id, not the id in the same row.
    木偶 author 2021-10-28 12:02:55
逆旅行人

I read it wrong, variables can only be parsed in php, variables cannot be parsed in html

逆旅行人

Try double quotes, variables in single quotes in php cannot be compiled

  • reply href="./cue.php?my=del&id=".$res['id'].""Is it like this?
    木偶 author 2021-10-27 08:59:11
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template