Jump to content

piznac

Members
  • Posts

    261
  • Joined

  • Last visited

Everything posted by piznac

  1. Yeah sorry I have the last } to close the function just didnt put it in here,.. my bad. And $set is equal to 1 or 0,.. as when I echo it it shows that it is.
  2. I just found this as a comment in the manual: TAGS: session_start headers output errors include_once require_once php tag new line Errors with output headers related to *session_start()* being called inside include files. If you are starting your session inside an include file you must be aware of the presence of undesired characters after php end tag. Let's take an example: > page.php <?php include_once 'i_have_php_end_tag.inc.php'; include_once 'init_session.inc.php'; echo "Damn! Why I'm having these output header errors?"; ?> > i_have_php_end_tag.inc.php <?php $_JUST_A_GLOBAL_VAR = 'Yes, a global var, indeed'; ?> > init_session.inc.php <?php session_start(); $_SESSION['blabla'] = 123; ?> With all this stuff we will get an error, something like: "... Cannot send session cache limiter - headers already sent (output started at ...", right? To solve this problem we have to ignore all output sent by include files. To ensure that we need to use the couple of functions: *ob_start()* and *ob_end_clean()* to suppress the output. So, all we have to do is changing the *page.php* to this: <?php ob_start(); include_once 'i_have_php_end_tag.inc.php'; include_once 'init_session.inc.php'; ob_end_clean(); echo "Woo hoo! All right! Die you undesired outputs!!!"; ?> **if Im not allowed to post stuff like this admins please delete and let me know
  3. OK,.. I have this: <?php function del_art($path,$num){ echo "<script language=\"JavaScript\">var answer = confirm(\"Are you sure you want to delete this file?\");if (answer){alert(\"File will now be deleted\");set = 1;}else{set = 0;}</script>"; $set = "<script language=\"JavaScript\"> document.write(set) </script>"; echo $set; if($set != "0"){ //get just the file name $filename = explode("/", $path); //delete the file $do = unlink("/var/www/html/logo/$filename[4]"); //delete the file from db records $del_art_query = "DELETE FROM `or_logo` WHERE `path` = '$path' AND `num` = '$num'"; $del_art = mysql_query($del_art_query) or die ("del query error:" . mysql_error()); } ?> Now you will see that I threw some JS in there,.. this is for a confirm box. Now the $set variable is working. I echo it and it does change depending on which choice I make at confirm box. But no matter what $set is set to ,.. 0 or 1. It still preforms the rest of the function. Im a bit confused here,.. stupid mistake? Here is where Im calling it: <?php case "delart"; $path = mysql_real_escape_string(trim(stripslashes($_GET['path']))); $num = mysql_real_escape_string(trim(stripslashes($_GET['num']))); require_once("my path"); $this = new Confirm(); $this->del_art($path,$num); $this->dis_order($num); break; ?> Anyone have any ideas?
  4. Yeah l3asturd Im trying to do it after the query
  5. You lost me? SQL? That would be ORDER BY,.. and that would work if I didnt do the calculations after the query. Or is that a php function Im not aware of? I have looked up the "sort" function of arrays,.. but if I explode the results into an array will I then be able to echo them back the way I have?
  6. I have a db with intergers to hold "kills" & "deaths". This is for a game,.. now I have pulled my query ,. done my math,. and came to the number I want. Question is how would I sort it by the lowest number at this point? I need it sorted by "$tt" <?php function ratio(){ $ratio_query = "SELECT name, SUM(death), SUM(kills) FROM `stats`,`members` WHERE `stats`.`key` = `members`.`key_hash` GROUP BY `stats`.`key`"; $ratio = mysql_query($ratio_query) or die("Kills query error:" . mysql_error()); $ratio_row = mysql_fetch_assoc($ratio); echo "<table align=\"center\">"; echo "<tr>"; echo "<td colspan=\"2\"> <b>Kill/Death Ratio</b></td>"; echo "</tr>"; do { $name = explode(" ", $ratio_row['key']); foreach($name as $key){ $deaths = $ratio_row['SUM(death)']; $kills = $ratio_row['SUM(kills)']; $name2 = $ratio_row['name']; //if($deaths = 0){ //$deaths = 1;} $r = $kills/$deaths; $t = 1/$r; $tt = substr("$t",0,4); echo "<tr>"; echo "<td>$name2</td><td>$tt-$deaths-$kills</td>"; echo "</tr>";} }while($ratio_row = mysql_fetch_assoc($ratio)); echo "</table>"; } ?>
  7. I've always found that mine takes it from the server. It may have something to do with a ini setting,.. Im not sure.
  8. Yeah I used it. Could I talk you into an example of this?
  9. Ok,. this may be a bit broad. But hopefully someone can point me in the right direction. I have a function to parse a csv file and insert into a table in my database. This works great so long as its a very simple file. <?php function quickbookimport ($filenameb){ if (file_exists($filenameb)){ $handle = fopen("$filenameb", "r") or die("no file"); while (($data = fgetcsv($handle, 50000, "," )) !== FALSE ){ $or_d = explode("/", $data[0]); $or_d2 = "$or_d[2]-$or_d[0]-$or_d[1]"; $sh_d = explode("/", $data[4]); $sh_d2 = "$sh_d[2]-$sh_d[0]-$sh_d[1]"; $import="INSERT INTO orders(`or_date`,`ship_date`,`ship_via`,`job_name`,`job_desc`,`finishing`,`or_num`,`po_num`,`cust_name`,`tracking`,`pro_date`) values('$or_d2','$sh_d2','$data[5]','$data[6]','$data[7]','$data[8]','$data[1]','$data[2]','$data[3]','','') ON DUPLICATE KEY UPDATE or_date = values(or_date), ship_date = values(ship_date), ship_via = values(ship_via), job_name = values(job_name), job_desc = values(job_desc), finishing = values(finishing), po_num = values(po_num), cust_name = values(cust_name), tracking = values(tracking), pro_date = values(pro_date)"; mysql_query($import) or die("insert" . mysql_error()); } fclose($handle); echo "Import Done - You will be redirected in 5 seconds"; echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"5; URL=http://sewnice.biz/control/\">"; }else{ echo "Import Unsuccessful"; } } ?> Now suppose I had a csv file that read something like this: 2007-05-20,16:24:25,"{WRL}Server/Recruiting",cor1g_con,CON,0,10 "{WRL}Elite.BIG{",Reb,-1,1,4,155,71.222.7.68,399a0fdd1b258a573c435ccc1cc03edf "{WRL}gen.Kinzu",Emp,20,15,1,121,76.25.37.241,b03e4083c2a20010760f6317beb0ff7d "{WRL}fm.=^UW^=M",Reb,5,5,2,54,66.108.170.74,e1c1e880f8130d9748a46368d4339fdf "{WRL}.Lt.Matt",Emp,0,0,0,149,207.162.155.166,8f8fde5b0a5305d7b5281051c91adc79 2007-05-20,16:30:59,"{WRL}Server/Recruiting",dea1g_con,CON,-1,93 "{WRL}Elite.BIG{",Reb,6,5,5,159,71.222.7.68,399a0fdd1b258a573c435ccc1cc03edf "{WRL}fm.=^UW^=M",Reb,36,17,4,59,66.108.170.74,e1c1e880f8130d9748a46368d4339fdf The items in bold I dont need,.. but I know the will impede my parsing of this file. Is there a way to strip these out? Or bypass them someone how? BTW there is no pattern to the number of lines that may occur between each of these in bold. This is an export form a game server and each line is a different player. So it could be anywhere from 1 to 16 lines between each "bold" line (which is the description of the actual game. I am only interested in the first two or three fields. Im not looking for a script (although if you have one handy,. it would save me some work ) just point me in the right direction...thanks!
  10. mysql_fetch_assoc will only pull one record if thats all that matches the query. It will still be in an array,. but there will only be one record.
  11. Yeah I was thinking of storing the password in a cookie and encrypting it. But after your suggestion,.. Im thinking why even create the possible kink in the armor. They will just have to log in ..lol
  12. hmmm,.. that may just be the way to go,.. didn't think about that. Thanks Link!
  13. What if I had another field in the database to define admins(I do already)... and create a different cookie for just admins that holds username & password. Can anyone see why this wouldnt be a good idea?
  14. So that should work then: $to = "tome@myserver.com,$sender" mail($to, $subject, $message, "From: $sender");
  15. Ok is $sender holding the email address from the orginal user? If so then that would work. Im assuming you are collecting the email address.
  16. So you just need it to send to the orginal user as well? instead of doing this: mail("email@yourserver.com", $subject, $message, "From: $sender"); Define your "to" and add the $sender var to it. This should work,.. may not be the best way to do it but it has always worked for me. $to = "email@yourserver.com,$sender" mail($to, $subject, $message, "From: $sender"); ,.. is that what you are looking for?
  17. Ok,.. I am working on a Support Ticket type program. And I have come across a problem. There is an admin section where the "operators" can login and view open tickets and reply to them. Problem is they will get a link in an email to the ticket with the ticket number in url var. What I dont want is to have an operator click the link only to have them login and lose the var(ticket id,..). Does that make sense? I want the link to log them in somehow. Not with it being a link via email I really have no way of knowing who that user is and if they really are that user. I think I could set the session var(username is set in a session var) with thier username (not sure how yet) but that seems very unsecure. Has anyone run into this before? If so,. what was your solution? Just a kick in the right direction is all Im looking for,.. Thanks!
  18. It's customary to provide some code to show you have been working on this. But look up the "mail()" function ,.. that should get you started
  19. http://www.plus2net.com/php_tutorial/php_counters.php Try this,. I havent used it,.. but I have used google before
  20. Use a flat text file to write the data to.
  21. Something like this?: Not sure about making it smoother,.. you could play with the "SCROLLAMOUNT" tag to try and make it smoother.
  22. I found this script on the internet: <?php /* * * * * * * * * * * * * * SEND EMAIL FUNCTIONS * * * * * * * * * * * * * */ //Authenticate Send - 21st March 2005 //This will send an email using auth smtp and output a log array //logArray - connection, class email { function authSendEmail($from, $namefrom, $to, $nameto, $subject, $message) { //SMTP + SERVER DETAILS /* * * * CONFIGURATION START * * * */ $smtpServer = "mail.east.cbeyond.com"; $port = "25"; $timeout = "30"; $username = "name"; $password = "pass"; $localhost = "localhost"; $newLine = "\r\n"; /* * * * CONFIGURATION END * * * * */ //Connect to the host on the specified port $smtpConnect = fsockopen($smtpServer, $port, $errno, $errstr, $timeout); $smtpResponse = fgets($smtpConnect, 515); if(empty($smtpConnect)) { $output = "Failed to connect: $smtpResponse"; return $output; } else { $logArray['connection'] = "Connected: $smtpResponse"; } //Request Auth Login fputs($smtpConnect,"AUTH LOGIN" . $newLine); $smtpResponse = fgets($smtpConnect, 515); $logArray['authrequest'] = "$smtpResponse"; //Send username fputs($smtpConnect, base64_encode($username) . $newLine); $smtpResponse = fgets($smtpConnect, 515); $logArray['authusername'] = "$smtpResponse"; //Send password fputs($smtpConnect, base64_encode($password) . $newLine); $smtpResponse = fgets($smtpConnect, 515); $logArray['authpassword'] = "$smtpResponse"; //Say Hello to SMTP fputs($smtpConnect, "HELO $localhost" . $newLine); $smtpResponse = fgets($smtpConnect, 515); $logArray['heloresponse'] = "$smtpResponse"; //Email From fputs($smtpConnect, "MAIL FROM: $from" . $newLine); $smtpResponse = fgets($smtpConnect, 515); $logArray['mailfromresponse'] = "$smtpResponse"; //Email To fputs($smtpConnect, "RCPT TO: $to" . $newLine); $smtpResponse = fgets($smtpConnect, 515); $logArray['mailtoresponse'] = "$smtpResponse"; //The Email fputs($smtpConnect, "DATA" . $newLine); $smtpResponse = fgets($smtpConnect, 515); $logArray['data1response'] = "$smtpResponse"; //Construct Headers $headers = "MIME-Version: 1.0" . $newLine; $headers .= "Content-type: text/html; charset=iso-8859-1" . $newLine; $headers .= "To: $nameto <$to>" . $newLine; $headers .= "From: $namefrom <$from>" . $newLine; fputs($smtpConnect, "To: $to\nFrom: $from\nSubject: $subject\n$headers\n\n$message\n.\n"); $smtpResponse = fgets($smtpConnect, 515); $logArray['data2response'] = "$smtpResponse"; // Say Bye to SMTP fputs($smtpConnect,"QUIT" . $newLine); $smtpResponse = fgets($smtpConnect, 515); $logArray['quitresponse'] = "$smtpResponse"; echo $smtpResponse; } } ?> This is to connect to a remote smtp and send an email. Problem I am having is it seems to fail with multiple emaill address comma seperated. Can anyone point me in the right directions to get multiple emails sent?
  23. Just the second and third? I tried that and removing all of them except the first one. Still the same (I was expecting undefined method or something,. but I didnt get that either) <?php $go = $_SERVER['PHP_SELF']; if (!isset($_SESSION)) { session_start(); } if(isset($_SESSION['MM_Username'])){ $user = $_SESSION['MM_Username']; } if(isset($_POST['p_name'])){ $p_name = mysql_real_escape_string(trim(stripslashes($_POST['po']))); $po = mysql_real_escape_string(trim(stripslashes($_POST['p_name']))); $add1 = mysql_real_escape_string(trim(stripslashes($_POST['add1']))); $add2 = mysql_real_escape_string(trim(stripslashes($_POST['add2']))); $city = mysql_real_escape_string(trim(stripslashes($_POST['city']))); $state = mysql_real_escape_string(trim(stripslashes($_POST['state']))); $zip = mysql_real_escape_string(trim(stripslashes($_POST['zip']))); $ship_type = mysql_real_escape_string(trim(stripslashes($_POST['ship_type']))); $date_need = mysql_real_escape_string(trim(stripslashes($_POST['n_date']))); $c_name = mysql_real_escape_string(trim(stripslashes($_POST['c_name']))); //validate our order form +=+=+= if ($p_name == "" || $add1 == "" || $city == "" ||$state == "" || $zip == "" || $ship_type == "" || $date_need == ""){ $num2 = 1;}else{ $num2 = 0;} if (isset($_POST['firm'])){ $firm = mysql_real_escape_string(trim(stripslashes($_POST['firm']))); }else{ $firm = "N";} $p_po = mysql_real_escape_string(trim(stripslashes($_POST['p_po']))); $art = mysql_real_escape_string(trim(stripslashes($_POST['art']))); $num = ""; $add_inst = mysql_real_escape_string(trim(stripslashes($_POST['add_inst']))); $comm = mysql_real_escape_string(trim(stripslashes($_POST['comments']))); require_once("/var/www/html/include/classes/ordering.inc.php"); $this = new Order(); $this->insert_data($p_name, $po, $add1, $add2, $city, $state, $zip, $ship_type, $date_need, $firm, $p_po, $art, $num, $add_inst, $comm, $c_name, $num2); if(isset($_FILES['file'])){ $filename = $_FILES['file']['name']; if(isset($_FILES['file2'])){ $filename2 = $_FILES['file2']['name'];}else{$fliename2 = "";} if(isset($_FILES['file3'])){ $filename3 = $_FILES['file3']['name'];}else{$fliename3 = "";} if(isset($_FILES['file4'])){ $filename4 = $_FILES['file4']['name'];}else{$fliename4 = "";} if(isset($_FILES['file5'])){ $filename5 = $_FILES['file5']['name'];}else{$fliename5 = "";} if(isset($_POST['c_name'])){ $c_name = $_POST['c_name'];} require_once("/var/www/html/include/classes/ordering.inc.php"); if(isset($_SESSION['num'])){ $or_num = $_SESSION['num']; } $this->upload_file($filename,$filename2,$filename3,$filename4,$filename5,$c_name,$or_num); } } if(isset($_POST['item_qty']) && !isset($_POST['kk'])){ $item_num = mysql_real_escape_string(trim(stripslashes($_POST['item_num']))); $item_desc = mysql_real_escape_string(trim(stripslashes($_POST['item_desc']))); $item_qty = mysql_real_escape_string(trim(stripslashes($_POST['item_qty']))); $emb_loc1 = mysql_real_escape_string(trim(stripslashes($_POST['emb_loc1']))); $num = mysql_real_escape_string(trim(stripslashes($_POST['num']))); $size = mysql_real_escape_string(trim(stripslashes($_POST['size']))); $artwork = mysql_real_escape_string(trim(stripslashes($_POST['artwork']))); require_once("/var/www/html/include/classes/ordering.inc.php"); $this->insert_rows($item_num,$item_desc,$item_qty,$emb_loc1,$num,$size,$artwork); }elseif(isset($_POST['item_qty']) && isset($_POST['kk'])){ $item_num = mysql_real_escape_string(trim(stripslashes($_POST['item_num']))); $item_desc = mysql_real_escape_string(trim(stripslashes($_POST['item_desc']))); $item_qty = mysql_real_escape_string(trim(stripslashes($_POST['item_qty']))); $emb_loc1 = mysql_real_escape_string(trim(stripslashes($_POST['emb_loc1']))); $num = mysql_real_escape_string(trim(stripslashes($_POST['num']))); $size = mysql_real_escape_string(trim(stripslashes($_POST['size']))); $artwork1 = mysql_real_escape_string(trim(stripslashes($_POST['artwork1']))); $emb_loc2 = mysql_real_escape_string(trim(stripslashes($_POST['emb_loc2']))); $artwork2 = mysql_real_escape_string(trim(stripslashes($_POST['artwork2']))); $emb_loc3 = mysql_real_escape_string(trim(stripslashes($_POST['emb_loc3']))); $artwork3 = mysql_real_escape_string(trim(stripslashes($_POST['artwork3']))); $emb_loc4 = mysql_real_escape_string(trim(stripslashes($_POST['emb_loc4']))); $artwork4 = mysql_real_escape_string(trim(stripslashes($_POST['artwork4']))); $emb_loc5 = mysql_real_escape_string(trim(stripslashes($_POST['emb_loc5']))); $artwork5 = mysql_real_escape_string(trim(stripslashes($_POST['artwork5']))); require_once("/var/www/html/include/classes/ordering.inc.php"); $this->insert_multi($item_num,$item_desc,$item_qty,$emb_loc1,$num,$size,$artwork1,$emb_loc2,$artwork2,$emb_loc3,$artwork3,$emb_loc4,$artwork4,$emb_loc5,$artwork5); } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><!-- InstanceBegin template="/Templates/nuemage_template.dwt" codeOutsideHTMLIsLocked="false" --> <head> <!-- InstanceBeginEditable name="doctitle" --> <title>Nu Emage Embroidery</title> <!-- InstanceEndEditable --> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="nuemagestyles.css" rel="stylesheet" type="text/css"> <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --> <script type="text/javascript"> <!-- function myPopup2() { window.open( "http://www.sewnice.biz/s_po.php", "myWindow", "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=190,height=112,left = 240,top = 212,status=1" ) } //--> </script> <script type="text/javascript"> <!-- function myPopup3() { window.open( "http://www.sewnice.biz/s_da.php", "myWindow2", "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=190,height=200,left = 240,top = 212,status=1" ) } //--> </script> <script type="text/javascript"> <!-- function myPopup4() { window.open( "http://www.sewnice.biz/cust_logo2.php", "myWindow3", "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=400,left = 240,top = 212,status=1" ) } //--> </script> <SCRIPT LANGUAGE="JavaScript" SRC="CalendarControl.js"> </SCRIPT> <link href="CalendarControl[1].css" rel="stylesheet" type="text/css" /> </head> <body bgcolor="#CCCCCC"> <table width="750" border="0" align="center" cellpadding="0" cellspacing="0" > <tr> <td colspan="8"><img src="images/top_logo.jpg" alt="Nu Emage Embroidery" width="750" height="104"></td> </tr> </table> <table width="750" border="0" align="center" bgcolor="#830000"> <tr> <td width="49"> </td> <td width="65" class="nav"> <div align="center"><a href="index.php">HOME</a></div></td> <td width="112" class="nav"> <div align="center"><a href="digitizing.php">DIGITIZING</a></div></td> <td width="97" class="nav"> <div align="center"><a href="pricing.php">PRICING</a></div></td> <td width="114" class="nav"> <div align="center"><a href="ordering.php?t=1">ORDERING</a></div></td> <td width="204" class="nav"> <div align="center"><a href="production_schedule.php?n=<?php if(isset($_SESSION['MM_Username'])){echo $user;}?>">PRODUCTION SCHEDULE</a></div></td> <td width="86" class="nav"> <div align="center"><a href="contact.php">CONTACT</a></div></td> <td width="48"> </td> </tr> </table> <!-- InstanceBeginEditable name="maincontent" --> <table width="749" height="413" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <!--DWLayoutTable--> <tr> <td height="38" colspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="17" height="38" valign="top"><!--DWLayoutEmptyCell--> </td> <td width="489" valign="top"><br> <?php if(isset($_SESSION['MM_Username'])){ $user = $_SESSION['MM_Username']; require_once("/var/www/html/include/classes/csv_upload.inc.php"); $this = new Csv(); $this->cust_bar($user); } ?></td> <td width="243" valign="top"><div align="center" class="orlist"> <div align="right"><a href="client.php">Log In</a> | Change Password </div> </div></td> </tr> </table></td> </tr> <tr> <td width="16" height="31" valign="top"><!--DWLayoutEmptyCell--> </td> <td width="457" valign="top" class="titles">ORDERING</td> <td width="276" valign="top"><!--DWLayoutEmptyCell--> </td> </tr> <tr> <td height="410" colspan="3" align="center" valign="top"><?php if(isset($_SESSION['num'])){$num = $_SESSION['num'];} //if is a multi location order start here if(isset($_POST['multi']) && $_POST['multi'] == "Y"){ $numb = $_POST['num']; $this->multi($numb); }else{ //if just one location start here if (!isset($_SESSION['MM_Username'])) { echo "<table align=\"center\" class=\"orlist\"><tr><td></br>You must be logged in to view the ordering system.Not a customer yet? Please <a href=\"reg.php\">register</a> to place an order</td></tr></table>"; }elseif(isset($_SESSION['MM_Username']) && !isset($num) && !isset($_POST['item_qty'])||isset($_SESSION['MM_Username']) && isset($_GET['t'])){ echo "</br> <form action=\"$go\" method=\"POST\" name=\"or\" id=\"or\" enctype=\"multipart/form-data\"> <table align=\"center\" class=\"log\" bgcolor=\"E5E5E5\" cellspacing=\"0\"> <tr> <td colspan=\"4\" bgcolor=\"830000\"> <b><font color=\"ffffff\">Step One</font></b></td> </tr> <tr> <td class=\"nav\"><span class=\"pricelist\"> Project Name:</span></td> <td><input type=\"text\" name=\"p_name\"><font color=\"ff3300\"> *</font></td> </tr> <tr> <td class=\"nav\"><span class=\"pricelist\"> P.O.#:</span></td> <td><input type=\"text\" name=\"po\"></td> <tr> <td class=\"nav\"><span class=\"pricelist\"> Ship Address:</span></td> <td class=\"nav\"><input type=\"text\" name=\"add1\"><font color=\"ff3300\"> *</font></td> </tr> <tr> <td class=\"nav\"><span class=\"pricelist\"> Ship Address 2:</span></td> <td class=\"nav\"><input type=\"text\" name=\"add2\"></td> </tr> <tr> <td class=\"nav\"><span class=\"pricelist\"> Ship City:</span></td> <td class=\"nav\"><input type=\"text\" name=\"city\"><font color=\"ff3300\"> *</font></td> </tr> <tr> <td class=\"nav\"><span class=\"pricelist\"> Ship State:</span></td> <td class=\"nav\"><select size=\"1\" name=\"state\"> <option>Alabama</option> <option>Alaska</option> <option>Arizona</option> <option>Arkansas</option> <option>California</option> <option>Colorado</option> <option>Connecticut</option> <option>Delaware</option> <option>Florida</option> <option>Georgia</option> <option>Hawaii</option> <option>Idaho</option> <option>Illinois</option> <option>Indiana</option> <option>Iowa</option> <option>Kansas</option> <option>Kentucky</option> <option>Louisiana</option> <option>Maine</option> <option>Maryland</option> <option>Massachusetts</option> <option>Michigan</option> <option>Minnesota</option> <option>Mississippi</option> <option>Missouri</option> <option>Montana</option> <option>Nebraska</option> <option>Nevada</option> <option>New Hampshire</option> <option>New Jersey</option> <option>New Mexico</option> <option>New York</option> <option>North Carolina</option> <option>North Dakota</option> <option>Ohio</option> <option>Oklahoma</option> <option>Oregon</option> <option>Pennsylvania</option> <option>Rhode Island</option> <option>South Carolina</option> <option>South Dakota</option> <option>Tennessee</option> <option>Texas</option> <option>Utah</option> <option>Vermont</option> <option>Virginia</option> <option>Washington</option> <option>Washington, DC</option> <option>West Virginia</option> <option>Wisconsin</option> <option>Wyoming</option> </select><font color=\"ff3300\"> *</font></td> </tr> <tr> <td class=\"nav\"><span class=\"pricelist\"> Ship Zip Code:</span></td> <td class=\"nav\"><input type=\"text\" name=\"zip\"><font color=\"ff3300\"> *</font></td> </tr> <tr> <td class=\"nav\"><span class=\"pricelist\"> Method Of Shipment:</span></td> <td class=\"nav\"><select size=\"1\" name=\"ship_type\"> <option>UPS Ground</option> <option>UPS Next Day Air Early AM</option> <option>UPS Next Day Air</option> <option>UPS Next Day Air Saver</option> <option>UPS 2nd Day Air Early AM</option> <option>UPS 2nd Day Air</option> <option>UPS 3 Day Select</option> <option>Customer Pick Up</option> <option>Courier</option> </select><font color=\"ff3300\"> *</font></td> </tr> <tr> <td class=\"nav\"><span class=\"pricelist\"> Date Needed:</span></td> <td class=\"nav\"><input type=\"text\" name=\"n_date\" onfocus=\"showCalendarControl(this);\"><font color=\"ff3300\"> *</font></td> </tr> <tr> <td class=\"nav\"><span class=\"pricelist\"> Firm For Event:</span></td> <td><input type=\"checkbox\" name=\"firm\" value=\"Y\"></td> </tr> <tr> <td class=\"nav\"><span class=\"pricelist\"> Previous P.O.#:</span></td> <td><input type=\"text\" name=\"p_po\"></td> </tr> <tr> <td class=\"nav\"><span class=\"pricelist\"> Artwork Filename:</span></td> <td><input type=\"text\" name=\"art\"></td> </tr> <tr valign=\"top\"> <td class=\"nav\"><span class=\"pricelist\" > Comments:</span></td> <td><textarea name=\"comments\"></textarea></td> </tr> <tr valign=\"top\"> <td class=\"nav\"><span class=\"pricelist\" > Additional Instructions:</span></td> <td><textarea name=\"add_inst\"></textarea></td> </tr> <tr> <td class=\"nav\"><span class=\"pricelist\"> Multiple Logo Locations:</span></td> <td><input type=\"checkbox\" name=\"multi\" value=\"Y\"></td> </tr> <tr> <td class=\"nav\"><span class=\"pricelist\" > Estimated number of \"types\" of items:</span></td> <td><select size=\"1\" name=\"num\"> <option>1</option> <option>2</option> <option>3</option> <option>4</option> <option>5</option> <option>6</option> <option>7</option> <option>8</option> <option>9</option> <option>10</option> <option>11</option> <option>12</option> <option>13</option> <option>14</option> <option>15</option> <option>16</option> <option>17</option> <option>18</option> <option>19</option> <option>20</option> <option>21</option> <option>22</option> <option>23</option> <option>24</option> <option>25</option> <option>26</option> <option>27</option> <option>28</option> <option>29</option> <option>30</option> <option>31</option> <option>32</option> <option>33</option> <option>34</option> <option>35</option> <option>36</option> <option>37</option> <option>38</option> <option>39</option> <option>40</option> <option>41</option> <option>42</option> <option>43</option> <option>44</option> <option>45</option> <option>46</option> <option>47</option> <option>48</option> <option>49</option> <option>50</option> </select> </tr> <tr><td colspan=\"3\" bgcolor=\"830000\"><font color=\"ffffff\"> <b>Upload Logo</b></font></td></tr> <tr><td class=\"nav\" colspan=\"3\"><span class=\"pricelist\"> Upload Logo File:</span></td></tr> <tr><td colspan=\"2\"><input type=\"file\" name=\"file\"></td></tr> <tr> <tr><td colspan=\"2\"><input type=\"file\" name=\"file2\"></td></tr> <tr> <tr><td colspan=\"2\"><input type=\"file\" name=\"file3\"></td></tr> <tr> <tr><td colspan=\"2\"><input type=\"file\" name=\"file4\"></td></tr> <tr> <tr><td colspan=\"2\"><input type=\"file\" name=\"file5\"></td></tr> <tr><td><input type=\"hidden\" name=\"c_name\" value=\"$_SESSION[MM_Username]\"> <tr> <td colspan=\"2\"><span class=\"pricelist\" ><font color=\"ff3300\"> * Required Fields</font></span></td></tr><tr> <td colspan=\"2\" align=\"center\"><INPUT type=\"submit\" value=\"Order 2nd Step>>\"></td> </tr> </table> </form> ";}elseif(!isset($_POST['item_qty']) && isset($num) && isset($_POST['num'])){ require_once("/var/www/html/include/classes/ordering.inc.php"); $numb = $_POST['num']; $this->rows($numb); }elseif(isset($_POST['num2']) && $_POST['num2'] >= 1){ require_once("/var/www/html/include/classes/ordering.inc.php"); $num = $_SESSION['num']; $this->display($num); $numb = $_POST['num2']; echo "</br>"; $this->rows($numb); }else{ echo "Your order has been submitted. Thank you, we will contact you if there are any problems. If you would like to place another order please <a href=\"ordering.php?t=1\">click here</a>"; require_once("/var/www/html/include/classes/ordering.inc.php"); $num = $_SESSION['num']; $this->email_data($num); $this->display_results($num); } } ?> <p> </p> <p> </p></td> </tr> </table> <!-- InstanceEndEditable --> <table width="750" border="0" align="center" cellpadding="4" cellspacing="0" class="footer"> <!--DWLayoutTable--> <tr> <td width="65"></td> <td width="60" valign="middle"><div align="right"><a href="home.php">HOME</a></div></td> <td width="5" valign="middle">|</td> <td width="80" valign="middle"><div align="center"><a href="digitizing.php">DIGITIZING</a></div></td> <td width="5" valign="middle">|</td> <td width="64" valign="middle"><div align="center"><a href="pricing.php">PRICING</a></div></td> <td width="5" valign="middle">|</td> <td width="80" valign="middle"><div align="center"><a href="ordering.php?t=1">ORDERING</a></div></td> <td width="5" valign="middle">|</td> <td width="148" valign="middle"><div align="center"><a href="production_schedule.php?n=<?php if(isset($_SESSION['MM_Username'])){echo $user;}?>">PRODUCTION SCHEDULE</a></div></td> <td width="5" valign="middle">|</td> <td width="77" valign="middle"><div align="left"><a href="contact.php">CONTACT</a></div></td> <td width="65"></td> </tr> <tr> <td class="copyright" height="20" colspan="13"><div align="center">2005 © Nu Emage Embroidery, Inc. All Rights Reserved</div></td> </tr> </table> </body> <!-- InstanceEnd --></html>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.