guymclarenza Posted January 25, 2021 Share Posted January 25, 2021 I have a field gmap the data would be a variation of this, the gmap data to place the map on the site. The rest of the string is in my code because I want to size the iframe etc. Whean I use an input form to update this field using Null data and using a simple text line like yellow, the script works, when I try and add data as below I get a 403 error, how can I resolve this? https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3573.197380400117!2d28.465316315605516!3d-26.41710627907957!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x1e94d9c942963de9%3A0xc560ec1cd5d52b74!2sArrie%20Nel%20Nigel%20Pharmacy!5e0!3m2!1sen!2sza!4v1603786030983!5m2!1sen!2sza> Code Should I str_replace all the ! with asccii? or something else? Quote Link to comment https://forums.phpfreaks.com/topic/312043-adding-code-to-database-redirects-me-to-403-error/ Share on other sites More sharing options...
requinix Posted January 25, 2021 Share Posted January 25, 2021 You're getting a 403 with your own site? What do the server error logs say? Quote Link to comment https://forums.phpfreaks.com/topic/312043-adding-code-to-database-redirects-me-to-403-error/#findComment-1583979 Share on other sites More sharing options...
guymclarenza Posted January 29, 2021 Author Share Posted January 29, 2021 I solved the problem, It was down to having ' in the string. Quote Link to comment https://forums.phpfreaks.com/topic/312043-adding-code-to-database-redirects-me-to-403-error/#findComment-1584122 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.