Copy link to clipboard
Copied
I have 2 pages, namely main.html and list.php The Main Pageincludes the following code and consists of a dropdown that i want to pull some database records into by calling the function fillCategory contained in list.php
Content on main.html
Copy link to clipboard
Copied
I think that this is the line in error:
<script language="javascript" src="list.php"></script>
The <script> tag is generally used to include client-side script. I believe that PHP will recognize on the server-side, but you need to change "javascript" to "php". You may want to use a PHP include or require statement, instead.
Also, you might need to remove the "<?php" and "?>" delimiters from list.php.
HTH,
Randy
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more