+ 1

problem occuring while using php tags nsidie a form attribute

hello coders! its a problem occuring for me while i am using the code like this <form id='img<?php echo $imgid;?>' action='' method='post'> </form> the form tag not reading the other attributes after the php closing tag ?> previosly it was working but i am confused why its not working now. refer this code ...... https://code.sololearn.com/wZ7ltoVXphao this code is modified to show the output here, but the php syntax is likely same i have usied in my project... somebody please help about how to use php tags in html attributes.

20th Aug 2018, 6:30 AM
Prakash
Prakash - avatar
2 Antworten
+ 3
Try to echo $imgid outside the form tag and see if it is valid. Also, to get the $pic image to load in CPG you need to escape the slashes in $pic URL with addcslashes (in CPG). The code is quite long and it's difficult for me to check as I'm on a phone : )
20th Aug 2018, 7:18 AM
Ipang
+ 2
thanks Ipang
20th Aug 2018, 1:00 PM
Prakash
Prakash - avatar