What is the best way to put a text box on the following HTML page and then, without reloading the page, get its content in PHP when the user clicks the button?
<?php require_once "phpuploader/include_phpuploader.php" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Simple File Upload - use SaveDirectory property</title>
<link href="demo.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="demo">
<h2>Attach some files</h2>
<p>Attach some files using the button below.</p>
<ul>
<li>Allowed file types is set to: jpg, gif, png, zip
- multiple files (Max 10M)</li>
</ul>
<?php
$uploader=new PhpUploader();
$uploader->MultipleFilesUpload=true;
$uploader->InsertText="Upload Now";
$uploader->MaxSizeKB=10240;
$uploader->AllowedFileExtensions="jpeg,jpg,gif,png,zip";
$uploader->SaveDirectory="savefiles";
$uploader->Render();
?>
</div>
</body>
</html>
I know I can use form and Post but I want to stay on the same page.