3v4l.org

run code in 300+ PHP versions simultaneously
<?PHP //Connect to DB include ("db_connect.php"); $con; if (!$con){ die('Hata: ' . mysql_error()); } error_reporting(0); session_start(); if (isset($_SESSION['regid'])){ $registerId = $_SESSION['regid'];; }else{ //header("location:index.php"); //$newPage = "index.php"; } // echo "regId: " . $registerId; if (isset($_POST['submit'])){ $join = $_POST['join']; $institution = $_POST['institution']; $program = $_POST['program']; $country = $_POST['country']; $city = $_POST['city']; $date = date("Y-m-d"); var_dump($_POST); if ($join=='noJoin'){ $newPage = "saving.php"; echo "you're free!"; }else if (($institution=='')||($program=='')||($country=='')||($city=='')){//not enough info $error = "Lütfen eksik veya hatalı bilgi olmadığından emin olunuz."; } else { $query = "INSERT into incnet.profilesSummerCampsTemp VALUES ('NULL', '$registerId', '$institution', '$program', '$country', '$city', '$date')"; //echo $query . "<br>"; mysql_query($query); $newPage = "saving.php"; } }?><!doctype html><html> <head> <link rel="shortcut icon" href="../incnet/favicon.ico" > <meta charset="utf-8"> <link rel="stylesheet" href="style.css" type="text/css" media="screen" title="no title" charset="utf-8"> <?PHP if ($newPage!=''){ echo "<meta http-equiv='refresh' content='0; url=saving.php'>"; } ?> <style> .p1 { display:inline-block; } </style> </head> <body OnLoad="document.summerCamps.institution.focus();"> <div class='container'> <div class='titleDiv'> 6. Yaz Programı ve Staj Bilgileri </div><hr> <form name="summerCamps" method='POST' autocomplete='off'> <input type='hidden' name='camp_count' id='campCount' value='1'> <div style='color: #c1272d; font-size:12pt'><?PHP echo $error; ?></div> <input type="checkbox" name="join" value="noJoin" onclick="showHide()">Yaz programına katılmadım.<br> <div id='camps'> <?php for ($camp_count = (isset($_POST["camp_count"]))?$_POST["camp_count"]:1, $loop_count=0; $camp_count>$loop_count; $loop_count++) { $val1 = $institution[$loop_count]; $val2 = $program[$loop_count]; $val3 = $country[$loop_count]; $val4 = $city[$loop_count]; echo " <table class='p1'> <tr> <td>Üniversite/Kurum</td> <td><input type='text' name='institution[]' maxlength='150' onkeypress='return isGoodKey(event)' value='" . $val1 . /*echo $institution;*/ "'></td> </tr><tr> <td>Program</td> <td><input type='text' name='program[]' maxlength='150' onkeypress='return isGoodKey(event)' value='" . $val2 . /* echo $program; */"'></td> </tr><tr> <td>Ülke</td> <td><input type='text' name='country[]' maxlength='40' onkeypress='return isGoodKey(event)' value='" . $val3 . /* echo $country; */"'></td> </tr><tr> <td>Şehir</td> <td><input type='text' name='city[]' maxlength='100' onkeypress='return isGoodKey(event)' value='" . $val4 . /* echo $city; */"'></td> </tr> </table>"; } ?> </div> <input type='submit' name='submit' value='Devam' style='width:120px; height: 40px; font-size:18pt;'> <button type='button' id='addCamp' style='width:165px; height: 40px; font-size:12pt; position:relative; bottom:2px;'>Add Another Camp</button> <br>*Lütfen tüm alanları doldurunuz. </form><br><br> </div><div class="copyright">© INÇNET</div> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script> <script> $(document).ready(function(){ $("#addCamp").click(function(){ campCount = $("#campCount").val(); campCount++; $("#campCount").val(campCount); newCamp = "<table class='p1'><tr><td>Üniversite/Kurum</td><td><input type='text' name='institution' maxlength='150' onkeypress='return isGoodKey(event)'></td></tr><tr><td>Program</td><td><input type='text' name='program' maxlength='150' onkeypress='return isGoodKey(event)'></td></tr><tr><td>Ülke</td><td><input type='text' name='country' maxlength='40' onkeypress='return isGoodKey(event)'></td></tr><tr><td>Şehir</td><td><input type='text' name='city' maxlength='100' onkeypress='return isGoodKey(event)'></td></tr></table>"; $('#camps').append(newCamp); }); }); function showHide(){ if ($(".p1").is(":hidden")==true){ $(".p1").css("display", "inline-block"); document.summerCamps.institution.focus(); } else { $(".p1").hide(); } } function isGoodKey(evt){ var charCode = (evt.which) ? evt.which : event.keyCode var charCode = evt.which || evt.keyCode; var charTyped = String.fromCharCode(charCode); var myChars = new Array("A","B","C","Ç","D","E","F","G","Ğ","H","I","İ","J","K","L","M","N","O","Ö","P","R","S","Ş","T","U","Ü","V","Y","Z","1","2","3","4","4","5","6","7","8","9","0",",",":",".","/","a","b","c","ç","d","e","f","g","ğ","h","ı","i","j","k","l","m","n","o","ö","p","r","s","ş","t","u","ü","v","y","z","Q","q","W","w","x","X"," ","@"); if((myChars.indexOf(charTyped) != -1)||charCode==8){ return true; }else{ alert("Bu alana kullandığınız karakterlerle giriş yapılamaz!"); return false; } } </script> </body></html><?php
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 36
Branch analysis from position: 36
2 jumps found. (Code = 44) Position 1 = 38, Position 2 = 18
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 38, Position 2 = 18
Branch analysis from position: 38
Branch analysis from position: 18
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 36
Branch analysis from position: 36
Branch analysis from position: 4
filename:       /in/GEMKa
function name:  (null)
number of ops:  40
compiled vars:  !0 = $newPage, !1 = $error, !2 = $camp_count, !3 = $loop_count, !4 = $val1, !5 = $institution, !6 = $val2, !7 = $program, !8 = $val3, !9 = $country, !10 = $val4, !11 = $city
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3C%21doctype+html%3E%3Chtml%3E%09%3Chead%3E%09%09%3Clink+rel%3D%22shortcut+icon%22+href%3D%22..%2Fincnet%2Ffavicon.ico%22+%3E%09%09%3Cmeta+charset%3D%22utf-8%22%3E%09%09%3Clink+rel%3D%22stylesheet%22+href%3D%22style.css%22+type%3D%22text%2Fcss%22+media%3D%22screen%22+title%3D%22no+title%22+charset%3D%22utf-8%22%3E%09%09'
          1        IS_NOT_EQUAL                                             !0, ''
          2      > JMPZ                                                     ~12, ->4
          3    >   ECHO                                                     '%3Cmeta+http-equiv%3D%27refresh%27+content%3D%270%3B+url%3Dsaving.php%27%3E'
          4    >   ECHO                                                     '%09%09%3Cstyle%3E%09%09.p1%09%09%7B%09%09%09display%3Ainline-block%3B%09%09%7D%09%09%3C%2Fstyle%3E%09%3C%2Fhead%3E%09%09%3Cbody+OnLoad%3D%22document.summerCamps.institution.focus%28%29%3B%22%3E%09%09%3Cdiv+class%3D%27container%27%3E%09%09%09%3Cdiv+class%3D%27titleDiv%27%3E%09%09%09%096.+Yaz+Program%C4%B1+ve+Staj+Bilgileri%09%09%09%3C%2Fdiv%3E%3Chr%3E%09%09%09%3Cform+name%3D%22summerCamps%22+method%3D%27POST%27+autocomplete%3D%27off%27%3E%09%09%09%09%3Cinput+type%3D%27hidden%27+name%3D%27camp_count%27+id%3D%27campCount%27+value%3D%271%27%3E%09%09%09%09%3Cdiv+style%3D%27color%3A+%23c1272d%3B+font-size%3A12pt%27%3E'
          5        ECHO                                                     !1
          6        ECHO                                                     '%3C%2Fdiv%3E%09%09%09%09%3Cinput+type%3D%22checkbox%22+name%3D%22join%22+value%3D%22noJoin%22+onclick%3D%22showHide%28%29%22%3EYaz+program%C4%B1na+kat%C4%B1lmad%C4%B1m.%3Cbr%3E%09%09%09%09%3Cdiv+id%3D%27camps%27%3E%09%09%09%09'
          7        FETCH_IS                                         ~13     '_POST'
          8        ISSET_ISEMPTY_DIM_OBJ                         0          ~13, 'camp_count'
          9      > JMPZ                                                     ~14, ->14
         10    >   FETCH_R                      global              ~15     '_POST'
         11        FETCH_DIM_R                                      ~16     ~15, 'camp_count'
         12        QM_ASSIGN                                        ~17     ~16
         13      > JMP                                                      ->15
         14    >   QM_ASSIGN                                        ~17     1
         15    >   ASSIGN                                                   !2, ~17
         16        ASSIGN                                                   !3, 0
         17      > JMP                                                      ->36
         18    >   FETCH_DIM_R                                      ~20     !5, !3
         19        ASSIGN                                                   !4, ~20
         20        FETCH_DIM_R                                      ~22     !7, !3
         21        ASSIGN                                                   !6, ~22
         22        FETCH_DIM_R                                      ~24     !9, !3
         23        ASSIGN                                                   !8, ~24
         24        FETCH_DIM_R                                      ~26     !11, !3
         25        ASSIGN                                                   !10, ~26
         26        CONCAT                                           ~28     '%09%09%09%09%3Ctable+class%3D%27p1%27%3E%09%09%09%09%09%3Ctr%3E%09%09%09%09%09%09%3Ctd%3E%C3%9Cniversite%2FKurum%3C%2Ftd%3E%09%09%09%09%09%09%3Ctd%3E%3Cinput+type%3D%27text%27+name%3D%27institution%5B%5D%27+maxlength%3D%27150%27+onkeypress%3D%27return+isGoodKey%28event%29%27+value%3D%27', !4
         27        CONCAT                                           ~29     ~28, '%27%3E%3C%2Ftd%3E%09%09%09%09%09%3C%2Ftr%3E%3Ctr%3E%09%09%09%09%09%09%3Ctd%3EProgram%3C%2Ftd%3E%09%09%09%09%09%09%3Ctd%3E%3Cinput+type%3D%27text%27+name%3D%27program%5B%5D%27+maxlength%3D%27150%27+onkeypress%3D%27return+isGoodKey%28event%29%27+value%3D%27'
         28        CONCAT                                           ~30     ~29, !6
         29        CONCAT                                           ~31     ~30, '%27%3E%3C%2Ftd%3E%09%09%09%09%09%3C%2Ftr%3E%3Ctr%3E%09%09%09%09%09%09%3Ctd%3E%C3%9Clke%3C%2Ftd%3E%09%09%09%09%09%09%3Ctd%3E%3Cinput+type%3D%27text%27+name%3D%27country%5B%5D%27+maxlength%3D%2740%27+onkeypress%3D%27return+isGoodKey%28event%29%27+value%3D%27'
         30        CONCAT                                           ~32     ~31, !8
         31        CONCAT                                           ~33     ~32, '%27%3E%3C%2Ftd%3E%09%09%09%09%09%3C%2Ftr%3E%3Ctr%3E%09%09%09%09%09%09%3Ctd%3E%C5%9Eehir%3C%2Ftd%3E%09%09%09%09%09%09%3Ctd%3E%3Cinput+type%3D%27text%27+name%3D%27city%5B%5D%27+maxlength%3D%27100%27+onkeypress%3D%27return+isGoodKey%28event%29%27+value%3D%27'
         32        CONCAT                                           ~34     ~33, !10
         33        CONCAT                                           ~35     ~34, '%27%3E%3C%2Ftd%3E%09%09%09%09%09%3C%2Ftr%3E%09%09%09%09%3C%2Ftable%3E'
         34        ECHO                                                     ~35
         35        PRE_INC                                                  !3
         36    >   IS_SMALLER                                               !3, !2
         37      > JMPNZ                                                    ~37, ->18
         38    >   ECHO                                                     '%09%09%09%09%3C%2Fdiv%3E%09%09%09%09%3Cinput+type%3D%27submit%27+name%3D%27submit%27+value%3D%27Devam%27+style%3D%27width%3A120px%3B+height%3A+40px%3B+font-size%3A18pt%3B%27%3E%09%09%09%09%3Cbutton+type%3D%27button%27+id%3D%27addCamp%27+style%3D%27width%3A165px%3B+height%3A+40px%3B+font-size%3A12pt%3B+position%3Arelative%3B+bottom%3A2px%3B%27%3EAdd+Another+Camp%3C%2Fbutton%3E%09%09%09%09%3Cbr%3E%2AL%C3%BCtfen+t%C3%BCm+alanlar%C4%B1+doldurunuz.%09%09%09%3C%2Fform%3E%3Cbr%3E%3Cbr%3E%09%09%3C%2Fdiv%3E%3Cdiv+class%3D%22copyright%22%3E%C2%A9+IN%C3%87NET%3C%2Fdiv%3E%09%09%3Cscript+src%3D%22%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.11.1%2Fjquery.min.js%22+type%3D%22text%2Fjavascript%22%3E%3C%2Fscript%3E%09%09%3Cscript%3E%09%09%09%24%28document%29.ready%28function%28%29%7B%09%09%09%09%24%28%22%23addCamp%22%29.click%28function%28%29%7B%09%09%09%09%09campCount+%3D+%24%28%22%23campCount%22%29.val%28%29%3B%09%09%09%09%09campCount%2B%2B%3B%09%09%09%09%09%24%28%22%23campCount%22%29.val%28campCount%29%3B%09%09%09%09%09newCamp+%3D+%22%3Ctable+class%3D%27p1%27%3E%3Ctr%3E%3Ctd%3E%C3%9Cniversite%2FKurum%3C%2Ftd%3E%3Ctd%3E%3Cinput+type%3D%27text%27+name%3D%27institution%27+maxlength%3D%27150%27+onkeypress%3D%27return+isGoodKey%28event%29%27%3E%3C%2Ftd%3E%3C%2Ftr%3E%3Ctr%3E%3Ctd%3EProgram%3C%2Ftd%3E%3Ctd%3E%3Cinput+type%3D%27text%27+name%3D%27program%27+maxlength%3D%27150%27+onkeypress%3D%27return+isGoodKey%28event%29%27%3E%3C%2Ftd%3E%3C%2Ftr%3E%3Ctr%3E%3Ctd%3E%C3%9Clke%3C%2Ftd%3E%3Ctd%3E%3Cinput+type%3D%27text%27+name%3D%27country%27+maxlength%3D%2740%27+onkeypress%3D%27return+isGoodKey%28event%29%27%3E%3C%2Ftd%3E%3C%2Ftr%3E%3Ctr%3E%3Ctd%3E%C5%9Eehir%3C%2Ftd%3E%3Ctd%3E%3Cinput+type%3D%27text%27+name%3D%27city%27+maxlength%3D%27100%27+onkeypress%3D%27return+isGoodKey%28event%29%27%3E%3C%2Ftd%3E%3C%2Ftr%3E%3C%2Ftable%3E%22%3B%09%09%09%09%09%24%28%27%23camps%27%29.append%28newCamp%29%3B%09%09%09%09%7D%29%3B%09%09%09%7D%29%3B%09%09%09%09%09%09function+showHide%28%29%7B%09%09%09%09if+%28%24%28%22.p1%22%29.is%28%22%3Ahidden%22%29%3D%3Dtrue%29%7B%09%09%09%09%09%24%28%22.p1%22%29.css%28%22display%22%2C+%22inline-block%22%29%3B%09%09%09%09%09document.summerCamps.institution.focus%28%29%3B%09%09%09%09%7D+else+%7B%09%09%09%09%09%24%28%22.p1%22%29.hide%28%29%3B%09%09%09%09%7D%09%09%09%7D%09%09%09%09%09%09function+isGoodKey%28evt%29%7B%09%09++++var+charCode+%3D+%28evt.which%29+%3F+evt.which+%3A+event.keyCode%09%09%09%09var+charCode+%3D+evt.which+%7C%7C+evt.keyCode%3B%09%09%09%09var+charTyped+%3D+String.fromCharCode%28charCode%29%3B%09%09%09%09var+myChars+%3D+new+Array%28%22A%22%2C%22B%22%2C%22C%22%2C%22%C3%87%22%2C%22D%22%2C%22E%22%2C%22F%22%2C%22G%22%2C%22%C4%9E%22%2C%22H%22%2C%22I%22%2C%22%C4%B0%22%2C%22J%22%2C%22K%22%2C%22L%22%2C%22M%22%2C%22N%22%2C%22O%22%2C%22%C3%96%22%2C%22P%22%2C%22R%22%2C%22S%22%2C%22%C5%9E%22%2C%22T%22%2C%22U%22%2C%22%C3%9C%22%2C%22V%22%2C%22Y%22%2C%22Z%22%2C%221%22%2C%222%22%2C%223%22%2C%224%22%2C%224%22%2C%225%22%2C%226%22%2C%227%22%2C%228%22%2C%229%22%2C%220%22%2C%22%2C%22%2C%22%3A%22%2C%22.%22%2C%22%2F%22%2C%22a%22%2C%22b%22%2C%22c%22%2C%22%C3%A7%22%2C%22d%22%2C%22e%22%2C%22f%22%2C%22g%22%2C%22%C4%9F%22%2C%22h%22%2C%22%C4%B1%22%2C%22i%22%2C%22j%22%2C%22k%22%2C%22l%22%2C%22m%22%2C%22n%22%2C%22o%22%2C%22%C3%B6%22%2C%22p%22%2C%22r%22%2C%22s%22%2C%22%C5%9F%22%2C%22t%22%2C%22u%22%2C%22%C3%BC%22%2C%22v%22%2C%22y%22%2C%22z%22%2C%22Q%22%2C%22q%22%2C%22W%22%2C%22w%22%2C%22x%22%2C%22X%22%2C%22+%22%2C%22%40%22%29%3B%09%09%09%09%09if%28%28myChars.indexOf%28charTyped%29+%21%3D+-1%29%7C%7CcharCode%3D%3D8%29%7B%09%09%09%09%09return+true%3B%09%09%09%09%7Delse%7B%09%09%09%09%09alert%28%22Bu+alana+kulland%C4%B1%C4%9F%C4%B1n%C4%B1z+karakterlerle+giri%C5%9F+yap%C4%B1lamaz%21%22%29%3B%09%09%09%09%09return+false%3B%09%09%09%09%7D%09%09%09%09%09%09%09%7D%09%09%3C%2Fscript%3E%09%3C%2Fbody%3E%3C%2Fhtml%3E'
         39      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.47 ms | 1407 KiB | 13 Q