I need PHP help.....?

  • Thread starter Thread starter ben
  • Start date Start date
B

ben

Guest
I don't
In HTML, you could do something like this.

<input type="text" id="noname" onblur="thefunctionIwant()" />

I don't want them to Post anything. Only when they take their focus off of the textarea. It's possible to do that with JavaScript but I need to use PHP to be able to do what Im planning to do...

And then in JavaScript..

var nonamevalue = document.getElementById("noname").value;

Is there a way to do the same JavaScript code above but using PHP?

Thank you so much! :D
Like, I DONT want them to have to press Submit...

I want "username" to be stored into a variable and then check if the MySQL database exists with that name..
 
<form type=POST action="file.php>
<input name="name" value="ollie">
</form>

file.php
<?php

$name = $_POST['name'];
echo $name;

?>

Anyother help im just a ticket away http://support.okd.me



______
Use Sessions


page1.php
<?php
session_start();
$_SESSION['name'] = 'ollie';
?>

page2.php
<?php
session_start();
$name = $_SESSION['name'];
echo $name;

// mysql connect required

$find_username = mysql_query("SELECT user FROM people WHERE user = '$email'");
$duplicate_username = mysql_num_rows($find_username);

if (($duplicate_username == 0))
{
// not in the database
}
else
{
// you cannot this user its already in DB
}
?>
 
Back
Top