html code
receiver.phpCode:<input type="text" value="good on you" name="nameInput"/> <input type="submit" value="Submit" onClick="nameInput.submit();" method="post" action="receiver.php">
Result: receiver.php is not loaded (shown).Code:<?php $nameInput = $_POST['nameInput']; echo "nameInput: ".$nameInput."<br>"; ?>
Is it possible to pass an object's value to php without using FORM?
If yes, what is wrong on code above?
Thanks.
.


Reply With Quote
Bookmarks