|
||||
<html>
<head> <title>Title here!</title> </head> <body> <form action="upload.php" method="post" enctype="multipart/form-data"> <input type="hidden" name="MAX_FILE_SIZE" value="2M"> Select a file to upload! <input type="file" name="userfile"><br> <input type="submit" value="Upload!"> </form> </body> </html>
__________________
-ariana zellina- |
|
||||
PHP code nye mana?
__________________
<form name="jump"> <select name="menu" onChange="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" style="border:1px #393F31 solid;color:#393F31;font:10px Verdana;font-weight:bold;" > <option value="0" style="background: #9CC8FE" selected>*SELECT-LINKS</option> <option value="http://www.gengturbo.org/" style="background: #FF0000">GENGTURBO</option> <option value="http://www.phixelgrafix.com/" target="new" style="background: #C6D607">PHIXELGRAFIX</option> <option value="http://dailydigital.phixelgrafix.com/" style="background: #FCBC45">OLD-BLOG</option> <option value="http://www.mesrahosting.net/" style="background: #FF99CC">WEBHOSTING</option> </select> </form> |
|
||||
$record = array(); # Initialize an array to hold the record data to insert
$test=$_FILES['attachment']['size']; if ($test > ($_POST['MAX_FILE_SIZE'])) { $msg = _ADDFAILED . "<br>" . $dbconn->ErrorMsg(); } else { // Set the values for the fields in the record $filename = "$owner" . "_" . $_FILES['attachment']['name']; $record[$column['attachment']['type']] = $_FILES['attachment']['type']; $record[$column['attachment']['size']] = $_FILES['attachment']['size']; if(move_uploaded_file($_FILES['attachment']['tmp_name'], $conf['path']['folder']['attachments'] . "/$module/$filename")) { $record[$column['attachment']['filename']] = $filename; } $record[$column['attachment']['module']] = $module; $record[$column['attachment']['owner']] = $owner; $record[$column['attachment']['desc']] = common::checkslashes($_REQUEST['desc']); $record[$column['attachment']['keywords']] = common::checkslashes($_REQUEST['keywords']); $record[$column['attachment']['cre_by']] = $_SESSION['sess_ref_id']; $record[$column['attachment']['cre_time']] = time(); $record[$column['attachment']['upd_by']] = $_SESSION['sess_ref_id']; $record[$column['attachment']['upd_time']] = time(); $sql = "SELECT * FROM " . $table['attachment'] . " WHERE " . $column['attachment']['id'] . " = -1"; // Select an empty record from the database $rs = $dbconn->Execute($sql); // Execute the query and get the empty recordset $insertSQL = $dbconn->GetInsertSQL($rs, $record); //generating insert statement $result = $dbconn->Execute($insertSQL); $msg = _ADDSUCCEED; //common::AutoRedirect($delay,$goto,$code,$param,$ms g) $param = "&c_code=$owner&category=$category"; if(isset($_REQUEST['ispopup']) && $_REQUEST['ispopup'] == "1") $param .= "&ispopup=1"; common::AutoRedirect(1,common::PrepUrl("goto.php") ,"contact_attachment","$param","$msg");
__________________
-ariana zellina- |
|
||||
html code
<form name="add" method="post" action="{$action_file}" onsubmit="return ValidateForm()" ENCTYPE="multipart/form-data"> <input type="hidden" name="MAX_FILE_SIZE" value="2000000"> <table cellspacing="0" cellpadding="6" width="100%" border="1" bordercolor="#FFFFFF" align="center" bgcolor="#E4EAF2"> {PrintMFileField label=$smarty.const._ATTACHMENT name="attachment" size="30"} {PrintTxtField label=$smarty.const._DESC name="desc" size="30" maxlength="50"} {PrintTextAreaField label=$smarty.const._KEYWORDS name="keywords" cols="60" rows="6"} <tr class="formheader"> <td colspan="2" align="center"> <br> <button class="button" onClick="javascript:window.opener.location.href = window.opener.location.href;window.close();">Cance l</button> <input class="button" type="submit" name="upload" value="Upload" onClick="this.form.action.value='attach';"> {if $smarty.request.ispopup == "1"} <button class="button" onClick="javascript:window.opener.location.href = window.opener.location.href;window.close();">Done</button> {else} <input class="button" type="submit" name="upload" value="Done" onClick="this.form.action.value='done';"> {/if} <br><br> <font class="bodytext">Note: Maximum filesize is 2Mb</font> </td></tr> </table>
__________________
-ariana zellina- |
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tulun Aku.. Camner nak wat user login kat ASPX aaa | thorax_101 | Website Design | 3 | 09-07-2005 10:10 PM |
| Calling all php hustler. | koisempoi | Website Programming | 21 | 03-12-2003 07:27 PM |
All times are GMT +8. The time now is 02:10 AM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.












Linear Mode

