Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (isset($_POST['submit'])) {
- $twitchArray = array(
- "TwitchName" => $_POST['twitchName'],
- "TwitchHref" => $_POST['twitchHref'],
- "TwitchDescription" => $_POST['twitchDescription']
- );
- $json = json_encode($twitchArray);
- $file = 'twitch.json';
- file_put_contents($file, $json);
- echo json_decode('twitch.json');
- }
- ?>
Add Comment
Please, Sign In to add comment