Skip to content

Instantly share code, notes, and snippets.

@taitokiss
Last active November 11, 2018 02:42
Show Gist options
  • Save taitokiss/164d37d37ab601b4d7d8b1a90dae783a to your computer and use it in GitHub Desktop.
Save taitokiss/164d37d37ab601b4d7d8b1a90dae783a to your computer and use it in GitHub Desktop.
ajax 1つデータを受け、計算結果を返す
<?php
$id = filter_input(INPUT_GET, 'val');
echo $id + 100;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment