Jump to content

DarkPrince2005

Members
  • Posts

    307
  • Joined

  • Last visited

Everything posted by DarkPrince2005

  1. I'm trying to post from a form to a form within an iframe. It works without the iframe, but nothing happens when the iframe is included. <form target="iframe" method="post" action="2.php"> <input type="text" name="uid" /><br /> <input type="text" name="pwd" /> <input type="submit" name="Login" value="Login"/> </form> <iframe src="http://dansa.org/member/welcome.php" id="iframe" name="iframe" width="100%" height="300">Your browser does not support iframes. </iframe><pre><?php var_dump($_POST); ?></pre>
  2. Could anyone mmaybe tell me why I'm getting the following error:"Warning: cannot yet handle MBCS in html_entity_decode()! in /home/dansaor/public_html/newsite/administrator/components/com_virtuemart/html/shop.product_details.php on line 235" when trying to view a product? and how I can fix it
  3. Can anyone tell me what \i'm doing wrong? $responded = mysql_query("select * from case_response where case_id = '".$case['Case ID']."'"); $responded_result = mysql_fetch_array($responded,MYSQL_ASSOC); $pictures = mysql_query("select * from case_pictures where case_id = '".$case['Case ID']."'"); $pdf = mysql_query("select * from case_pdf where case_id = '".$case['Case ID']."'"); $pdf_result = mysql_fetch_array($pdf,MYSQL_ASSOC); If(mysql_num_rows($pictures) = 0){ echo" <tr> <td colspan='2'>".htmlentities($responded_result['case_response_comment'])."</td> </tr> <tr> <td><table cellpadding='0' cellspacing='0' border='0'><tr>"; while($pictures_result = mysql_fetch_array($pictures,MYSQL_ASSOC)){ echo "<td><img src='".htmlentities($pictures_result['path'])."' width='150' /></td>"; } echo "</tr></table></td> </tr>"; }
  4. Howzit phpFreaks I'm currently trying to build a module for Joomla... I'm building a query that uses the $_GET function to get the viewed articles id... it works fine except for the following problem on certain links. /index.php?option=com_content&view=article&id=2:lorem-ipsum&catid=3:site-content It gets the entire '2:lorem-ipsum' value when i only want the 2... Is there a way to just extract the numbers? Thanx in advance
  5. Hey people... Below is an extract from a piece of code I'm using to upload a file, but how can I modify the script to upload to a '../../upload' folder? $image_name=time().'.'.$extension; $newname="upload/".$image_name; $copied=copy($_FILES['file']['tmp_name'], $newname); }if (!$copied) {
  6. Why isn't any of my scripts working? <html> <head> <script> function toggle(which) { if( document.getElementById(which).style.display=='none' ){ document.getElementById(which).style.display = ''; }else{ document.getElementById(which).style.display = 'none'; } } </script> </head> <body> <form> <table border="1"> <tr> <td>Always visible</td> </tr> <tr id="hidethis1"> <td><textarea>Hide this1</textarea><input onClick="toggle('hidethis1');" type='submit' value='hide1' name='add'/></td> </tr> <tr id="hidethis2"> <td><textarea>Hide this2</textarea><input onClick="toggle('hidethis2');" type='submit' value='hide2' name='add'/></td> </tr> <tr> <td>Always visible</td> </tr> </table> </form> </body> </html>
  7. Can someone please tell me where I'm going wrong? Noting seems to work.... <html> <head><title></title> <script type="text/javascript" language="javascript"> function online(){ if(document.respond.online_response.checked) { document.respond.response.disabled = false; } else{ document.respond.response.disabled = true; } </script> </head> <body> <form name="respond"> <input type="checkbox" name="online_response" id="online_response" onclick="online()" /> <input type="text" name="response" id="response" disabled /> </form> </body></html>
  8. I hope someone can help me urgently... I've got a script which enables a user to upload 4 images, and after being submitted validates the form and should then email the form contents to an email address. Upload.php <?php if(isset($_POST['Submit'])) { if (preg_replace("/[^A-Z]/", "", $_POST["sub"]) == "M") { $err = ""; $msg = ""; $cell_number = preg_replace("/[^0-9]/", "", $_POST["cellno"]); if (strlen($cell_number) == 10) { if (substr($cell_number, 0, 1) == "0") { $cell_number = "27" . substr($cell_number, 1); } else { $err++; $msg .= "Invalid Cellphone number<br>"; }//end if } elseif (strlen($cell_number == 11)) { if (substr($cell_number, 0, 2) == "27") { $cell_number = "27" . substr($cell_number, 2); } else { $err++; $msg .= "Invalid Cellphone number<br>"; }//end if } else { $err++; $msg .= "Invalid Cellphone number<br>"; }//end if $t_and_c = preg_replace("/[^a-z]/", "", $_POST["chk_terms"]); if ($t_and_c <> "on") { $err++; $msg .= "You can't enter unless you agree to the terms and conditions<br>"; }//end if //define a maxim size for the uploaded images in Kb define ("MAX_SIZE","100000000"); //This function reads the extension of the file. It is used to determine if the file is an image by checking the extension. function getExtension($str) { $i = strrpos($str,"."); if (!$i) { return ""; } $l = strlen($str) - $i; $ext = substr($str,$i+1,$l); return $ext; } //This variable is used as a flag. The value is initialized with 0 (meaning no error found) and it will be changed to 1 if an errro occures. If the error occures the file will not be uploaded. $errors=0; //checks if the form has been submitted $path1= "upload/".$HTTP_POST_FILES['ufile']['name'][0]; $path2= "upload/".$HTTP_POST_FILES['ufile']['name'][1]; $path3= "upload/".$HTTP_POST_FILES['ufile']['name'][2]; $path4= "upload/".$HTTP_POST_FILES['ufile']['name'][3]; if(isset ($_POST['Submit'])){ if (isset($path1) && ($path1 != "upload/")) { //get the original name of the file from the clients machine $filename = stripslashes($HTTP_POST_FILES['ufile']['name'][0]); //get the extension of the file in a lower case format $extension = getExtension($filename); $extension = strtolower($extension); //if it is not a known extension, we will suppose it is an error and will not upload the file, otherwize we will do more tests if (($extension != "jpg") && ($extension != "jpeg") && ($extension != "png") && ($extension != "gif")) { //print error message $err++; $msg .="File 1 is an unknown extension!<br />"; } else { //get the size of the image in bytes //$_FILES['image']['tmp_name'] is the temporary filename of the file in which the uploaded file was stored on the server $size=filesize($HTTP_POST_FILES['ufile']['tmp_name'][0]); //compare the size with the maxim size we defined and print error if bigger if ($size > MAX_SIZE*2000) { $err++; $msg .="File 1 exceeds the size limit!<br />"; } //we will give an unique name, for example the time in unix time format $image_name=time().'.'.$extension; //the new name will be containing the full path where will be stored (images folder) $newname="upload/".$image_name; //we verify if the image has been uploaded, and print error instead $copied = copy($HTTP_POST_FILES['ufile']['tmp_name'][0], $newname); sleep(1); if (!$copied) { echo '<h1>Copy unsuccessfull!</h1>'; $errors=1; sleep(1); }}} //If no errors registred, print the success message if (isset($path2) && ($path2 != "upload/")) { //get the original name of the file from the clients machine $filename1 = stripslashes($HTTP_POST_FILES['ufile']['name'][1]); //get the extension of the file in a lower case format $extension = getExtension($filename1); $extension = strtolower($extension); //if it is not a known extension, we will suppose it is an error and will not upload the file, otherwize we will do more tests if (($extension != "jpg") && ($extension != "jpeg") && ($extension != "png") && ($extension != "gif")) { //print error message $err++; $msg .="File 2 is an unknown extension!<br />"; $err++; } else { //get the size of the image in bytes //$_FILES['image']['tmp_name'] is the temporary filename of the file in which the uploaded file was stored on the server $size=filesize($HTTP_POST_FILES['ufile']['tmp_name'][1]); //compare the size with the maxim size we defined and print error if bigger if ($size > MAX_SIZE*2000) { echo 'File 2 exceeds the size limit!<br />'; $err++; } //we will give an unique name, for example the time in unix time format $image_name=time().'.'.$extension; //the new name will be containing the full path where will be stored (images folder) $newname1="upload/".$image_name; //we verify if the image has been uploaded, and print error instead $copied1 = copy($HTTP_POST_FILES['ufile']['tmp_name'][1], $newname1); sleep(1); if (!$copied1) { echo '<h1>Copy unsuccessfull!</h1>'; $errors=1; }}} //If no errors registred, print the success message if (isset($path3) && ($path3 != "upload/")) { //get the original name of the file from the clients machine $filename2 = stripslashes($HTTP_POST_FILES['ufile']['name'][2]); //get the extension of the file in a lower case format $extension = getExtension($filename2); $extension = strtolower($extension); //if it is not a known extension, we will suppose it is an error and will not upload the file, otherwize we will do more tests if (($extension != "jpg") && ($extension != "jpeg") && ($extension != "png") && ($extension != "gif")) { //print error message $err++; $msg .="File 3 is an unknown extension!<br />"; } else { //get the size of the image in bytes //$_FILES['image']['tmp_name'] is the temporary filename of the file in which the uploaded file was stored on the server $size=filesize($HTTP_POST_FILES['ufile']['tmp_name'][2]); //compare the size with the maxim size we defined and print error if bigger if ($size > MAX_SIZE*2000) { $err++; $msg .="File 3 exceeds the size limit!<br />"; } //we will give an unique name, for example the time in unix time format $image_name=time().'.'.$extension; //the new name will be containing the full path where will be stored (images folder) $newname2="upload/".$image_name; //we verify if the image has been uploaded, and print error instead $copied2 = copy($HTTP_POST_FILES['ufile']['tmp_name'][2], $newname2); sleep(1); if (!$copied2) { echo '<h1>Copy unsuccessfull!</h1>'; $err++; }}} //If no errors registred, print the success message if (isset($path4) && ($path4 != "upload/")) { //get the original name of the file from the clients machine $filename2 = stripslashes($HTTP_POST_FILES['ufile']['name'][3]); //get the extension of the file in a lower case format $extension = getExtension($filename2); $extension = strtolower($extension); //if it is not a known extension, we will suppose it is an error and will not upload the file, otherwize we will do more tests if (($extension != "jpg") && ($extension != "jpeg") && ($extension != "png") && ($extension != "gif")) { //print error message $err++; $msg .="File 4 is an unknown extension!"; } else { //get the size of the image in bytes //$_FILES['image']['tmp_name'] is the temporary filename of the file in which the uploaded file was stored on the server $size=filesize($HTTP_POST_FILES['ufile']['tmp_name'][3]); //compare the size with the maxim size we defined and print error if bigger if ($size > MAX_SIZE*2000) { echo '<h1>File 4 exceeds the size limit!</h1>'; $err++; } //we will give an unique name, for example the time in unix time format $image_name=time().'.'.$extension; //the new name will be containing the full path where will be stored (images folder) $newname3="upload/".$image_name; //we verify if the image has been uploaded, and print error instead $copied2 = copy($HTTP_POST_FILES['ufile']['tmp_name'][3], $newname3); if (!$copied2) { echo '<h1>Copy unsuccessfull!</h1>'; $err++; }}} //If no errors registred, print the success message if(isset($_POST['Submit']) && ($err === 0)) { $msg .= "File Uploaded Successfully! Try again!"; } else { $err++; $msg .="There was a problem uploading<br />some of your files."; }}}} ?> <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head><title>PPC Cement and The Home Channel Garden Makeover - Upload Your Garden Picture</title> <link href="css/ppc.css" type="text/css" rel="stylesheet" /> <meta http-equiv="Cache-Control" content="max-age=200" /> </head> <body> <div id="container" align="center"> <div id="imagine"></div> <!-- site content start --> <div id="content"> Upload four pictures of your latest outdoor PPC Cement garden masterpiece and your PPC Cement Bag to stand in line to win. </div> <!-- site content end --> <!-- form content start --> <div id="content"><? if (strlen($msg) > 0) { echo "<tr><td colspan=2 class='textfield-b'><font color='#FFFFFF'><b>$msg<br /></b></font></td></tr>"; }//end if ?><form action="upload.php" method="post" enctype='multipart/form-data' name="form1" id="form1"> Name:<input type="hidden" name="sub" value="M"><br /><input id="name" name="name" class="textinput" type="text" /><br /> Cell:<br /><input id="cellno" name="cellno" class="textinput" type="text" /><br /><br /> <span class="bold">Photo Upload</span><br /><br /> * Picture 1:<br /> <input id="ufile[]" name="ufile[]" class="textinput" type="file" /><br /> * Picture 2:<br /> <input id="ufile[]" name="ufile[]" class="textinput" type="file" /><br /> * Picture 3:<br /> <input id="ufile[]" name="ufile[]" class="textinput" type="file" /><br /> * Picture 4:<br /> <input id="ufile[]" name="ufile[]" class="textinput" type="file" /><br /> </div> <!-- form content end --> <div id="upload"><input type="submit" value="Submit" name="Submit" /></div> <div id="terms"> Terms and Conditions Apply<br /> * Required Fields </div> <div id="bag-top"></div> <div id="white"> <div id="bag-bot"></div> <div id="ppc"></div> <div id="home"></div> <!-- footer start --> <? include("inc/footer.php"); ?> <!-- footer end --> </div> </div> </body> </html> I have done it before with the following scripts, but it only had one uploaded file. upload.php <?php # Configuration files # ini_alter("error_reporting", "E_ALL"); ini_alter("display_errors", "On"); ini_alter("file_upload", "On"); #-----------------------------------------------------------------------------# require("inc/config.inc.php"); require("inc/lib.inc.php"); include("random.php"); #-----------------------------------------------------------------------------# session_start(); #-----------------------------------------------------------------------------# if (preg_replace("/[^A-Z]/", "", $_POST["sub"]) == "M") { $err = ""; $msg = ""; $cell_number = preg_replace("/[^0-9]/", "", $_POST["cellno"]); if (strlen($cell_number) == 10) { if (substr($cell_number, 0, 1) == "0") { $cell_number = "27" . substr($cell_number, 1); } else { $err++; $msg .= "Invalid Cellphone number<br>"; }//end if } elseif (strlen($cell_number == 11)) { if (substr($cell_number, 0, 2) == "27") { $cell_number = "27" . substr($cell_number, 2); } else { $err++; $msg .= "Invalid Cellphone number<br>"; }//end if } else { $err++; $msg .= "Invalid Cellphone number<br>"; }//end if $t_and_c = preg_replace("/[^a-z]/", "", $_POST["chk_terms"]); if ($t_and_c <> "on") { $err++; $msg .= "You can't enter unless you agree to the terms and conditions<br>"; }//end if define ("MAX_SIZE","5120000"); function getExtension($str){ $i=strrpos($str,"."); if (!$i){return "";} $l=strlen($str)-$i; $ext=substr($str,$i+1,$l); return $ext; } $errors=0; if(isset($_POST['submit'])) { $image=$_FILES['image']['name']; if($image) { $filename=stripslashes($_FILES['image']['name']); $extension=getExtension($filename); $extension=strtolower($extension); If(($extension != "jpg") && ($extension != "jpeg") && ($extension != "bmp") && ($extension != "gif") && ($extension != "png")) { $msg.="Unsuppoorted file format"; $err++; } else { $size=filesize($_FILES['image']['tmp_name']); if ($size > MAX_SIZE*20000000) { $msg.="Filesize exceeds size limit"; $err++; } else{ $image_name=time().'.'.$extension; $newname="upload/".$image_name; $copied=copy($_FILES['image']['tmp_name'], $newname); }if (!$copied) { $msg.="Upload of image unsuccessful"; $err++; }} }else if (!$image) { $msg.="No File Selected"; $err++; } if (isset($_POST['submit']) && !$err) { $msg.="File uploaded successfully"; $dbc=mysql_connect("localhost","root",""); mysql_select_db("revlovdv_revlon24seven"); $sql="insert into entries values(NULL,'$_POST[name]','$cell_number','$bar_code','$newname','$_POST[why]','".date("Y-m-d H:i:s")."', " . time() . ")"; mysql_query($sql, $dbc); $id=mysql_insert_id($dbc); $got_entry=true; $file_prefix = str_pad($id, 7, "0", STR_PAD_LEFT); $file_name = $file_prefix . "." . $cfg_supported_ext[$type]; $name=$_POST['name']; $why=$_POST['why']; send_file_via_email($newname, $_FILES['image_file']['name'], "someone@addy.com", $cell_number, $id, $name,$why); } }} //end if #-----------------------------------------------------------------------------# #-----------------------------------------------------------------------------# ?> <html> <head> <title>Revlon 24 Seven | Revlon 24 Seven Competition | Revlon 24 Seven Man</title> <meta name="description" content="revlon, revlon 24 seven, 24 seven, revlon 24 seven competion, 24 seven competition, revlon 24 seven man, revlon man, 24 seven man, revlon promotion, revlon campaign"> <meta name="keywords" content="revlon, revlon 24 seven, revlon 24 seven man, revlon 24 seven competition, revlon 24 seven promotion, 24 seven, 24 seven man"> <link rel="STYLESHEET" type="text/css" href="css/div.css" /> <link rel="STYLESHEET" type="text/css" href="css/stylesheet.css" /> </head> <body bgcolor="#0e0f1e" bottommargin="0" topmargin="0" leftmargin="0" rightmargin="0"> <center><table cellpadding="0" cellspacing="0" border="0" height="100%" width="900"> <tr> <td valign="center" align="center"> <table cellpadding="0" cellspacing="0" border="0" height="640" width="900"> <tr> <td height="640"><div class="main-body"> <div class="bg"></div> <div class="border"></div> <div><? require("inc/nav.html");?></div> <div class="content-window"><a href="http://www.revlon24seven.co.za/prizes.php" title="Revlon 24 Seven Prizes"><img src="images/middlewin.png" alt="Revlon 24 Seven Prizes" align="left" height="180" border="0" style="top:80px; left:20px; position:absolute;"></a></div><div class="cstripe"></div> <div class="content1"><font color="#FFFFFF"><center><br /><? if (!$got_entry && intval($_SESSION["entry_no"]) < $cfg_session_entries) { ?> <form action="<? echo $PHP_SELF; ?>" method="post" enctype="multipart/form-data" name="frm_smile"> <table align="right" width="275" cellpadding="1" cellspacing="0" class="entry-form"> <tr> <td colspan="2" align="left" valign="top" class="text"> To upload your picture, please complete the following details:<input type="hidden" name="sub" value="M"></td> </tr> <tr> <td align="left" valign="middle" class="text">* Name:</td> <td align="left" valign="top" class="info-field"><input type="text" name="name" class="textfield-b" value="<? echo $_POST["name"]; ?>"></td> </tr> <tr> <td align="left" valign="middle" class="text">* Cellphone:</td> <td align="left" valign="top" class="info-field"><input type="text" name="cellno" class="textfield-b" value="<? echo $_POST["cellno"]; ?>"></td> </tr> <? if (strlen($msg) > 0) { echo "<tr><td colspan=2 class='textfield-b'><font color='#FF0000'><b>$msg</b></font></td></tr>"; }//end if ?> <tr> <td align="left" valign="middle" class="text">* Upload photo:</td><td><input type="file" name="image" size="20" id="file" class="textfield-c"></td> </tr> <tr> <td colspan="2" align="left" valign="middle" class="text"><center>Tell us why you should be the<br /><strong><font color="#ee1654">24SEVEN Man</font></strong></center></td> </tr> <tr> <td colspan="2" align="center" valign="top" class="info-field"><textarea cols="45" rows="5" name="why" class="textfield-c" value="<? echo $_POST["why"]; ?>"></textarea></td> </tr> <tr> <td colspan="2" align="center" valign="middle" scope="row" class="text"> <input type="checkbox" name="chk_terms"> I agree to the <a href="terms.php" title="Terms & Conditions">Terms and Conditions</a> </td> </tr> <tr> <td colspan="2" align="center" valign="top" scope="row"><input type="hidden" name="submit" value="true"><input type="image" value="submit" src="images/submit.png" id="submit"></td> </tr> </table> </form> <? } elseif ($got_entry) { ?> <table align="right" valign="center" height="280" width="275" cellpadding="0" cellspacing="0" class="entry-form"> <tr> <td align="center">Thank you, your entry has been captured. </td> </tr> </table> <? } elseif (intval($_SESSION["entry_no"]) >= $cfg_session_entries) { ?> <table width="200" cellpadding="0" cellspacing="0" class="entry-form"> <tr> <td> <p align=ceter> </p> <p align=ceter> </p> <p align=ceter> </p> <p align=center class="thankyou">Please try again later.</p> </td> </tr> </table> <? }//end if ?></center> <br><br> </font> </div> <div class="24logo"><img src="images/24logo.png" style="left:5px; top:10px; position:absolute;"></div> <div class="stripe"></div> <div class="man"></div> <div class="footer"></div> <div class="testimonials"><? randomQuote("testimonials.txt"); ?></div> <div class="copyright"></div> <div class="blinks" align="center"><? require("inc/bottom-nav.html");?></div> </div> </td> </tr> </table> </td> </tr> </table> </body> </html> Function function send_file_via_email($file_path, $file_name, $to, $cell, $id, $name, $why) { global $from; $subject = "WEB ENTRY: $cell - Entry ID: $id"; $fileatt = $file_path; $fileatttype = mime_content_type($fileatt); $fileattname = $file_name; $headers = "From: $from"; $file = fopen($fileatt, 'rb'); $data = fread($file, filesize($fileatt)); fclose($file); $semi_rand = md5(time()); $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; $headers .= "\nMIME-Version: 1.0\n"; $headers .= "Content-Type: multipart/mixed;\n"; $headers .= " boundary=\"{$mime_boundary}\""; $message = "This is a multi-part message in MIME format.\n\n"; $message .= "--{$mime_boundary}\n"; $message .= "Content-Type: text/plain; charset=\"iso-8859-1\"\n"; $message .= "Content-Transfer-Encoding: 7bit\n\n"; $message .= "Web entry received.\n\n"; $message .= "Name: $name\n"; $message .= "Cell Number: $cell\n"; $message .= "Why: $why\n"; $message .= "Entry ID: $id\n"; $message .= "\n\n"; $data = chunk_split(base64_encode($data)); $message .= "--{$mime_boundary}\n"; $message .= "Content-Type: {$fileatttype};\n"; $message .= " name=\"{$fileattname}\"\n"; $message .= "Content-Disposition: attachment;\n"; $message .= " filename=\"{$fileattname}\"\n"; $message .= "Content-Transfer-Encoding: base64\n\n"; $message .= $data . "\n\n"; $message .= "--{$mime_boundary}--\n"; #echo "<pre>EMAIL\n\n$to, $subject, $message, $headers</pre>"; if (mail($to, $subject, $message, $headers)) { # # Ok # } else { echo "Error sending email."; }//end if }//end function
  9. Ok guys and gals, hope somebody has a sollution for me. I'm sending data via the url from one page to the next, it runs locally but as soon as i upload it and run it live it returns this error: here is my code, it doesn't seem to like the url? <?php ini_alter("error_reporting", "E_ALL"); ini_alter("display_errors", "On"); require("inc/config.inc.php"); require("inc/lib.inc.php"); session_start(); $valid_list = array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J"); foreach ($_POST as $key => $value) { list($button, $vote, $image) = explode("_", $key); if (in_array($image, $valid_list)) { header("Location:vote_step_two.php?image=$image"); exit; } } ?> <html> <head> <title>n</title> <link rel="STYLESHEET" type="text/css" href="css/div.css" /> <link rel="STYLESHEET" type="text/css" href="css/stylesheet.css" /> </head> <body bgcolor="#0e0f1e" bottommargin="0" topmargin="0" leftmargin="0" rightmargin="0"> <center><table cellpadding="0" cellspacing="0" border="0" height="100%" width="900"> <tr> <td valign="center" align="center"> <table cellpadding="0" cellspacing="0" border="0" height="640" width="900"> <tr> <td height="640"><div class="main-body"> <div class="bg"></div> <div class="border"></div> <div><? require("inc/nav.html");?></div> <div class="cstripe"></div> <div class="content"><font color="#FFFFFF"><center><br /> <form name="form1" method="post" action="index2.php"> <table width="90%" border="0" cellpadding="0" cellspacing="0" class="finalist"> <tr> <td align="left" valign="top"> <img src="images/a.jpg" alt="Name" width="80"><br> <input type="submit" name="btn_vote_A" value="VOTE"> </td> <td align="left" valign="top"> <img src="images/b.jpg" alt="Name" width="80"><br> <input type="image" src="images/vote.png" width="85" name="btn_vote_B" value="VOTE"> </td> <td align="left" valign="top"> <img src="images/c.jpg" alt="Name" width="80"><br> <input type="image" src="images/vote.png" width="85" name="btn_vote_C" value="VOTE"> </td> <td align="left" valign="top"> <img src="images/d.jpg" alt="Name" width="80"><br> <input type="image" src="images/vote.png" width="85" name="btn_vote_D" value="VOTE"> </td> <td align="left" valign="top"> <img src="images/e.jpg" alt="Name" width="80"><br> <input type="image" src="images/vote.png" width="85" name="btn_vote_E" value="VOTE"> </td> </tr> <tr> <td align="left" valign="top"> <img src="images/f.jpg" alt="Name" width="80"><br> <input type="image" src="images/vote.png" width="85" name="btn_vote_F" value="VOTE"> </td> <td align="left" valign="top"><img src="images/g.jpg" alt="Name" width="80"><br> <input type="image" src="images/vote.png" width="85" name="btn_vote_G" value="VOTE"> </td> <td align="left" valign="top"><img src="images/h.jpg" alt="Name" width="80"><br> <input type="image" src="images/vote.png" width="85" name="btn_vote_H" value="VOTE"> </td> <td align="left" valign="top"><img src="images/i.jpg" alt="Name" width="80"><br> <input type="image" src="images/vote.png" width="85" name="btn_vote_I" value="VOTE"> </td> <td align="left" valign="top"><img src="images/j.jpg" alt="Name" width="80"><br> <input type="image" src="images/vote.png" width="85" name="btn_vote_J" value="VOTE"> </td> </tr> </table> </form> </center> <br><br> </font> </div> <div class="24logo"><img src="images/24logo.png" style="left:5px; top:10px; position:absolute;"></div> <div class="stripe"></div> <div class="man"></div> <div class="footer"></div> <div class="testimonials"><? randomQuote("testimonials.txt"); ?></div> <div class="copyright"></div> <div class="blinks" align="center"><? require("inc/bottom-nav.html");?></div> </div> </td> </tr> </table> </td> </tr> </table> </body> </html> <?php # Configuration files # ini_alter("error_reporting", "E_ALL"); ini_alter("display_errors", "On"); #-----------------------------------------------------------------------------# require("inc/config.inc.php"); require("inc/lib.inc.php"); #-----------------------------------------------------------------------------# session_start(); #-----------------------------------------------------------------------------# function have_voted($cell_number) { sys_open_db(); $sql = "SELECT COUNT(*) as RCNT FROM votes WHERE cell=$cell_number AND YEAR(date) = " . date("Y") . " AND MONTH(date) = " . date("m") . " AND DAYOFMONTH(date) = " . date("d"); $result = mysql_query($sql); if ($result) { if ($myrow = mysql_fetch_array($result)) { if ($myrow["RCNT"] == "0") { return false; } else { return true; }//end if } else { return false; }//end if } else { return false; }//end if }//end function #-----------------------------------------------------------------------------# $valid_list = array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J"); #-----------------------------------------------------------------------------# $image = preg_replace("/[^A-Z]/", "", $_REQUEST["image"]); if (!in_array($image, $valid_list)) { header("Location: finalist.php"); exit; }//end if #-----------------------------------------------------------------------------# if (preg_replace("/[^A-Z]/", "", $_POST["image"]) <> "" && isset($_POST["Submit"])) { $err = ""; $msg = ""; $cell_number = preg_replace("/[^0-9]/", "", $_POST["txt_cell_no"]); if (strlen($cell_number) == 10) { if (substr($cell_number, 0, 1) == "0") { $cell_number = "27" . substr($cell_number, 1); } else { $err++; $msg .= "Invalid Cellphone number<br>"; }//end if } elseif (strlen($cell_number == 11)) { if (substr($cell_number, 0, 2) == "27") { $cell_number = "27" . substr($cell_number, 2); } else { $err++; $msg .= "Invalid Cellphone number<br>"; }//end if } else { $err++; $msg .= "Invalid Cellphone number<br>"; }//end if if ($_POST["chb_terms"] <> "on") { $err++; $msg .= "You need to read and agree to <br />the terms and conditions to vote.<br>"; }//end if if ($err == 0) { sys_open_db(); $image1= $_POST['image']; $cell_number1 = $_POST['txt_cell_no']; if (!have_voted($cell_number)) { $sql = "INSERT INTO votes VALUES ('', '$image', '$cell_number',now())"; $result = mysql_query($sql); if ($result) { header("Location: vote_step_three.php"); exit; } else { $msg = "Failed to create vote record."; }//end if } else { $msg = "You have already voted today. Please try again tomorrow."; }//end if }//end if }//end if ?> <html> <head> <title></title> <link rel="STYLESHEET" type="text/css" href="css/div.css" /> <link rel="STYLESHEET" type="text/css" href="css/stylesheet.css" /> <script type="text/JavaScript"> <!-- function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } //--> </script> </head> <body bgcolor="#0e0f1e" bottommargin="0" topmargin="0" leftmargin="0" rightmargin="0"> <center><table cellpadding="0" cellspacing="0" border="0" height="100%" width="900"> <tr> <td valign="center" align="center"> <table cellpadding="0" cellspacing="0" border="0" height="640" width="900"> <tr> <td height="640"><div class="main-body"> <div class="bg"></div> <div class="border"></div> <div><? require("inc/nav.html");?></div> <div class="content-window"><a href="http://www.revlon24seven.co.za/prizes.php" title="Revlon 24 Seven Prizes"><img src="images/middlewin.png" alt="Revlon 24 Seven Prizes" align="left" height="180" border="0" style="top:80px; left:20px; position:absolute;"></a></div><div class="cstripe"></div> <div class="content1"><font color="#FFFFFF"><center><br /> <table align="center" cellpadding="0" cellspacing="3" class="vote-popup"> <tr> <td align="center" valign="top" bordercolor="#FFFFFF"> <form name="form1" method="post" action="<? echo $PHP_SELF; ?>"><input type="hidden" name="image" value="<? echo $_GET['image']; ?>"> <table width="180" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="41" align="left" valign="top">Please complete the following details to vote:</td> </tr> <tr> <td><p><? echo $msg; ?></p></td> </tr> <tr> <td align="left" valign="top"><p>Your cell number:<br> <label> <input type="text" name="txt_cell_no" class="vote-textfield" value="<? echo $_POST["txt_cell_no"]; ?>"> </label></p></td> </tr> <tr> <td align="left" valign="middle"><p><label><input type="checkbox" name="chb_terms"></label><a href="#" onClick="MM_openBrWindow('terms.html','Terms','scrollbars=yes,resizable=yes,width=600,height=400')">I agree to the terms & conditions</a> </p><br> </td> </tr> </table> <input type="image" value="submit" name="Submit" src="images/submit.png" id="submit"> </form></td> </tr> </table> <br> </center> <br><br> </font> </div> <div class="24logo"><img src="images/24logo.png" style="left:5px; top:10px; position:absolute;"></div> <div class="stripe"></div> <div class="man"></div> <div class="footer"></div> <div class="testimonials"><? randomQuote("testimonials.txt"); ?></div> <div class="copyright"></div> <div class="blinks" align="center"><? require("inc/bottom-nav.html");?></div> </div> </td> </tr> </table> </td> </tr> </table> </body> </html>
  10. Here is a challenge... Everybody knows Joomla, and it's component Morfeoshow. I'm trying to add onto it, made some progress, but here is my current problem. How do I pull a php variable into javascript and print it inside a template defined in a js file?/
  11. Does anyone know how or where i can edit the morfeoshow shadowbox or script for joomla to display the image description and title during the slideshow?
  12. if($_SERVER['REQUEST_METHOD'] == 'POST')? How would I check what value is posted?
  13. how would i incorporate that into my code?
  14. it doesn't submit and returns an error... "Request Invalid"
  15. Most cellphones dont like the submit button or image...
  16. the page layout is basically detrmined by if statements. the firts screen gives you a bunch of images to vote on, after selecting an image it goes to the second page and asks you for your cellphone number. the third screen checks if it's a valid cellphone number and depending on that either checks the database or displays a form if it's not in the database
  17. hmmmm? Bricktop.... here's my code, it's a little messy at current. <?php mysql_connect("localhost","root","") or die (mysql_error()); mysql_select_db("dbase"); //voting entry exec after user registered----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- if (isset ($_POST['register'])){ $sql1=mysql_query("insert into voters values ('','$_POST[elected_id3]','$_POST[name]','$_POST[cell2]',now())"); $sql2=mysql_query("select * from elected where elected_id like '$_POST[elected_id3]'"); $row=mysql_fetch_assoc($sql2); $count1=$row[vote_count]+1; mysql_query("update elected set vote_count=$count1 where elected_id like '$_POST[elected_id3]'"); include "inc/header.html"; echo "<div id='container1'> <div class='events-link2'><a href='events.php'><img src='images/eventsbut.gif'></a><br /><a href='vote.php'><img src='images/votebut.gif'></a><br /><a href='terms.php'><img src='images/termsbut.gif'></a></div> <div align='center' class='events'><table cellpadding='0' cellspacing='0' border='0' width='178'><tr><td><div class='padding'><p>"; echo "<div align='center'><p>Thank you for Voting! Your details have been entered into the draw to win 1 of 8 R300 Fashion vouchers.<br /><br /></p></div></td></tr></div>"; include "inc/foot.html"; exit(); } //check if user exists in database and check if cellphone number is valid-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- if (isset ($_POST['cell']) && $_POST['cell'] != ""){ $query = mysql_query("select * from voters where mobile like '$_POST[cell]'"); $row=mysql_fetch_assoc($query); $num = mysql_num_rows($query); if ($num != 0){ mysql_query("insert into voters values('','$_POST[elected_id2]','$row[name]','$row[mobile]',now())"); $sql2=mysql_query("select * from elected where elected_id like '$_POST[elected_id2]'"); $row=mysql_fetch_assoc($sql2); $count1=$row[vote_count]+1; mysql_query("update elected set vote_count=$count1 where elected_id like '$_POST[elected_id2]'"); include "inc/header.html"; echo "<div id='container1'> <div class='events-link2'><a href='events.php'><img src='images/eventsbut.gif'></a><br /><a href='vote.php'><img src='images/votebut.gif'></a><br /><a href='terms.php'><img src='images/termsbut.gif'></a></div> <div align='center' class='events'><table cellpadding='0' cellspacing='0' border='0' width='178'><tr><td><p>"; echo "<div align='center' class='padding'><p>Thank you for Voting! Your details have been entered into the draw to win 1 of 8 R300 Fashion vouchers.<br /><br /></p></div></td></tr>"; include "inc/foot.html"; exit(); } else{ $cell_number = preg_replace("/[^0-9]/", "", $_POST["cell"]); if (strlen($cell_number) == 10) { if (substr($cell_number, 0, 1) == "0") { //form if user isn't in database---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- $cell_number = "27" . substr($cell_number, 1); include "inc/header.html"; ?> <div id="container1" align="left"> <div class="events-link2"><a href="events.php"><img src="images/eventsbut.gif"></a><br /><a href="vote.php"><img src="images/votebut.gif"></a><br /><a href="terms.php"><img src="images/termsbut.gif"></a></div><div class="events"><table cellpadding='0' cellspacing='0' border='0' width='178'><tr><td><form action='<?php $PHP_SELF; ?>' method='post'><input type='hidden' name='register' value='1'><input type='hidden' name='elected_id3' value='<?php echo "$_POST[elected_id2]"; ?>'> Name: <input type='text' name='name'><br /> Cell: <input type='text' name='cell2' value='<?php echo "$_POST[cell]"; ?>'><br /> <input type='image' src='images/nextbut.gif' name='submit' value='Vote'></form><br /><br /></td></tr></div> <?php include "inc/foot.html"; } else { include "inc/header.html"; echo "<div id='container1'> <div class='events-link2'><a href='events.php'><img src='images/eventsbut.gif'></a><br /><a href='vote.php'><img src='images/votebut.gif'></a><br /><a href='terms.php'><img src='images/termsbut.gif'></a></div> <div align='center' class='events'><table cellpadding='0' cellspacing='0' border='0' width='178'><tr><td><div class='padding'>Invalid Cellphone number<br /><br /></div></td></tr>"; include "inc/foot.html"; }//end if }else { include "inc/header.html"; echo "<div id='container1'> <div class='events-link2'><a href='events.php'><img src='images/eventsbut.gif'></a><br /><a href='vote.php'><img src='images/votebut.gif'></a><br /><a href='terms.php'><img src='images/termsbut.gif'></a></div> <div align='center' class='events'><table cellpadding='0' cellspacing='0' border='0' width='178'><tr><td><div class='padding'>Invalid Cellphone number<br /><br /></div></td></tr>"; include "inc/foot.html"; }//end if?> <?php exit(); }} else if(isset ($_POST['cell']) && $_POST['cell'] == "") { include "inc/header.html"; ?><div id="container1" align="left"> <div class="events-link2"><a href="events.php"><img src="images/eventsbut.gif"></a><br /><a href="vote.php"><img src="images/votebut.gif"></a><br /><a href="terms.php"><img src="images/termsbut.gif"></a></div><div class="events"><?php echo "<table cellpadding='0' cellspacing='0' border='0' width='178'><tr><td>Invalid Cellphone number<br /><br /></td></tr><tr><td>";?> <form action="<?php $PHP_SELF; ?>" method='post'><input type="hidden" name="elected_id2" value="<?php echo "$_POST[elected_id]"; ?>"> Cell: <input type='text' size="15" name='cell' value="<?php echo "$_POST[cell]"; ?>"><br /><center><input type="image" src="images/nextbut.gif" value="Next >"></center></form> <?php echo "</div> <table cellpadding='0' cellspacing='0' width='100%' style='margin-top:15px;'>"; include "inc/foot.html"; include "inc/analytics.php"; exit(); } if (isset ($_POST['elected_id']) && $_POST['elected_id'] !=""){ include "inc/header.html"; ?> <div id="container1" align="left"> <div class="events-link2"><a href="events.php"><img src="images/eventsbut.gif"></a><br /><a href="vote.php"><img src="images/votebut.gif"></a><br /><a href="terms.php"><img src="images/termsbut.gif"></a></div><div class="events"><form action="<?php $PHP_SELF; ?>" method='post'><input type="hidden" name="elected_id2" value="<?php echo "$_POST[elected_id]"; ?>"> Cell: <input type='text' size="15" name='cell'><br /><center><input type="image" src="images/nextbut.gif" value="Next >"></center></form></div><?php } else { //create voting list and display entries randomly-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- include "inc/header.html"; echo "<div id='container1'> <div class='events-link2'><a href='events.php'><img src='images/eventsbut.gif'></a><br /><a href='vote.php'><img src='images/votebut.gif'></a><br /><a href='terms.php'><img src='images/termsbut.gif'></a></div> <div class='events'><div class='padding'>Scroll down to view picture of the finalists from our exciting shows.<br /><br /> Select your favourite and vote from the 26th October to the 8th of November & 1 of 8 R300 Fashion Vouchers Could be yours.<br /><br /> Watch this space for updates.</div><div align='center' class='vote'><br /> "; $sql = mysql_query("select * from elected where day_no not like '-1' order by rand()"); $num = mysql_num_rows($sql); if ($num > 0){ while ($row = mysql_fetch_array($sql)){ ?> <form action="<?php $PHP_SELF; ?>" method='post'> <table cellpadding="0" cellspacing="0" width="178"> <tr> <td align="center"><?php echo "<img src='$row[img_path]' align='center'>"; ?></td> </tr> <tr> <td align='center'><input type='hidden' name='elected_id' value="<?php echo "$row[elected_id]"; ?>"><input type='image' src="images/vote.gif" value='Vote'><br /><br /></td> </tr> </form> <?php } echo "</div> <table cellpadding='0' cellspacing='0' width='100%' style='margin-top:15px;'>"; include "inc/foot.html"; include "inc/analytics.php"; } else{ echo "<div align='center' class='vote'> <table cellpadding='0' cellspacing='0' width='178'> <tr> <td align='center'></td> </tr> <tr> <td align='center'><br /><br /></td> </tr> </div>"; include "inc/foot.html"; include "inc/analytics.php"; }} ?> </body> </html>
  18. create pages and forms that don't make use of input types... basically set all captured data into a hyperlink and post it that way... Come on thorpe, you've givin e loads of good advice in the past.
  19. I am basically doing a form for a mobi site, and most phones don't like the input type="image" or submit, so i'm trying to create a work around
  20. I am trying to use the get function in php. I am setting the variables in the hyperlink url. But how would i set the content of a textfield into the url? eg. <div class="events"> <input type="hidden" name="elected_id2" value="<?php echo "$_POST[elected_id]"; ?>"> Cell: <input type='text' size="15" name='cell'><br /> <center>[b]<a href="vote1.php?elected_id=<?php echo "$_GET[elected_id]"; ?>&cell=<?php echo "$_GET[cell]"; ?>"><img src="images/nextbut.gif" value="vote"></a>[/b]</center> </div>
  21. Nevermind, solved it... Sometimes ppl just don't think....lol!!!! $sql2=mysql_query("select * from elected where day_no not like '-1' order by vote_count desc");
  22. I've got a graph, that ii want to order the graph percentage by desc. Can anyone help? mysql_connect("localhost","root",""); mysql_select_db("db"); $max = 0; $sql2=mysql_query("select * from elected where day_no not like '-1'"); while ($valid_list = mysql_fetch_array($sql2)){ $cnt = 0; $sql = "SELECT COUNT(elected_id) AS 'RCNT' FROM voters where elected_id like '$valid_list[elected_id]' order by COUNT(elected_id) desc"; $result = mysql_query($sql); $myrow = mysql_fetch_array($result); $value = $myrow["RCNT"]; if ($result) { $votes[$value]=$cnt ; if ($cnt > $max) { $max = $cnt; }//end if $l=mysql_query("select sum(vote_count) as 'total' from elected"); $r=mysql_fetch_assoc($l); $total = $r["total"]; } else { $votes[$value] = 0; }//end if echo " <tr>\n"; echo " <td align=center>$valid_list[elected_id]</td>\n"; echo " <td align=center><img src='../$valid_list[img_path]' height='40'></td>\n"; $p = number_format((($myrow["RCNT"] / $total) * 100), 2, ".", ","); $w = (200 * ($p / 100)); echo " <td align=center>$value</td>\n"; echo " <td align=left><img src='1x1.jpg' width='" . $w . "px' height='10px' border=0>" . $p . "%</td>\n"; echo " </tr>\n"; echo "<br />";}//next //next
  23. Ok Guys and Gurlz... I'm entering items into a table, and echoing the contents, but now i need to store them somewhere so i can retrieve them after a post to paygate. Any advice
  24. Ok guys, I'm using a lightbox script. But it seems to ignore the size i set in the css, Has anyone gotten it to customize the size of the lightbox pop-up windows? .leightbox {width:300px; padding: -10px -10px -10px -10px; color:#FFFFFF; display: none; border: 10px solid; background-color: white; text-align: left; z-index:5010; height: 500px; overflow: auto; } #lightbox.done #lbContent{ display:block; width: *280px;* height: *280px;* border: 10px solid white; } #overlay{ position: absolute; padding: -10px -10px -10px -10px; top: 0; left: 0; z-index: 90; width: 300px; height: 500px; background-color: #000; filter:alpha(opacity=100); -moz-opacity:0.; opacity: 0; } .img{ behavior: url(scripts/iepngfix.htc); } .lightbox[id]{ /* IE6 and below Can't See This */ position:absolute; } #overlay[id]{ /* IE6 and below Can't See This */ position:absolute; } <?php //include "functions.php"; //include "modcart.php"; ?> <html> <head> <meta name="description" content="Clear boxes for a professional look and finish. A practical solution to save space and money. Make storage seem effortless."> <title>Clear shoe, boot, storage boxes. Stackable, sturdy. Practical storage solution. Ease of access. Space saver.</title></head> <link rel="stylesheet" type="text/css" href="css/sis.css" /> <link rel="stylesheet" href="css/screen.css" media="screen,projection" type="text/css" /> <!-- JavaScript --> <script type="text/javascript" src="scripts/prototype.js"></script> <script type="text/javascript" src="scripts/lightbox.js"></script> </head> <body> <div align="center"> <div id="frame"> <div id="header_box"> <div id="topheader"></div> <div id="home_button"><?php include "include/topnavigation.html"; ?></div> <div id="intro_text">Transparent polypropylene shoe boxes, boot boxes, hat boxes and general storage boxes. Delivery within 7 days countrywide at R85 per order.</div> </div> <!-- normal content belo - hidden content above --> <div id="product-frame"> <a name="p1"></a> <div id="product-img"><img src="images/tcb_ladies_clear_boxes.png" height="100"/><br><a href="#product1" rel="product1" class="lbOn"><h6>Click here to enlarge..</h6></a></div> <div id="product-header"><h1>Ladies' clear shoe boxes</h1></div> <div id="product-info"><h2>Sort out the chaos in your cupboards with these sturdy stackable clear boxes. A convenient way to access your shoes with no fuss.</h2></div> <div id="product-description"><h3>Dimension 29.5 x 18 x 9.5cm Holds up to size 8</h3></div> <div id="price_buy"><span class="price">R190 per pack of 5 <br /></span><div class="buy"/><input type="hidden" name="product1" value="1"><input type="hidden" name="qty" value="1"> <a href="javascript:document.product1.submit()">Buy now!..</a></div> </div> </div> <hr> <div id="product-frame"> <a name="p2"></a><form method="post" action="modcart.php?action=add" name="product2"> <div id="product-img"><img class="img-fix"src="images/tcb_ladies_coloured_boxes.jpg" height="100"/><br><a href="#product2" rel="product2" class="lbOn"><h6>Click here to enlarge..</h6> </a></div> <div id="product-header"><h1>Ladies' shoe boxes</h1></div> <div id="product-info"><h2>We offer a mixed pack with 2 clear, 1 lilac, 1 turquoise, 1 pink, bringing a variety to your cupboards.</h2></div> <div id="product-description"><h3>Dimension 29.5 x 18 x 9.5cm Holds up to size 8</h3></div> <div id="price_buy"><span class="price">R190 per pack of 5<br /></span><div class="buy"/><input type="hidden" name="product2" value="2"><input type="hidden" name="qty" value="1"> <a href="javascript:document.product2.submit()">Buy now!..</a></div> </form> </div> </div> <hr> <div id="product-frame"> <a name="p3"></a><form method="post" action="modcart.php?action=add" name="product3"> <div id="product-img"><img class="img-fix"src="images/mens_double_stack.jpg" height="100"/><br><a href="#product3" rel="product3" class="lbOn"><h6>Click here to enlarge..</h6></a></div> <div id="product-header"><h1>Men's shoe boxes</h1></div> <div id="product-info"><h2>We cater for the man who takes pride in his shoes and keeps his cupboard tidy.</h2></div> <div id="product-description"><h3>Dimensions 34 x 21 x 13cm Holds up to size 11</h3></div> <div id="price_buy"><span class="price">R240 per pack of 5<br /></span><div class="buy"/><input type="hidden" name="product3" value="3"><input type="hidden" name="qty" value="1"> <a href="javascript:document.product3.submit()">Buy now!..</a></div> </form> </div> </div> <hr> <div id="product-frame"> <a name="p4"></a><form method="post" action="modcart.php?action=add" name="product4"> <div id="product-img"><img class="img-fix"src="images/mid calf.jpg" height="100"/><br><a href="#product4" rel="product4" class="lbOn"><h6>Click here to enlarge..</h6></a></div> <div id="product-header"><h1>Mid calf boot boxes</h1></div> <div id="product-info"><h2>For your ankle and mid calf boots. Very useful size for a variety of storage items.</h2></div> <div id="product-description"><h3>Dimensions 36 x 29 x 12cm</h3></div> <div id="price_buy"><span class="price">R110 per pack of 2<br /></span><div class="buy"/><input type="hidden" name="product4" value="4"><input type="hidden" name="qty" value="1"> <a href="javascript:document.product4.submit()">Buy now!..</a></div> </form> </div> </div> <hr> <div id="product-frame"> <a name="p5"></a><form method="post" action="modcart.php?action=add" name="product5"> <div id="product-img"><img class="img-fix"src="images/2-knee-length.jpg" height="100"/><br><a href="#product5" rel="product5" class="lbOn"><h6>Click here to enlarge..</h6></a></div> <div id="product-header"><h1>Knee length boot boxes</h1></div> <div id="product-info"><h2>The picture tells you a story - these boot boxes will keep your boots secure and will prevent them from creasing.</h2></div> <div id="product-description"><h3>Dimensions 53 x 29 x 12.5cm</h3></div> <div id="price_buy"><span class="price">R120 per pack of 2<br /></span><div class="buy"/><input type="hidden" name="product5" value="5"><input type="hidden" name="qty" value="1"> <a href="javascript:document.product5.submit()">Buy now!..</a></div> </form> </div> </div> <hr> <div id="product-frame"> <a name="p6"></a><form method="post" action="modcart.php?action=add" name="product6"> <div id="product-img"><img class="img-fix"src="images/boot_support1.jpg" height="100"/><br><a href="#product6" rel="product6" class="lbOn"><h6>Click here to enlarge..</h6></a></div> <div id="product-header"><h1>Boot supports</h1></div> <div id="product-info"><h2>These will support your boots in their boxes. Just slip them inside the leg of the boot and whola!</h2></div> <div id="product-description"></div> <div id="price_buy"><span class="price">R25 per pair<br /></span><div class="buy"/><input type="hidden" name="product6" value="6"><input type="hidden" name="qty" value="1"> <a href="javascript:document.product6.submit()">Buy now!..</a></div> </form> </div> </div> <hr> <div id="product-frame"> <a name="p7"></a><form method="post" action="modcart.php?action=add" name="product7"> <div id="product-img"><img class="img-fix"src="images/hat_box.jpg" height="100"/><br><a href="#product7" rel="product7" class="lbOn"><h6>Click here to enlarge..</h6></a></div> <div id="product-header"><h1>Hat boxes</h1></div> <div id="product-info"><h2>Available for a limited period. Keep your hats and other creations clean and un-squashed.</h2></div> <div id="product-description"><h3>Dimensions 53.5 x 30.5cm</h3></div> <div id="price_buy"><span class="price">R120 per box<br /></span><div class="buy"/><input type="hidden" name="product7" value="7"><input type="hidden" name="qty" value="1"> <a href="javascript:document.product7.submit()">Buy now!..</a></div> </form> </div> </div> <hr> <div id="product-frame"> <a name="p8"></a><form method="post" action="modcart.php?action=add" name="product8"> <div id="product-img"><img class="img-fix"src="images/storage_double.jpg" height="100"/><br><a href="#product8" rel="product8" class="lbOn"><h6>Click here to enlarge..</h6></a></div> <div id="product-header"><h1>Storage boxes</h1></div> <div id="product-info"><h2>General storage solutions for all those items that need to be packed away for summer or winter.</h2></div> <div id="product-description"><h3>Dimensions 38 x 38 x 38cm</h3></div> <div id="price_buy"><span class="price">R240 per pack of 2<br /></span><div class="buy"/><input type="hidden" name="product8" value="8"><input type="hidden" name="qty" value="1"> <a href="javascript:document.product8.submit()">Buy now!..</a></div> </form> </div> </div><br /><br /> <div id="footer"><?php include "include/bottomnavigation.html"; ?></div> </div> </div> <div id="product1" class="leightbox"><center> <img src="images/2-knee-length.png" height="300" class="img"></center><br /> <a href="#" class="lbAction" rel="deactivate">Close</a> </div> <div id="product2" class="leightbox"><center> <img src="images/2-knee-length.png" height="300" class="img"></center><br /> <a href="#" class="lbAction" rel="deactivate">Close</a> </div> <div id="product3" class="leightbox"><center> <img src="images/2-knee-length.png" height="300" class="img"></center><br /> <a href="#" class="lbAction" rel="deactivate">Close</a> </div> <div id="product4" class="leightbox"><center> <img src="images/2-knee-length.png" height="300" class="img"></center><br /> <a href="#" class="lbAction" rel="deactivate">Close</a> </div> <div id="product5" class="leightbox"><center> <img src="images/2-knee-length.png" height="300" class="img"></center><br /> <a href="#" class="lbAction" rel="deactivate">Close</a> </div> <div id="product6" class="leightbox"><center> <img src="images/2-knee-length.png" height="300" class="img"></center><br /> <a href="#" class="lbAction" rel="deactivate">Close</a> </div> <div id="product7" class="leightbox"><center> <img src="images/2-knee-length.png" height="300" class="img"></center><br /> <a href="#" class="lbAction" rel="deactivate">Close</a> </div> <div id="product8" class="leightbox"><center> <img src="images/2-knee-length.png" height="300" class="img"></center><br /> <a href="#" class="lbAction" rel="deactivate">Close</a> </div> </body> <html> [attachment deleted by admin]
×
×
  • 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.