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 :: get today date in php 
Php :: php remove last character from string if comma 
Php :: php tags 
Php :: count in string php 
Php :: php uuid generator 
Php :: update query wordpress 
Php :: php foreach associative array 
Php :: centos excecutable php 
Php :: DB::rollback() 
Php :: laravel query builder join 
Php :: laravel drop multiple columns 
Php :: echo session 
Php :: laravel debug 
Php :: php goto 
Php :: php check if string contains number 
Php :: return response array laravel 
Php :: how to get video duration in php 
Php :: laravel excel set cell height 
Php :: laravel check collection has key 
Php :: laravel get next record 
Php :: swich in php 
Php :: laravel select all except some columns 
Php :: laravel get full url with parameters 
Php :: php count array elements with specific key 
Php :: php in array 
Php :: PHP strrev — Reverse a string 
Php :: concat and search in laravel eloquent 
Php :: store as real file name laravel uplaod 
Php :: laravel validate unique column 
Php :: php convert special characters to normal 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =