Search
 
SCRIPT & CODE EXAMPLE
 

PHP

popup in php

<body>
<?php
$message='Here is an alert message written by php';
 
echo '<script type="text/javascript">window.alert("'.$message.'");</script>';
?>
</body>
Comment

POP UP WITH PHP FUNCTION

<?php
// PHP program to pop an alert
// message box on the screen
  
// Function definition
function function_alert($message) {
      
    // Display the alert box 
    echo "<script>alert('$message');</script>";
}
  
  
// Function call
function_alert("Welcome to Geeks for Geeks");
  
?>
Comment

POP UP WITH PHP

<?php
// PHP program to pop an alert
// message box on the screen
  
// Display the alert box 
echo '<script>alert("Welcome to Geeks for Geeks")</script>';
  
?>
Comment

popup en php

<body>
<?php
$message='Voici un message en javascript écrit par php';
 
echo '<script type="text/javascript">window.alert("'.$message.'");</script>';
?>
</body>
Comment

popup en php

<script>alert("<?php echo htmlspecialchars('Voici un message en JS écrit par PHP', ENT_QUOTES); ?>")</script>
Comment

PREVIOUS NEXT
Code Example
Php :: view a pdf file in the browser using the php header function 
Php :: codegreper 
Php :: php how to get am pm from a datetime 
Php :: php check if object has key 
Php :: php get elapsed time 
Php :: wordpress get post thumbnail url 
Php :: php save array to file 
Php :: date_default_timezone_set india 
Php :: wp_query count result 
Php :: open php.ini in ubuntu 
Php :: clear log file laravel command 
Php :: get cart page url in woocommerce 
Php :: php dom add class to element 
Php :: how to remove first element in array php 
Php :: php filter emal 
Php :: php reset array keys 
Php :: wordpress get archive title 
Php :: laravel blade errors all 
Php :: php difference between two dates in years months and days 
Php :: laravel add values to request 
Php :: php get only numbers from string 
Php :: common array methods php 
Php :: php change timezone 
Php :: hwo to limit char in php 
Php :: htaccess cakephp 
Php :: test a single file laravel 
Php :: laravel append array to array 
Php :: parent directory in php 
Php :: php remove characters not numbers or letters 
Php :: how to add hour minute seconds in php datetime 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =