SUCCESS!
However.....
if ( $_REQUEST['Submit'] ) {
makes it work (using my own form button ID).
Why it doesn't work without this on my machine is beyond me. But it doesn't.
Could it be somehow there is something about accessing the $_REQUEST that changes something?
I am baffled as to the cause, but anyway it does work now.
Thanks for your help.
On 4/21/13 3:56 PM, David OBrien wrote:
I should note my user name in this case *is* an email address, however
the dots in that address are *not* being converted to underscores as
mentioned (at least not visibly).
I just created a free account there and the email says my username is
dgobrien@xxxxxxxxx
but I connected to it from sqlyog and a php page by using JUST "dgobrien"
<?php
$host = "instance44364.db.xeround.com:3924";
if ( $_REQUEST['Submit'] ) {
$conn = mysql_connect( $host, $_REQUEST['username'], $_REQUEST['password']
) or die( mysql_error() );
if ($conn) {
mysql_select_db("uwharrie") or die( mysql_error() );
echo "Connected<br>";
}
}
?><form id='login' action='index.php' method='post' accept-charset='UTF-8'>
<legend>Login</legend>
<input type='hidden' name='submitted' id='submitted' value='1'/>
<label for='username' >UserName*:</label>
<input type='text' name='username' id='username' value='dgobrien'
maxlength="50" />
<label for='password' >Password*:</label>
<input type='password' name='password' id='password' maxlength="50"
value='mmmmmm' />
<input type='submit' name='Submit' value='Submit' />
</form>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php