skip to Main Content

PHP variable inserted into JS script

I have a php variable obtained from a post: <?php $pdf_name = $_POST['pdf_name']; echo $pdf_name; ?> When I insert it into the flipbook script I get an error: <script type="text/javascript"> $(document).ready(function () { $("#read").flipBook({ //Layout Setting pdfUrl:'uploads/pdf-gallery/<?php $pdf_name ?>', lightBox:true,…

VIEW QUESTION
Back To Top
Search