Pushing session data to a PHP file included via '<script>' -


i have small problem can't find exact solution to.

i have file called push.php grabs required information database, stores data via sessions , header redirect listing.php.

of course expect, listing.php able use session data , display info.

there external php file called in using <script type="text/javascript" src="map.api.php"></script> uses both js , php generate map. in map.api.php file not letting me echo session data (and yes, have started file session_start();)

how can post session data map.api.php without having reload page?

i think should use

include map.api.php; 

instead of

<script src="map.api.php"></script> 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -