Jump to content
Fórum Script Brasil
  • 0

problemas com uploadify


mdmdeda
 Share

Question

ola a todos! estou fazendo um sistema de upload de fotos usando uploadify. meu problema e e que quando chama o formulario de gravacao das fotos(uploadify.php) não consigo pegar o id do usuario, como posso fazer isso? seque meu script!

<!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" xml:lang="en-US" lang="en-US">

<head>

<meta http-equiv="content-type" content="text/html; charset=windows-1252" />

<title>New document</title>

</head>

<link rel="stylesheet" type="text/css" href="uploadify/uploadify.css">

<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>

<script type="text/javascript" src="uploadify/jquery.uploadify-3.1.min.js"></script>

<script type="text/javascript" src= "uploadify/jquery.uploadify-3.1.js"></script>

<script type="text/javascript">

$(function()

{

$('#file').uploadify(

{

'swf' : 'uploadify/uploadify.swf',

'uploader' : 'uploadify.php',

'folder' : 'uploads',

'buttonText' : 'Selecionar Fotos',

'auto' : true

// Your options here

});

});

</script>

</head>

<body>

<form id="formulario" method="post" action="" enctype="multipart/form-data" >

<input type="hidden" name="idusu" value="1" />

<input type="hidden" id="action" name="action" />

<input type="file" name="file[]" id="file" />

</form>

</body>

</html>

uploadify.php(aqui tenho que pegar o id do usuario)

<!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" xml:lang="en-US" lang="en-US">

<head>

<meta http-equiv="content-type" content="text/html; charset=windows-1252" />

<title>New document</title>

</head>

<link rel="stylesheet" type="text/css" href="uploadify/uploadify.css">

<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>

<script type="text/javascript" src="uploadify/jquery.uploadify-3.1.min.js"></script>

<script type="text/javascript" src= "uploadify/jquery.uploadify-3.1.js"></script>

<script type="text/javascript">

$(function()

{

$('#file').uploadify(

{

'swf' : 'uploadify/uploadify.swf',

'uploader' : 'uploadify.php',

'folder' : 'uploads',

'buttonText' : 'Selecionar Fotos',

'auto' : true

// Your options here

});

});

</script>

</head>

<body>

<form id="formulario" method="post" action="" enctype="multipart/form-data" >

<input type="hidden" name="idusu" value="1" />

<input type="hidden" id="action" name="action" />

<input type="file" name="file[]" id="file" />

</form>

</body>

</html>

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



  • Forum Statistics

    • Total Topics
      150.9k
    • Total Posts
      648.8k
×
×
  • Create New...