Jump to content

kpetsche20

Members
  • Posts

    151
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

kpetsche20's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. Tell us your opinion on hash_hmac() or tell us why your method is better.
  2. Hey, I have a FLV video and I need some advice on how to stream the video on my website. Any help would be appreciated. Thanks!
  3. Hey thanks for the reply, I'm new when it comes to javascript (I only know PHP), so I'm not really sure how to write the code, is there anyway you can write it here so I can copy paste it into my code. <?php if($_POST['calculate']) { $total = $_POST['required'] + $_POST['one'] + $_POST['two'] + $_POST['three'] + $_POST['four'] + $_POST['five'] + $_POST['six'] + $_POST['seven'] + $_POST['eight'] + $_POST['nine'] + $_POST['ten'] + $_POST['eleven'] + $_POST['tweleve']; } if($_POST['submit']) { if($_POST['one']) { $one = 'Statistik'; } if($_POST['two']) { $two = 'Gastbok'; } if($_POST['three']) { $three = 'Mediemskap'; } if($_POST['four']) { $four = 'Sokfunktion'; } if($_POST['five']) { $five = 'Produkter'; } if($_POST['six']) { $six = 'Fotogalleri'; } if($_POST['seven']) { $seven = 'Kop och Salj'; } if($_POST['eight']) { $eight = 'Blogg'; } if($_POST['nine']) { $nine = 'Nyhetsbrevutskick'; } if($_POST['ten']) { $ten = 'Forum'; } if($_POST['eleven']) { $eleven = 'Community'; } if($_POST['tweleve']) { $tweleve = 'Bokningssystem'; } $to = 'Serhat.eser@foretagshjalp.se'; // subject $subject = 'Beställning'; // message $message = " <html> <head> <title></title> </head> <body> Namn: ".$_POST['name']." Företagsnamn: ".$_POST['for']." E-post: ".$_POST['epost']." Telefonnummer: ".$_POST['phone']." Övrigt: ".$_POST['textarea']." Products: ".$_POST['required']." $one $two $three $four $five $six $seven $eight $nine $ten $eleven $tweleve </body> </html> "; // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Additional headers $headers .= 'From: <Serhat.eser@foretagshjalp.se>' . "\r\n"; $headers .= 'Cc: Serhat.eser@foretagshjalp.se' . "\r\n"; $headers .= 'Bcc: Serhat.eser@foretagshjalp.se' . "\r\n"; // Mail it mail($to, $subject, $message, $headers); echo "Message sent"; } else { ?> <form name="name" method="POST"> <table width="700" height="600" border="0" cellpadding="6" cellspacing="0"> <tr> <td valign="top" background="images/background.png"><table width="99%" border="0" align="center" cellpadding="6" cellspacing="0"> <tr> <td width="34%"> <input name="required" type="radio" value="199" checked> <img src="images/hemsidepaket.199.png" width="179" height="129"></td> <td width="32%" valign="top">asdfasfasfsadfasdfasfasf</td> <td width="34%" valign="top"> <input type="image" src="images/calculate.png" value="calculate" alt="calculate" name="calculate"><br> <br> Total: <?php echo $total; ?></td> </tr> <tr> <td><p> <label> </label> <?php if($_POST['one']) { ?> <input name="one" type="checkbox" value="1.49" checked> <?php } else { ?> <input type="checkbox" name="one" value="1.49"> <?php } ?> <img src="images/1.49.png" width="162" height="42"></p> <p> <?php if($_POST['two']) { ?> <input name="two" type="checkbox" value="3.19" checked> <?php } else { ?> <input type="checkbox" name="two" value="3.19"> <?php } ?> <img src="images/3.19.png" width="162" height="42"></p> <p> <?php if($_POST['three']) { ?> <input type="checkbox" name="three" value="4.39" checked> <?php } else { ?> <input type="checkbox" name="three" value="4.39" checked> <?php } ?> <img src="images/4.39.png" width="162" height="42"></p> <p> <?php if($_POST['four']) { ?> <input type="checkbox" name="four" value="5.10" checked> <?php } else { ?> <input type="checkbox" name="four" value="5.10"> <?php } ?> <img src="images/5.10.png" width="162" height="42"><br> <br> </p></td> <td valign="top"><p> <?php if($_POST['five']) { ?> <input type="checkbox" name="five" value="6.19" checked> <?php } else { ?> <input type="checkbox" name="five" value="6.19"> <?php } ?> <img src="images/6.199.png" width="162" height="42"></p> <p> <?php if($_POST['six']) { ?> <input type="checkbox" name="six" value="7.19" checked> <?php } else { ?> <input type="checkbox" name="six" value="7.19"> <?php } ?> <img src="images/7.19.png" width="162" height="42"></p> <p> <?php if($_POST['seven']) { ?> <input type="checkbox" name="seven" value="8.14" checked> <?php } else { ?> <input type="checkbox" name="seven" value="8.14"> <?php } ?> <img src="images/8.149.png" width="162" height="42"></p> <p> <?php if($_POST['eight']) { ?> <input type="checkbox" name="eight" value="9.79" checked> <?php } else { ?> <input type="checkbox" name="eight" value="9.79"> <?php } ?> <img src="images/9.79.png" width="162" height="42"></p></td> <td valign="top"><p> <?php if($_POST['nine']) { ?> <input type="checkbox" name="nine" value="2.79" checked> <?php } else { ?> <input type="checkbox" name="nine" value="2.79"> <?php } ?> <img src="images/2.79.png" width="193" height="42"></p> <p> <?php if($_POST['ten']) { ?> <input type="checkbox" name="ten" value="10.19" checked> <?php } else { ?> <input type="checkbox" name="ten" value="10.19"> <?php } ?> <img src="images/10.199.png" width="162" height="42"></p> <p> <?php if($_POST['eleven']) { ?> <input type="checkbox" name="eleven" value="11.19" checked> <?php } else { ?> <input type="checkbox" name="eleven" value="11.19" checked> <?php } ?> <img src="images/11.199.png" width="162" height="42"></p> <p> <?php if($_POST['tweleve']) { ?> <input type="checkbox" name="tweleve" value="12.19" checked> <?php } else { ?> <input type="checkbox" name="tweleve" value="12.19" > <?php } ?> <img src="images/12.199.png" width="182" height="42"> </p></td> </tr> </table> <br> <table width="99%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="17%" valign="top">Namn: </td> <td width="28%" valign="top"><input type="text" name="namn"></td> <td width="55%" rowspan="5" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="6"> <tr> <td valign="top">Övrigt: <textarea name="textarea" cols="30" rows="5"></textarea> <input type="image" src="images/Submit.png" value="submit" name="submit"></td> </tr> </table> </td> </tr> <tr> <td valign="top">Företagsnamn:</td> <td width="28%" valign="top"><input type="text" name="for"></td> </tr> <tr> <td valign="top">E-post: </td> <td width="28%" valign="top"><input type="text" name="epost"></td> </tr> <tr> <td valign="top">Telefonnummer: </td> <td width="28%" valign="top"><input type="text" name="phone"></td> </tr> <tr> <td valign="top"> </td> <td valign="top"> </td> </tr> </table></td> </tr> </table> </form> <?php } ?>
  4. How do I make a form Submit Button a picture with the value/name of calculate?
  5. I'm trying to insert multiple checkboxes into mysql with the same name. Anyone know how to do this?
  6. I find it somewhat pointless too but that is what my friend said he wants.
  7. Hey, I am having trouble moving a file to a different directory. The script below creates a new file but it uploads to the /admin directory and it needs to upload to the directory before that. <?php if($_POST['submit']) { //mysql_query("INSERT INTO tblname (pagename, content) VALUES('".."', '".."')") or die(mysql_error()); $new_contents = " <?php require \"includes/php/front/code/includes.php\" ?> <?php require \"includes/php/front/pages/overall_header.php\" ?> <?php \$sql = mysql_query(\"SELECT * FROM cart WHERE id=id\") or die(mysql_error()); ?> <?php require \"includes/php/front/pages/overall_footer.php\" ?> ".$_POST['content']." "; $file = $_POST['pagename'].".php"; $fh = fopen($file, 'x'); fwrite($fh, $new_contents); fclose($fh); move_uploaded_file('/home/zionist/public_html/admin/$file', '/home/zionist/public_html/$file'); } echo getcwd(); ?> <form name="form" method="POST" action=""> Page Name: <input type="text" name="pagename" /> <br /> Content<br /> <textarea name="content" cols="40" rows="10"></textarea> <input type="submit" name="submit" value="submit" /> </form>
  8. How do you select values from a MySQL database that only start with numbers
  9. I am trying to make my mysql results sortable by the first letter # A B C D E F G H I J K L M N O P Q R S T U V W X Y Z So when someone clicks a letter it sorts the results by the first letter in the title.
  10. I need to add 3 days to a date, the date is in the format YYYY-MM-DD public function start_date_plus_3($league) { $sql = mysql_query("SELECT * FROM pleagues WHERE id = '".$league."'") or die(mysql_error()); while($data = mysql_fetch_array($sql)) { $starttime = $data['startdate'] $timestamp = strtotime($data['startdate']); } }
  11. it's a timestamp 1230520015 That error is showing up, but the date is also displaying, so I just need to get rid of the error
  12. I am trying to convert a timestamp into a readable date. This is the error I am getting Warning: date() expects parameter 2 to be long, string given in /home/snugcash/public_html/admin/listnews.php on line 66 Here's the code <td width="152" class="myaccount"><?=date("Y-m-d", $data['date']) ?></a></td>
  13. THORPE STOP RESPONDING YOU ADVICE IS NOT HELPFUL. I tried using the date() and it doesn't convert my timestamp into a date.
  14. Anyone else have advice that is actually helpful, I need to know what function to use to turn a timestamp into a human readable date
×
×
  • 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.