PHP Classes

File: emulate.php

Recommend this page to a friend!
  Classes of Dave Smith   PHP dotGo Engine   emulate.php   Download  
File: emulate.php
Role: Auxiliary script
Content type: text/plain
Description: Mobile emulator web interface
Class: PHP dotGo Engine
Interact with SMS messages sent to your site
Author: By
Last change:
Date: 7 years ago
Size: 1,967 bytes


Class file image Download
//dotgo mobile emulator
//for use with dotgoEm class ver 0.1 beta

$emulate = new dotgoEm();

if( !empty(
$_REQUEST['formPosted']) ){
$query = $_REQUEST['query'];
$shortCode = $_REQUEST['shortCode'];
$response = $emulate->getResponse($query,$shortCode);
$_REQUEST['query'] = '';
$_REQUEST['shortCode'] = '';
$response = '';

<!DOCTYPE html>
        <style type="text/css">
                color: whitesmoke;
                background-color: black;
                width: 300px;
                height: 400px;
                border: thin solid white;
                width: 300px;
        <div id="apiResponse"><?PHP echo $response;?></div>
        <div><a href="" target="_blank"><img src="img/DOTGO_powered.png" width="80" height="15" border="0"></a></div>
        <form method="POST">
            <input type="text" name="query" value="" id="queryText" autofocus="true"><br>
            <select name="shortCode">
                <option value="368266"<?PHP echo ( $_REQUEST['shortCode'] == '368266' ) ? ' selected' : '';?>>DOTCOM (368266)</option>
                <option value="368638"<?PHP echo ( $_REQUEST['shortCode'] == '368638' ) ? ' selected' : '';?>>DOTNET (368638)</option>
                <option value="368674"<?PHP echo ( $_REQUEST['shortCode'] == '368674' ) ? ' selected' : '';?>>DOTORG (368674)</option>
            <input type="hidden" name="formPosted" value="1"><input type="submit" name="formSubmit" value="Send">