Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Browse and send


giancarlo37

Recommended Posts

Posted

i have been trying to implement this script for 2 days, all i need is to create a button to browse and attach a file, and send with the same button as send button in cantact_us.php file.

 

i did a script to do it but i failed to put it in cantact_us.php file, any idea:

 

 

<? if(isset($Post['skicka'])) {

if(!($FILES['fil']['name']==""||$_FILES['fil'] ['name']=="none")) {

if (is_uploaded_fil($_FILES['fil'] ['tmp_name'])){

move_upploaded_file($_FILES['fil'] ['tmp_name'],"program/apache group/apache/htdocs/catalog/

".$_FILES['fil'] ['name']."<br>";

}

}

}

?>

 

<form method="post" action= "filupp.php"

enctype="multipart/form-data">

V?lj bild att ladda upp:<br>

<input type="file" name="fil" size="25"><br>

<input type="submit" name="skicka" value="skicka">

</form>

 

 

Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...