hi
how to alert a session variable in javascript function
queenc -1 Junior Poster
Recommended Answers
Jump to Post<?php session_start(); $_SESSION['user']="test"; echo "<script type='text/javascript'>alert('".$_SESSION['user']."');</script>"; ?>
Like this ?
All 4 Replies
nav33n 472 Purple hazed! Team Colleague Featured Poster
queenc -1 Junior Poster
nav33n 472 Purple hazed! Team Colleague Featured Poster
mschroeder 251 Bestower of Knowledge Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.