Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // file1.php
- $(".signed").click(function(evt) {
- $.post("test.php", {test: 'test'});
- $("#test").load("test.php");
- })
- // file2.php
- $test = $_POST['test'];
- echo $test['0'];
- echo $test;
- if(isset($test))
- {
- echo "yes";
- }
- else {
- echo 'fail';
- }
Add Comment
Please, Sign In to add comment