forked from seantomburke/gvmax-php-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.php
More file actions
25 lines (22 loc) · 864 Bytes
/
example.php
File metadata and controls
25 lines (22 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
require_once 'gvmax.class.php';
$gvmax = new GVMax('XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'); //get your API from www.gvmax.com
if($_GET)
{
$output = $gvmax->sms($_GET['text'], $_GET['number']);
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<header>
<title>GVMax Send Example</title>
</header>
<h1>GVMax</h1>
<h2>Send a text with GVMax</h2>
<form name="input" action="<?php echo $_SERVER['PHP_SELF'];?>" method="get">
<input type="text" name="text" value="<?php echo $_GET['text']; ?>" placeholder="Text"/><br>
<input type="text" name="number" value="<?php echo $_GET['number']; ?>" placeholder="Number"/><br>
<input type="submit" value="Submit"/><br>
<?php echo $output ?>
</form>
</html>