Jump to content

TheDutchBeast

Members
  • Posts

    31
  • Joined

  • Last visited

Everything posted by TheDutchBeast

  1. Hello fellow prgrammers. I have a simple question. I am making a system which changes to display a fullscreen youtube link when the database says so. But I cant seem to get the new frame fully shown, just as 1 of 4 screens in a display page. what am i doing wrong with target top? elseif($type == "youtube"){ print "<meta http-equiv=\"refresh\" content=\"15;URL=../uitvoeryoutube.php\"TARGET=\"_top\"\" />"; Let me know! Greetings. Dave Thanks in advance !
  2. I understand that. Do you have a javascript solution, or is this not the place to be for that?
  3. You have any idea how I can do that? So its not possible with php?
  4. Hello follow programmers, I have a little question regarding my PHP code. I now have a perfect working code that takes my frame heigth and width and adjusts the image to the frame. Works great. The issue now is, I have multiple images in my dolder, how can I play them with a delay of say.. 10 seconds? Here is the piecer of my code that matters: Of course I have to count the images in the folder but how do I play them with a short break in it. <?php $img_folder = "../fotos/"; $imgs = dir($img_folder); while ($file = $imgs->read()) { $lengte = (strlen($file)-3); $extentie = substr($file,$lengte,3); //print "extentie $lengte = $extentie <br>"; if($extentie == "jpg" || $extentie == "JPG" || $extentie =="jpeg" || $extentie =="gif" || $extentie =="bmp"){ //print "tada<br>"; $size = getimagesize($img_folder.$file); $hoog = $size[1]; $breed = $size[0]; if(($breed/$screenW)>($hoog/$screenH)){ print"<img src=\"$img_folder$file\" width=\"$screenW\">"; }else{ print"<img src=\"$img_folder$file\" height=\"$screenH\">"; } } } closedir($imgs->handle); } ?> Thanks in advance! Dave
  5. Haha I will dude, thanks. I have found a solution via javascript. Thanks and have a great day!
  6. I am working in an extern company for a school project, So i have a boss here who tells me what to do.
  7. I have no choice, my boss told me so. I have only one week to finish the project for my school, or else I have a huge problem
  8. Dear fellow php programmers. Ik have 4 frames in an page and one contains pictures. I managed to get the pictures fullscreen, yet it does not resize when the index page is shown. It looks like this: And the goal is to make the picture fit perfect, so not half the picture, and adjust to its resolution. How can i fix this? Thanks in advance Dave
  9. Hello fellow programmers, I have a little, yet innoying issue. My code does not send my hidden IFRAME. The row LINK in my database doesn't get completely filled due to my hidden filmdef value. This is my database result: 1325372460 1325459400 12 <iframe width= youtube This has a begin and end timestamp of the youtube link and an ID(12) it also contains the iframe, with the youtube link fileld in in the first page. Everything works properly accept for the iframe passing with the hidden variable. How can I fix this and what am I missing or doing wrong. Heres my code: <?php include '../databaseconnectie/DBconnection2.php'; // connectie toevoegen via include if(isset($_POST['status'])){ $status = $_POST['status']; }elseif(isset($_GET['status'])){ $status = $_GET['status']; }else{ $status = ""; } if(isset($_POST['startmaand'])){ $startmaand = $_POST['startmaand']; }else{ $startmaand = ""; }if(isset($_POST['startdag'])){ $startdag = $_POST['startdag']; }else{ $startdag = ""; }if(isset($_POST['startuur'])){ $startuur = $_POST['startuur']; }else{ $startuur = ""; }if(isset($_POST['startjaar'])){ $startjaar = $_POST['startjaar']; }else{ $startjaar = ""; }if(isset($_POST['startminuut'])){ $startminuut = $_POST['startminuut']; }else{ $startminuut = ""; } if(isset($_POST['eindmaand'])){ $eindmaand = $_POST['eindmaand']; }else{ $eindmaand = ""; } if(isset($_POST['einddag'])){ $einddag = $_POST['einddag']; }else{ $einddag = ""; } if(isset($_POST['eindjaar'])){ $eindjaar = $_POST['eindjaar']; }else{ $eindjaar = ""; } if(isset($_POST['einduur'])){ $einduur = $_POST['einduur']; }else{ $einduur = ""; } if(isset($_POST['eindminuut'])){ $eindminuut = $_POST['eindminuut']; }else{ $eindminuut = ""; } if(isset($_POST['filmdef'])){ $filmdef = $_POST['filmdef']; }else{ $filmdef = ""; } ?> <html> <head> <link rel="stylesheet" href="../opmaak/opmaak.css" type="text/css"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>De Nassau Infosys YOUTUBE Opdracht Invoeren</title> <link rel="stylesheet" href="opmaak.css" type="text/css"> </head> <body> <h1> <img src="http://denassau.nl/templates/nassau-home/images/denassau-logo.jpg" border="0" width="60" height="35"> De Nassau Infosys YOUTUBE Opdracht Invoeren <img src="http://denassau.nl/templates/nassau-home/images/denassau-logo.jpg" border="0" width="60" height="35"> </h1> <?php if($status == ""){ ?> <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" ENCTYPE="multipart/form-data"> <table> <tr> <td> <?php echo "<b>Voer uw youtube link hieronder in:</b>"; ?> </td> </tr> <tr> <td><b>Youtube Link: </b></td> <td> <input size="50" type="text" name="uploadedyoutube" value=""> </td> </tr> <tr> <td> <input type="submit" name="xsubmit" value="Opslaan en Verzenden"> </td> </tr> <input type="hidden" name="status" value="controle"> </table> </form> <?php } if($status == "controle"){ $youtubelink=$_POST['uploadedyoutube']; echo"<b>Uw ingevulde youtube link is</b>: <br />"; echo "$youtubelink<br />"; echo"<b>Hieronder is uw filmpje zichtbaar:<br />"; $pos = strrpos($youtubelink, "="); $link = substr($youtubelink, ($pos+1)); print "link: $link<br>"; $film = "<iframe width=\"560\" height=\"315\" src=\"http://www.youtube.com/embed/".$link."?fs=1&autoplay=1&loop=1\" frameborder=\"0\" allowFullScreen=></iframe>"; $filmdef = '<iframe width="560" height="315" src="http://www.youtube.com/embed/'.$link.'?fs=1&autoplay=1&loop=1" frameborder="0" allowFullScreen=></iframe>'; print "$film"; ?> <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" ENCTYPE="multipart/form-data"> <table> <tr> <td> <input type="submit" name="xsubmit" value="Opslaan en Verzenden"> </td> </tr> <input type="hidden" name="status" value="tijdcontrole"> <?php print "<input type=\"hidden\" name=\"filmdef\" value=\"$filmdef\">"; print "</form>"; } if($status == "tijdcontrole"){ $huidigjaar = date("Y"); $nieuwjaar = $huidigjaar + 1 ; $nieuwjaar2 = $huidigjaar + 2 ; ?> <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" ENCTYPE="multipart/form-data"> <table> <tr> <br> <td>Start tijd:</td> <td> Uur: <select name="startuur"> <?php for ($i=0; $i<=23; $i++) { echo "<option value='$i'>$i</option>"; } ?> </select> Minuten: <select name="startminuut"> <?php for ($i=0; $i<=59; $i++) { echo "<option value='$i'>$i</option>"; } ?> </select> </td> </tr> <tr> <td>Eind tijd:</td> <td> Uur: <select name="einduur"> <?php for ($i=0; $i<=23; $i++) { echo "<option value='$i'>$i</option>"; } ?> </select> Minuten: <select name="eindminuut"> <?php for ($i=0; $i<=59; $i++) { echo "<option value='$i'>$i</option>"; } ?> </select> </td> </tr> <tr> <td> <?php echo "<b>Deze tijden zijn voor de volgende dagen:</b>"; ?> </td> </tr> <tr> <tr> <td>Start datum:</td> <td> Maand: <select name="startmaand" > <option value="1">Januari</option> <option value="2">Februari</option> <option value="3">Maart</option> <option value="4">April</option> <option value="5">Mei</option> <option value="6">Juni</option> <option value="7">Juli</option> <option value="8">Augustus</option> <option value="9">September</option> <option value="10">Oktober</option> <option value="11">November</option> <option value="12">December</option> </select> Dag: <select name="startdag"> <?php for ($i=1; $i<=31; $i++) { echo "<option value='$i'>$i</option>"; } ?> </select> Jaar: <select name="startjaar"> <?php echo "<option value='$huidigjaar'>$huidigjaar</option>"; echo "<option value='$nieuwjaar'>$nieuwjaar</option>"; echo "<option value='$nieuwjaar2'>$nieuwjaar2</option>"; ?> </select> </td> </tr> <td>Eind datum:</td> <td> Maand: <select name="eindmaand"> <option value="1">Januari</option> <option value="2">Februari</option> <option value="3">Maart</option> <option value="4">April</option> <option value="5">Mei</option> <option value="6">Juni</option> <option value="7">Juli</option> <option value="8">Augustus</option> <option value="9">September</option> <option value="10">Oktober</option> <option value="11">November</option> <option value="12">December</option> </select> Dag: <select name="einddag"> <?php for ($i=1; $i<=31; $i++) { echo "<option value='$i'>$i</option>"; } ?> </select> Jaar: <select name="eindjaar"> <?php echo "<option value='$huidigjaar'>$huidigjaar</option>"; echo "<option value='$nieuwjaar'>$nieuwjaar</option>"; echo "<option value='$nieuwjaar2'>$nieuwjaar2</option>"; ?> </select> </td> </tr> <tr> <td> <input type="submit" value="Opslaan en Verzenden"> </td> </tr> <input type="hidden" name="status" value="done"> <?php print "<input type=\"hidden\" name=\"filmdef\" value=\"$filmdef\">"; ?> </form> </table> <?php } if($status == "done"){ ?> <h2> Uw YOUTUBE opdracht wordt opgeslagen </h2> <br /> <b> Uw afspeeltijden Betreffen: </b> <br /> <b>Start tijd betreft:</b> UUR:<?php echo $_POST["startuur"]; ?> MINUUT:<?php echo $_POST["startminuut"]; ?> <br> <b>Eind tijd betreft:</b> UUR:<?php echo $_POST["einduur"]; ?> MINUUT:<?php echo $_POST["eindminuut"]; ?> <br> <b>Start datum betreft:</b> DAG:<?php echo "$startdag"; ?> MAAND:<?php echo $_POST["startmaand"]; ?> JAAR:<?php echo $_POST["startjaar"]; ?>. <br> <b>Eind datum betreft:</b> DAG:<?php echo $_POST["einddag"]; ?> MAAND:<?php echo $_POST["eindmaand"]; ?> JAAR:<?php echo $_POST["eindjaar"]; ?>. <br> <b>Complete afspeelcode:</b> <?php echo "$filmdef"; ?> <br> <?php $begindatum = mktime($startuur, $startminuut, 0, $startmaand, $startdag, $startjaar);//($startuur, $startminuut, 0, $startmaand, $startdag, $startjaar); $einddatum = mktime($einduur, $eindminuut, 0, $eindmaand, $einddag, $eindjaar); //($einduur, $eindminuut, 0, $eindmaand, $einddag, $eindjaar); echo "<br />"; echo "TIMESTAMPS<b>(voor administrator gebruik)</b>:<br />"; echo "<b>BEGIN: </b>$begindatum <br />\n"; echo "<b>EIND : </b>$einddatum<br /> <br />\n"; echo "$begindatum <br />"; echo "$einddatum <br />"; mysql_query("INSERT INTO youtube (starttijd,eindtijd,link,type) VALUES ('$begindatum','$einddatum','$filmdef','youtube')") or die("foutje: ".mysql_error()); } And the error should be somewhere in here: print "<input type=\"hidden\" name=\"filmdef\" value=\"$filmdef\">"; Thanks in advance. Greetings, Dave!
  10. Okay i've found a solution and I'm now busy with php, and in need of some help. I want the link I fill in to end in my embed code but I just cant get it right. The video just stays blank And then for example this as a link : http://www.youtube.com/watch?v=xRx8lmKub_Y Im here so far now: <?php include '../databaseconnectie/DBconnection2.php'; // connectie toevoegen via include if(isset($_POST['status'])){ $status = $_POST['status']; }elseif(isset($_GET['status'])){ $status = $_GET['status']; }else{ $status = ""; } ?> <html> <head> <link rel="stylesheet" href="../opmaak/opmaak.css" type="text/css"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>De Nassau Infosys FOTO Opdracht Invoeren</title> <link rel="stylesheet" href="opmaak.css" type="text/css"> </head> <body> <h1> <img src="http://denassau.nl/templates/nassau-home/images/denassau-logo.jpg" border="0" width="60" height="35"> De Nassau Infosys YOUTUBE Opdracht Invoeren <img src="http://denassau.nl/templates/nassau-home/images/denassau-logo.jpg" border="0" width="60" height="35"> </h1> <?php if($status == ""){ ?> <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" ENCTYPE="multipart/form-data"> <table> <tr> <td> <?php echo "<b>Voer uw youtube link hieronder in:</b>"; ?> </td> </tr> <tr> <td><b>Youtube Link: </b></td> <td> <input size="50" type="text" name="uploadedyoutube" value=""> </td> </tr> <tr> <td> <input type="submit" name="xsubmit" value="Opslaan en Verzenden"> </td> </tr> <input type="hidden" name="status" value="controle"> </table> </form> <?php } if($status == "controle"){ $youtubelink=$_POST['uploadedyoutube']; echo"<b>Uw ingevulde youtube link is</b>: <br />"; echo "$youtubelink<br />"; echo"<b>Hieronder is uw filmpje zichtbaar:<br />"; ?> <object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/OdT9z-JjtJk&autoplay=1"></param> <embed src="<?php $youtubelink ?>" type="application/x-shockwave-flash" width="425" height="350"> </embed> </object> <?php }
  11. You are partially right indeed. And I apologize, is there any way I can post this on the forum or ask you guys for help"on this subject?
  12. Fellow programmers! I have a simple yet for me inpossible question. I have an embedded youtube video and I added autoplay, but now I want it to play fullscreen automatically without the press of a button. I want to open the page and KABOOM, youtube movie fullscreen and autoplay. My question is how do I add the fullscreen function? Here's my code so far: <html> <head> <title> Youtube! </title> </head> <body> <object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/OdT9z-JjtJk&autoplay=1"></param><embed src="http://www.youtube.com/v/OdT9z-JjtJk&autoplay=1" type="application/x-shockwave-flash" width="425" height="350"></embed></object> </body> </html>
  13. I have a picture display code. But the picture is not vertically aligned and I just can't get it to work. What am I doing wrong? One of the last rules contains the vallign; print"<img src=\"$foto\" width=\"$screenW\" heigth=\"$screenH\" valign=\"middle\">"; Thanks in advance. Dave <?php include '../databaseconnectie/DBconnection2.php'; // connectie toevoegen via include if(isset($_POST['check'])){ $check = $_POST['check']; } elseif(isset($_GET['check'])){ $check = $_GET['check']; } else { $check = "";} if(isset($_POST['screenW'])){ $screenW = $_POST['screenW']; } elseif(isset($_GET['screenW'])){ $screenW = $_GET['screenW']; } else { $screenW = "";} if(isset($_POST['screenH'])){ $screenH = $_POST['screenH']; } elseif(isset($_GET['screenH'])){ $screenH = $_GET['screenH']; } else { $screenH = "";} if(isset($_POST['teller'])){ $teller = $_POST['teller']; } elseif(isset($_GET['teller'])){ $teller = $_GET['teller']; } else { $teller = "";} if(isset($_POST['cycle'])){ $cycle = $_POST['cycle']; } elseif(isset($_GET['cycle'])){ $cycle = $_GET['cycle']; } else { $cycle = "";} if(isset($_POST['seconde'])){ $seconde = $_POST['seconde']; } elseif(isset($_GET['seconde'])){ $seconde = $_GET['seconde']; } else { $seconde = "";} if(isset($_POST['eindtijd'])){ $eindtijd = $_POST['eindtijd']; } elseif(isset($_GET['eindtijd'])){ $eindtijd = $_GET['eindtijd']; } else { $eindtijd = "";} if(isset($_POST['arrayfoto'])){ $arrayfoto = $_POST['arrayfoto']; $fotoresultaat = explode("-,-,-,",$arrayfoto); } elseif(isset($_GET['arrayfoto'])){ $arrayfoto = $_GET['arrayfoto']; $fotoresultaat = explode("-,-,-,",$arrayfoto); } else { $fotoresultaat = "";} ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251" /> <?php if($check == "" && $teller==""){ ?> <form name="detect" method='post' action=" <?php echo $_SERVER['PHP_SELF']; ?>"> <input type='hidden' name='screenW' value='screenW'/> <input type='hidden' name='screenH' value='screenH'/> <input type='hidden' name='check' value='check'/> </form> <SCRIPT language="javascript"> var screenW = 640, screenH = 480; var Check = "check"; if (parseInt(navigator.appVersion)>3) { screenW = screen.width; screenH = screen.height; } else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)==3 && navigator.javaEnabled() ) { var jToolkit = java.awt.Toolkit.getDefaultToolkit(); var jScreenSize = jToolkit.getScreenSize(); screenW = jScreenSize.width; screenH = jScreenSize.height; } window.document.detect.screenW.value=screenW; window.document.detect.screenH.value=screenH; window.document.detect.check.value=Check; window.document.forms['detect'].submit(); </SCRIPT> <?php } $tijd = time(); if($teller ==""){ $result = mysql_query("SELECT * FROM opdrachten WHERE starttijd < '$tijd' AND eindtijd > '$tijd' AND type = 'foto'") or exit(mysql_error()); while ($row = mysql_fetch_array($result)) { $fotoresultaat[] = $row['bestand']; $leeg = "iets"; $starttijd = $row['starttijd']; $eindtijd = $row['eindtijd']; $cycle = "nee"; $seconde ="10"; $teller=0; } } if($cycle=="nee"){ $aantal = count($fotoresultaat); if($tijd<$eindtijd){ if($teller < $aantal){ $foto = $fotoresultaat[$teller]; $teller++; $arrayfoto = implode('-,-,-,',$fotoresultaat); print "<meta http-equiv=\"refresh\" content=\"$seconde;URL=fotoshow.php?teller=$teller&&eindtijd=$eindtijd&&cycle=$cycle&&seconde=$seconde&&arrayfoto=$arrayfoto&&screenW=$screenW&&screenH=$screenH\" />"; }else{ $foto = $fotoresultaat[0]; $teller=1; $arrayfoto = implode('-,-,-,',$fotoresultaat); print "<meta http-equiv=\"refresh\" content=\"$seconde;URL=fotoshow.php?teller=$teller&&eindtijd=$eindtijd&&cycle=$cycle&&seconde=$seconde&&arrayfoto=$arrayfoto&&screenW=$screenW&&screenH=$screenH\" />"; } }else{ print "<meta http-equiv=\"refresh\" content=\"0;URL=../index.php\" />"; } } elseif($cycle == "ja"){ } else{ print "<meta http-equiv=\"refresh\" content=\"0;URL=../index.php\" />"; } ?> <title>Image</title> <?php ?> <style type="text/css"> html { overflow-x: hidden; overflow-y: auto; background-color : orange; } img{ margin-left: -8px; margin-top: -8px; align : center; } </style> </head> <body> </body> </html> <?php if($cycle !=""){ print"<img src=\"$foto\" width=\"$screenW\" heigth=\"$screenH\" valign=\"middle\">"; } ?> </body> </html>
  14. My boss just told me another solution. Passing array's via a session. Any one familiar with this?
  15. Thanks muddy. But is i implode it on the first page, does that mean i have to explode it on the page after? <?php //includes include '../databaseconnectie/DBconnection2.php'; // connectie toevoegen via include // kijken of variabele is gezet via post of get, anders leeg if(isset($_POST['fotoresultaat'])){ $fotoresultaat[] = $_POST['fotoresultaat']; print_r($fotoresultaat); }elseif(isset($_GET['fotoresultaat'])){ $fotoresultaat[] = $_GET['fotoresultaat']; print "in de get<br>"; }else{ $fotoresultaat = array(); print "inde else<br>"; } if(isset($_POST['status'])){ $status = $_POST['status']; }elseif(isset($_GET['status'])){ $status = $_GET['status']; }else{ $status = ""; } if(isset($_POST['startmaand'])){ $startmaand = $_POST['startmaand']; }else{ $startmaand = ""; }if(isset($_POST['startdag'])){ $startdag = $_POST['startdag']; }else{ $startdag = ""; }if(isset($_POST['startuur'])){ $startuur = $_POST['startuur']; }else{ $startuur = ""; }if(isset($_POST['startjaar'])){ $startjaar = $_POST['startjaar']; }else{ $startjaar = ""; }if(isset($_POST['startminuut'])){ $startminuut = $_POST['startminuut']; }else{ $startminuut = ""; } if(isset($_POST['eindmaand'])){ $eindmaand = $_POST['eindmaand']; }else{ $eindmaand = ""; } if(isset($_POST['einddag'])){ $einddag = $_POST['einddag']; }else{ $einddag = ""; } if(isset($_POST['eindjaar'])){ $eindjaar = $_POST['eindjaar']; }else{ $eindjaar = ""; } if(isset($_POST['einduur'])){ $einduur = $_POST['einduur']; }else{ $einduur = ""; } if(isset($_POST['eindminuut'])){ $eindminuut = $_POST['eindminuut']; }else{ $eindminuut = ""; } if(isset($_POST['bestandtype'])){ $bestandtype = $_POST['bestandtype']; }else{ $bestandtype = ""; } ?> <html> <head> <link rel="stylesheet" href="../opmaak/opmaak.css" type="text/css"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>De Nassau Infosys FOTO Opdracht Invoeren</title> <link rel="stylesheet" href="opmaak.css" type="text/css"> </head> <body> <h1> <img src="http://denassau.nl/templates/nassau-home/images/denassau-logo.jpg" border="0" width="60" height="35"> De Nassau Infosys FOTO Opdracht Invoeren <img src="http://denassau.nl/templates/nassau-home/images/denassau-logo.jpg" border="0" width="60" height="35"> </h1> <?php if($status == ""){ ?> <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" ENCTYPE="multipart/form-data"> <table> <tr> <td> <?php echo "<b>Voer drie foto's in hieronder:</b>"; ?> </td> </tr> <tr> <td><b>Foto1: </b></td> <td> <input name="uploadedfile1" type="file"> </td> </tr> <tr> <td><b>Foto2: </b></td> <td> <input name="uploadedfile2" type="file"> </td> </tr> <tr> <td><b>Foto3: </b></td> <td> <input name="uploadedfile3" type="file"> </td> </tr> <tr> <td> <input type="submit" value="Opslaan en Verzenden"> </td> </tr> <input type="hidden" name="status" value="controle"> </form> </table> </form> <?php } if($status == "controle"){ ?> <h2> Uw foto's zijn toegevoegd!</h2> <br> <h2> Wilt u nog meer foto's toevoegen, klik dan op meer foto's toevoegen <h2> <br> <h2> Heeft u al de foto's geupload die u wou, kies dan voor opslaan en verzenden </h2> <br> <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" ENCTYPE="multipart/form-data"> <input type="submit" value="Meer foto's toevoegen"> <!--Add 3 more pictures--> <input type="hidden" name="fotoresultaat[]" value="<?php print $fotoresultaat ;?>"> <br> <input type="hidden" name="status" value=""> </form> <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" ENCTYPE="multipart/form-data"> <input type="submit" value="Opslaan en Verzenden"> <!--Safe and send--> <input type="hidden" name="fotoresultaat[]" value="<?php print $fotoresultaat ;?>"> <br> <input type="hidden" name="status" value="opslaan"> </form> <?php $bestandnaam1 = $_FILES['uploadedfile1']['name']; $bestandnaam2 = $_FILES['uploadedfile2']['name']; $bestandnaam3 = $_FILES['uploadedfile3']['name']; $fotoresultaat[]=$bestandnaam1; $fotoresultaat[]=$bestandnaam2; $fotoresultaat[]=$bestandnaam3; $fotoresultaat = implode(', ', $fotoresultaat); echo $fotoresultaat; } if($status == "opslaan"){ $huidigjaar = date("Y"); $nieuwjaar = $huidigjaar + 1 ; $nieuwjaar2 = $huidigjaar + 2 ; var_dump(implode('hello', array())); ?> <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" ENCTYPE="multipart/form-data"> <table> <tr> <br> <td>Start tijd:</td> <td> Uur: <select name="startuur"> <?php for ($i=0; $i<=23; $i++) { echo "<option value='$i'>$i</option>"; } ?> </select> Minuten: <select name="startminuut"> <?php for ($i=0; $i<=59; $i++) { echo "<option value='$i'>$i</option>"; } ?> </select> </td> </tr> <tr> <td>Eind tijd:</td> <td> Uur: <select name="einduur"> <?php for ($i=0; $i<=23; $i++) { echo "<option value='$i'>$i</option>"; } ?> </select> Minuten: <select name="eindminuut"> <?php for ($i=0; $i<=59; $i++) { echo "<option value='$i'>$i</option>"; } ?> </select> </td> </tr> <tr> <td> <?php echo "<b>Deze tijden zijn voor de volgende dagen:</b>"; ?> </td> </tr> <tr> <tr> <td>Start datum:</td> <td> Maand: <select name="startmaand" > <option value="1">Januari</option> <option value="2">Februari</option> <option value="3">Maart</option> <option value="4">April</option> <option value="5">Mei</option> <option value="6">Juni</option> <option value="7">Juli</option> <option value="8">Augustus</option> <option value="9">September</option> <option value="10">Oktober</option> <option value="11">November</option> <option value="12">December</option> </select> Dag: <select name="startdag"> <?php for ($i=1; $i<=31; $i++) { echo "<option value='$i'>$i</option>"; } ?> </select> Jaar: <select name="startjaar"> <?php echo "<option value='$huidigjaar'>$huidigjaar</option>"; echo "<option value='$nieuwjaar'>$nieuwjaar</option>"; echo "<option value='$nieuwjaar2'>$nieuwjaar2</option>"; ?> </select> </td> </tr> <td>Eind datum:</td> <td> Maand: <select name="eindmaand"> <option value="1">Januari</option> <option value="2">Februari</option> <option value="3">Maart</option> <option value="4">April</option> <option value="5">Mei</option> <option value="6">Juni</option> <option value="7">Juli</option> <option value="8">Augustus</option> <option value="9">September</option> <option value="10">Oktober</option> <option value="11">November</option> <option value="12">December</option> </select> Dag: <select name="einddag"> <?php for ($i=1; $i<=31; $i++) { echo "<option value='$i'>$i</option>"; } ?> </select> Jaar: <select name="eindjaar"> <?php { echo "<option value='$huidigjaar'>$huidigjaar</option>"; echo "<option value='$nieuwjaar'>$nieuwjaar</option>"; echo "<option value='$nieuwjaar2'>$nieuwjaar2</option>"; } ?> </select> </td> </tr> <td> <input type="submit" value="Opslaan en Verzenden"> </td> <input type="hidden" name="fotoresultaat[]" value="<?php print $fotoresultaat ;?>"> <input type="hidden" name="status" value="done"> </form> </table> <?php $comma_separated = implode(",", $fotoresultaat); echo $comma_separated; } if($status == "done"){ ?> <h2> Uw foto's worden opgeslagen </h2> <?php echo "Uw foto's betreffen :<br>"; $comma_separated = implode(",", $fotoresultaat); echo $comma_separated; } ?>
  16. And now it is also giving me this error Notice: Array to string conversion in C:\Program Files\EasyPHP-5.3.8.1\www\Infosysv3\INVOER\fotoinvoerpagina2.php on line 321 Array Again how do I have to post the imploded strings to the next page?
  17. Thanks christian, i just visited the page but it still it not quite clear to me. Could you adjust a small piece of my code so I can see the difference. That would be great! Thanks in advance David
  18. Hi there mates, I've got a question from a friend of mine. And I could not solve it and I am ashamed of myself haha . The code is not yet complete, but what it has to do, is post the array, whick contains the names of the files uploaded ( pictures in this case ) The first post works, but thats it, it doesnt show the array on the last past it only shows "array". Please help me fix problem, I translated a bit of the code from dutch to english, so it's a bit more clear Thanks in advance David fotoinvoerpagina2.php
  19. Hello fellow programmers! As you guys know I am making a program that plays video's and pictures without human input ( via a database with file directory and time ) But I have a problem, does anyone of you know how I play a picture on fullscreen, automatic. Via a database filled with type = "foto" and file = "../files/fotos/file_name.jpg" Since it works this way with video's, I upload them extrern via another script. It will not work with poctures, since they get stuck in the html. Anyone knows a extrern program of script wich makes this possible to play. So recieve image folder place from database, and open the picture from that folder and let it play in fullscreen. Greetings, from a cold country called The Netherlands !
  20. No, the plan is. A movie, or information, or powerpoint starts playing at the time i define and ends at the time i define. For example: 22-9-2012 11:30 25-9-2012 12:30 Means, that everyday, it runs from 11:30 untill 12:30. If its done it returns to the main screen, or starts a new thing, depends what is told to the system. I don't have to code here, since Im not at my company now, I will post it tomorrow @ 8 in the morning, dutch time. Thanks in advance
  21. Same here, felt kind of strange. Now I know i need to have 10 posts So i will patiently wait, before I will show you guys my picture
  22. Dear freaks . I need to make a program for my old primary school, just to help them out. I thought it was going to be quite simple but I have some major problems. The idea is this: Fill in a start time and start date(year,month,day hours,minutes) FIll in a end time and end date Safe both into a database, and pick them up. Let the movie/powerpoint/school information play without other human imput. The most important thing is just the information, wich I have ready in a file. How can I do this? Maybe mktime() is an option? Let me know and maybe show me some pieces of code you guys think is perfect! Greetings from the cold, little country called Holland! Dave
  23. How am I supposed to convert it and how do I play it in my code then? Let me know !
  24. Dear PHP freaks, At this moment I am busy for my company to make a system that will run without human input. You define a powerpoint show(.pps) and run it on fullscreen, that is on a big 32" lcd screen. The problem is, I have my video working, but it just won't run in fullscreen automatically, whatever I try to do. I am using IE 8. I got a .ppt working, but it just won't run a .pps This is my code; <html> <head> <title>PPT with PHP</title> </head> <body> <?php //*** Font Color ***// $wdColorLightGreen = "&HCCFFCC"; $wdColorBlue = "&HFF0000"; $ppApp = new COM("PowerPoint.Application"); $strPath = realpath(basename(getenv($_SERVER["SCRIPT_NAME"]))); // C:/AppServ/www/myphp $ppApp->Visible = True; $ppDoc = "dave2.ppt"; $ppName = "MyPP/MyPPt.ppt"; $ppPres = $ppApp->Presentations->Open(realpath($ppDoc)); echo"Je powerpoint wordt geopend en afgespeeld"; echo"Een ogenblik geduld"; ?> </body> </html> But i want this to run a .pps. Powerpoint Slide Show. When i change all the .ppt to .pps, it certainly does not work. If you guys could help me, it would be great. Greetings from Holland. Dave
×
×
  • 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.