And I try:

Quotations in html tag attribute problem value

<?php    
$myname = 'my name have quotation marks " <- here';
?>

And I try:

<input type="text" name="newnameproposition[<?php echo $myname ?>]">

And html have a little problem because:

name="newnameproposition[my name have quotation marks " <- here]"

Can anyone have such a problem?

+3
source share
1 answer

Take a look at htmlentities ()

+4
source

Source: https://habr.com/ru/post/1790836/


All Articles