I need help with PHP.?

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

ben

Guest
I need help. It has to do with databases, too.

In JavaScript, you could do something like this.

<input type="text" id="noname" />

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
I need to do this WITHOUT them posting anything.

I need it when then take their focus off of the textarea use

onblur="somefunction()"
Do you know how to do it using AJAX?
 
You are attempting to retrieve the value of the input field "noname" once the form is posted I am assuming...

Here's how:
$noname = $_POST['noname'];

> Because PHP is processed on the server-side there is no way to do that (to my knowledge) without some sort of page refresh with PHP.

You would have to use Asynchronous Javascript (AJAX)
 
Back
Top