20 lines
636 B
PHP
20 lines
636 B
PHP
<form id="uploadForm" action="/?page=saisieajax&q=logo/upload" method="post" enctype="multipart/form-data">
|
|
<input name="MAX_FILE_SIZE" value="100000" type="hidden">
|
|
<input type="hidden" name="siren" value="<?=$siren?>"/>
|
|
<label>Fichier:</label><input name="file" type="file">
|
|
<input value="Envoyer" type="submit">
|
|
</form>
|
|
<p>
|
|
</p><div id="uploadOutput"></div>
|
|
<script type="text/javascript">
|
|
$('#uploadForm').ajaxForm({
|
|
dataType: 'html',
|
|
target: '#uploadOutput',
|
|
beforeSubmit: function(a,f,o) {
|
|
$('#uploadOutput').html('Envoi en cours...');
|
|
},
|
|
success: function(data) {
|
|
$('#uploadOutput').html(data);
|
|
}
|
|
});
|
|
</script> |