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

Array Traversing With HTML Input Field

My Program Successfull Run but Not Resolve Negative Number Input in Html input field Show message in alert Box Undefined Hot to Run else Conditon <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Array Traversing</title> <script> let…

VIEW QUESTION
Back To Top
Search