Jump to content

amalosoul

Members
  • Posts

    95
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

amalosoul's Achievements

Member

Member (2/5)

0

Reputation

  1. This is just for testing, I would've included it if I could. At first I didn't even understand the problem. Now I found it but it is simply illogical.
  2. Unfortunately, I get the same result. Thank you for your patience.
  3. I have two pages p1.php and p2.php and each of them sets a session variable, one called: 'olive' and the other one: 'bananas'. p1.php (sets 'olive') calls through cURL p2.php (sets 'bananas'). How come each time I change bananas I have to reload the page twice in order to show $_SESSION['bananas'] correctly? (it has nothing to do with cache since I used multiple browsers and the same thing happens) p2.php session_start(); $_SESSION['bananas'] = 2; p1.php function get_web_page( $url, $var ) { $options = array( CURLOPT_POST => 1, //CURLOPT_POSTFIELDS => POSTVARS, CURLOPT_FOLLOWLOCATION => 1, CURLOPT_HEADER => 0, // RETURN HTTP HEADERS CURLOPT_COOKIE => "PHPSESSID=".$var, CURLOPT_TIMEOUT => 3, //timeout on response CURLOPT_RETURNTRANSFER => true, // return web page CURLOPT_ENCODING => "", // handle all encodings CURLOPT_USERAGENT => "spider", // who am i CURLOPT_AUTOREFERER => true, // set referer on redirect CURLOPT_CONNECTTIMEOUT => 3, // timeout on connect CURLOPT_MAXREDIRS => 10, // stop after 10 redirects ); $ch = curl_init( $url ); curl_setopt_array( $ch, $options ); $content = curl_exec( $ch ); $err = curl_errno( $ch ); $errmsg = curl_error( $ch ); $header = curl_getinfo( $ch ); curl_close( $ch ); $header['errno'] = $err; $header['errmsg'] = $errmsg; $header['content'] = $content; return $header; } session_start(); $_SESSION['olive'] = 5; session_write_close(); $vect = (get_web_page("http://localhost/testarea/p2.php",session_id())); echo $_SESSION['olive']." ".$_SESSION['bananas']; Thank you in anticipation!
  4. Ok, this is the description : I have multiple php pages (not functions) which take an username and password as input, through GET or POST (all pages are independent from each other) . Once a page gets its input it adds some info into $_SESSION. I want to be able to create a top level page that can send the username and password to all of these pages (which in turn will work independently to add info to $_SESSION). get_file_contents or cURL seemed perfect but they don't work
  5. So, taking into consideration that both pages are on the same server how can I set session variables from one page in order to be seen in the orther, as well. (the reason why I can't use include is because these pages are actually part of a large log in system which needs to be integrated into one log in system)
  6. I can't include that file it has to be something outside my page (I tried with session_id() and it doesn't work either). Thank you for your pacience!
  7. The name of the key is of no particular interest (neither the value), the strange thing is that I don't understand why there is no value there. I tried even with cURL and still nothing session_start(); define('POSTURL', FIRST_PAGE); define('POSTVARS', MY_VARIABLES); $ch = curl_init(POSTURL); curl_setopt($ch, CURLOPT_POST ,1); curl_setopt($ch, CURLOPT_POSTFIELDS ,POSTVARS); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_HEADER ,1); // RETURN HTTP HEADERS curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); //RETURN THE CONTENTS OF THE CALL $Rec_Data = curl_exec($ch); curl_close($ch); echo $_SESSION['id']."!*";
  8. I have two really simple pages: 1. FIRST_PAGE session_start(); $_SESSION['id'] = 23; 2.SECOND_PAGE session_start(); file_get_contents(FIRST_PAGE); echo $_SESSION['id']; How come there is nothing stored in $_SESSION['id'] (and how can I set a session variable from another page)? Thank you very much for your patience!
  9. I have this really simple code: [pre] <div style="position: relative; top: 50px; left: 50px;"> ad <div style="position: relative; top: 50px; left: 50px;"> bdm <div style="position: absolute; top: 50px; left: 50px;"> 123 </div> </div> </div> <div style="position: relative; top: 200px; left: 50px;"> ad <div style="position: absolute; top: 50px; left: 50px;"> bdm <div style="position: absolute; top: 50px; left: 50px;"> 123 </div> </div> </div> [/pre] In the first three divs I have: relative relative absolute, and in the last three relative absolute absolute. How come there is a slight difference in appearance between the first three divs and the last three divs (between the texts "ad" and "adm") ? Why does it calculate differently the top value between relative relative and relative absolute ? Thank you in advance!
  10. Does anyone know how I can eliminate the statusbar, url and make my window none resizable? I use this code window.open(formularul,"_blank","height=330,width=290,scrollbars=no,toolbar=no,location=no,status=no,resizable=no,screenX=200,screenY=200,left=200,top=200"); It works fine in IE, but I don't know how to make it work in Mozilla.. Thank you in anticipation!
  11. Well this is half not true ... I don't understand why IE doesn't display this: $string = "\"data: image/jpg;base64,".$array[1]."\""; and then I use this string as src for my image. Firefox displays it but IE does not... P.S. that $array[1] is my encoded blob
  12. I am trying to display a binary image without using the header() function offered by php. Does anyone know if one can display an image stored as blob (after storing it in a variabile, of course) using html ? Thank you in anticipation!
  13. Well, I thank you for your pacience...I found one of the more pressing errors.I was using a variable called "open"...in mozzila there was no problem but in explorer I think it linked it to window.open().
  14. <!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=iso-8859-1" /> <title>"be a MODEL...be a FASHION MODEL" - Inscriere</title> <meta name="description" content="agentie fotomodele" /> <meta name="keywords" content="fotomodele" /> <meta name="Generator" content="Joomla! - Copyright (C) 2005 - 2006 Open Source Matters. All rights reserved." /> <meta name="robots" content="index, follow" /> <link rel="shortcut icon" href="http://fashionmodel.ro/images/favicon.ico" /> <link rel="stylesheet" href="http://fashionmodel.ro/templates/flexi_orange/css/template_css.css" type="text/css"/><link rel="shortcut icon" href="http://fashionmodel.ro/templates/flexi_orange/images/favicon.ico" /> </head> <body> <div id="page" align="center"> <div id="wrapper" style="width: 760px;"> <!-- 10x10 spacer image --> <div class="spacer"><img src="templates/flexi_orange/images/spacer.gif" alt=" " /></div> <!-- BEGIN TOP BAR AREA --> <div id="topbar"> <div id="topcontent"> <div style="float: left; display: block;"> <!-- normally for topmenu --> <div align="right" id="topsearch"> <!-- normally for mini search --> </div> </div> </div> </div> <!-- BEGIN TOP BAR AREA --> <!-- 10x10 spacer image --> <div class="spacer"><img src="templates/flexi_orange/images/spacer.gif" alt=" " /></div> <!-- BEGIN HEADER AREA --> <div id="headerbar"> <div id="headerleft"><img src="templates/flexi_orange/images/header_curve_left.gif" alt=" " /></div> <div id="headercontent"> <div id="headerlogo" align="left"> <img src="templates/flexi_orange/images/logo.gif" height="100" alt=" " /> <img src="templates/flexi_orange/images/logo_separator.gif" alt=" " height="100" /> </div> <div id="headersitename"> <a href="index.php"> "be a MODEL...be a FASHION MODEL" </a> </div> </div> <div id="headerright"><img src="templates/flexi_orange/images/header_curve_right.gif" alt=" " /></div> </div> <!-- END TOP BAR AREA --> <!-- 10x10 spacer image --> <div class="spacer"><img src="templates/flexi_orange/images/spacer.gif" alt=" " /></div> <!-- BEGIN PATHWAY AREA --> <div id="pathwaybar"> <div id="pathwayleft"><img src="templates/flexi_orange/images/spacer.gif" alt=" " /></div> <div id="pathwaycontent"><span class="pathway"><a href="http://fashionmodel.ro/index.php" class="pathway">FashionModel</a> <img src="http://fashionmodel.ro/templates/flexi_orange/images/arrow.png" border="0" alt="arrow" /> Inscriere </span></div> <div id="pathwayright"><img src="templates/flexi_orange/images/spacer.gif" alt=" " /></div> </div> <!-- END PATHWAY AREA --> <!-- 10x10 spacer image --> <div class="spacer"><img src="templates/flexi_orange/images/spacer.gif" alt=" " /></div> <!-- BEGIN CONTENT AREA --> <div id="maincontent" align="left"> <table width="100%" border="0" cellspacing="2" cellpadding="1"> <tr> <!-- left modules --> <td valign="top" id="leftsection"><div id="leftmodules"> <div class="moduletable"> <h3> Meniu </h3> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr align="left"><td><a href="http://fashionmodel.ro/index.php?option=com_frontpage&Itemid=1" class="mainlevel" >FashionModel</a></td></tr> <tr align="left"><td><a href="http://fashionmodel.ro/index.php?option=com_content&task=blogcategory&id=13&Itemid=27" class="mainlevel" >Despre Noi</a></td></tr> <tr align="left"><td><a href="http://fashionmodel.ro/index.php?option=com_content&task=blogcategory&id=14&Itemid=28" class="mainlevel" >Caravana</a></td></tr> <tr align="left"><td><a href="http://fashionmodel.ro/index.php?option=com_content&task=blogcategory&id=15&Itemid=29" class="mainlevel" >Cursuri</a></td></tr> <tr align="left"><td><a href="http://fashionmodel.ro/index.php?option=com_content&task=blogcategory&id=17&Itemid=31" class="mainlevel" >Evenimente</a></td></tr> <tr align="left"><td><a href="http://fashionmodel.ro/index.php?option=com_content&task=blogcategory&id=21&Itemid=32" class="mainlevel" >FOTO</a></td></tr> <tr align="left"><td><a href="http://fashionmodel.ro/index.php?option=com_contact&Itemid=3" class="mainlevel" >Contact</a></td></tr> <tr align="left"><td><a href="http://fashionmodel.ro/index.php?option=com_wrapper&Itemid=34" class="mainlevel" id="active_menu">Inscriere</a></td></tr> </table> </div> <div class="moduletable"> <h3> Ultimele articole </h3> <ul class="latestnews"> <li class="latestnews"> <a href="http://fashionmodel.ro/index.php?option=com_content&task=view&id=20&Itemid=32" class="latestnews"> Fashion Model Photo Album</a> </li> <li class="latestnews"> <a href="http://fashionmodel.ro/index.php?option=com_content&task=view&id=16&Itemid=27" class="latestnews"> Despre Noi</a> </li> <li class="latestnews"> <a href="http://fashionmodel.ro/index.php?option=com_content&task=view&id=15&Itemid=28" class="latestnews"> CARAVANA “Fashion Model”</a> </li> <li class="latestnews"> <a href="http://fashionmodel.ro/index.php?option=com_content&task=view&id=14&Itemid=29" class="latestnews"> Cursuri de Modeling</a> </li> <li class="latestnews"> <a href="http://fashionmodel.ro/index.php?option=com_content&task=view&id=13&Itemid=34" class="latestnews"> Inscriere</a> </li> </ul> </div> <div class="moduletable"> <h3> Newsletter </h3> <script type="text/javascript" language="Javascript"><!-- function changeTask() { var name = document.lettermanMod.subscriber_name.value; var email; var max_length = 15; var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i if (filter.test(document.lettermanMod.email.value)) { email = document.lettermanMod.email.value; var a = true; } else { alert("Please enter a valid email address."); var a = true; return false; } try { if(document.lettermanMod.subscriber_name.length < 1) { alert("Please enter a Subscriber Name. Thanks."); return false; } } catch(e) {} return true; } // --> </script> <p>Afla cele mai noi stiri de pe FashionModel.ro !</p> <form method="post" action="index.php?option=com_letterman" name="lettermanMod"> <p> <input type="text" id="subscriber_name" style="font-size:smaller;" name="subscriber_name" class="inputbox" value="" /><br/> <span class="smallgrey"><label for="subscriber_name">Nume</label></span><br/> <input type="text" id="lm_email" name="email" style="font-size:smaller;" class="inputbox" value="" /><br/> <span class="smallgrey"><label for="lm_email">E-mail</label></span> </p> <p> <p><input name="task" type="radio" class="inputbox" id="lm_subscribe" value="subscribe" checked="checked"/> <label for="lm_subscribe">Subscribe</label><br/> <input name="task" type="radio" class="inputbox" id="lm_unsubscribe" value="unsubscribe" /> <label for="lm_unsubscribe">Unsubscribe</label> <br/> <input type="submit" class="button" value="Go!" onclick="return changeTask();" /> </p> </p> <input type="hidden" name="Itemid" value="34" /> </form> </div> </div></td><td width="1" style="border-left: solid 1px #E6E6E6;"><img src="templates/flexi_orange/images/spacer1x1.gif" alt="" /></td> <!-- main content --> <td valign="top"> <!-- check Latest News and Popular module has content or not --> <div id="headlines" align="left"> <!-- switcher to check Latest News and Popular modules not the good one, but i've tried my best to make sure it compatible with either IE or Firefox, and also with minimum size 800x600. it's different from rhuk_solarflare_ii style coz i want try to code it from scratch --> <div id="bodylatest" style="width: 97%"> <div class="moduletable"> <h3> Random Image </h3> <div align="center"> <a href="www.fashionmodel.ro" target="_self"> <img src="http://fashionmodel.ro/images/stories/pozeheader/elena horvath 1.jpg" border="0" width="100" height="46" alt="elena horvath 1.jpg" /><br /> </a> </div> </div> </div> </div> <div id="mainbody"> <script language="javascript" type="text/javascript"> function iFrameHeight() { var h = 0; if ( !document.all ) { h = document.getElementById('blockrandom').contentDocument.height; document.getElementById('blockrandom').style.height = h + 60 + 'px'; } else if( document.all ) { h = document.frames('blockrandom').document.body.scrollHeight; document.all.blockrandom.style.height = h + 20 + 'px'; } } </script> <div class="contentpane"> <div class="componentheading"> Inscriere web </div> <iframe onload="iFrameHeight()" id="blockrandom" name="iframe" src="http://www.fashionmodel.ro/newupload.php" width="100%" height="800" scrolling="auto" align="top" frameborder="0" class="wrapper"> Aceasta optiune nu va functiona corect. Browserul nu suporta "Inline Frames" </iframe> </div> </div> </td> <!-- right modules --> <td width="1" style="border-right: solid 1px #E6E6E6;"><img src="templates/flexi_orange/images/spacer1x1.gif" alt="" /></td><td valign="top" align="left" id="rightsection"><div id="rightmodules"> <div class="moduletable"> <h3> Sondaje </h3> <script language="javascript" type="text/javascript"> <!-- function submitbutton_Poll1() { var form = document.pollxtd1; var radio = form.voteid; var radioLength = radio.length; var check = 0; if ( 'z' != 'z' ) { alert('Ati votat deja in acest sondaj!'); return; } for(var i = 0; i < radioLength; i++) { if(radio[i].checked) { form.submit(); check = 1; } } if (check == 0) { alert('Nu ati ales nimic, mai incercati o data'); } } //--> </script> <form name="pollxtd1" method="post" action="http://fashionmodel.ro/index.php?option=com_poll"> <table width="95%" border="0" cellspacing="0" cellpadding="1" align="center" class="poll"> <thead> <tr> <td style="font-weight: bold;"> Cum ati aflat de site-ul FashionModel.ro ? </td> </tr> </thead> <tr> <td align="center"> <table class="pollstableborder" cellspacing="0" cellpadding="0" border="0"> <tr> <td class="sectiontableentry2" valign="top"> <input type="radio" name="voteid" id="voteid1" value="1" alt="1" /> </td> <td class="sectiontableentry2" valign="top"> <label for="voteid1"> De la un prieten </label> </td> </tr> <tr> <td class="sectiontableentry1" valign="top"> <input type="radio" name="voteid" id="voteid2" value="2" alt="2" /> </td> <td class="sectiontableentry1" valign="top"> <label for="voteid2"> Materiale promotionale </label> </td> </tr> <tr> <td class="sectiontableentry2" valign="top"> <input type="radio" name="voteid" id="voteid3" value="3" alt="3" /> </td> <td class="sectiontableentry2" valign="top"> <label for="voteid3"> De pe diverse site-uri </label> </td> </tr> <tr> <td class="sectiontableentry1" valign="top"> <input type="radio" name="voteid" id="voteid4" value="4" alt="4" /> </td> <td class="sectiontableentry1" valign="top"> <label for="voteid4"> Motor de cautare </label> </td> </tr> <tr> <td class="sectiontableentry2" valign="top"> <input type="radio" name="voteid" id="voteid5" value="5" alt="5" /> </td> <td class="sectiontableentry2" valign="top"> <label for="voteid5"> Prezentare de moda </label> </td> </tr> <tr> <td class="sectiontableentry1" valign="top"> <input type="radio" name="voteid" id="voteid6" value="6" alt="6" /> </td> <td class="sectiontableentry1" valign="top"> <label for="voteid6"> Alte surse </label> </td> </tr> </table> </td> </tr> <tr> <td> <div align="center"> <input type="button" onclick="submitbutton_Poll1();" name="task_button" class="button" value="Vot" /> <input type="button" name="option" class="button" value="Rezultate" onclick="document.location.href='http://fashionmodel.ro/index.php?option=com_poll&task=results&id=14';" /> </div> </td> </tr> </table> <input type="hidden" name="id" value="14" /> <input type="hidden" name="task" value="vote" /> <input type="hidden" name="jc257c83f1d1f4c8be98f75fab1790dc4" value="1" /> </form> </div> <div class="moduletable"> <strong>Vizitatori:</strong> 988 </div> <div class="moduletable"> Avem 2 vizitatori online </div> <div class="moduletable"> <h3> Web Design </h3> Site realizat de <script language='JavaScript' type='text/javascript'> <!-- var prefix = '&#109;a' + 'i&#108;' + '&#116;o'; var path = 'hr' + 'ef' + '='; var addy93654 = '&#97;&#117;r&#97;sm&#105;h&#97;&#105;' + '&#64;'; addy93654 = addy93654 + 'gm&#97;&#105;l' + '&#46;' + 'c&#111;m'; document.write( '<a ' + path + '\'' + prefix + ':' + addy93654 + '\'>' ); document.write( addy93654 ); document.write( '<\/a>' ); //-->\n </script><script language='JavaScript' type='text/javascript'> <!-- document.write( '<span style=\'display: none;\'>' ); //--> </script>Aceasta adresa de e-mail este protejata impotriva spamului, JavaScript trebuie activat ca a putea vizualiza pagina. <script language='JavaScript' type='text/javascript'> <!-- document.write( '</' ); document.write( 'span>' ); //--> </script> 0727518487 </div> </div></td> </tr> </table> </div> <!-- END CONTENT AREA --> <!-- 10x10 spacer image --> <div class="spacer"><img src="templates/flexi_orange/images/spacer.gif" alt=" " /></div> <!-- BEGIN FOOTER --> <div id="footerbar" align="center"> <div id="footerleft"><img src="templates/flexi_orange/images/footer_curve_left.gif" alt=" " /></div> <div id="footercontent" align="center"> <div align="center"> © 2007 "be a MODEL...be a FASHION MODEL"</div> <div align="center"> <a href="http://www.fashionmodel.ro">www.fashionmodel.ro </a> agentie fotomodele, casting, hostess, figuratie, publicitate,.</div> </div> <div id="footerright"><img src="templates/flexi_orange/images/footer_curve_right.gif" alt=" " /></div> </div> <!-- END FOOTER --> <!-- 10x10 spacer image --> <div class="spacer"><img src="templates/flexi_orange/images/spacer.gif" alt=" " /></div> </div> <br /> </div> </body> </html> <!-- 1174842590 --> This is how the source looks like...after it is rendered
  15. <?php session_start(); if ($_SESSION['nr']==null) {$_SESSION['nr']=1;} else { $_SESSION['nr']++; } $aux=0; if ($_POST[nume]&&$_POST[prenume]&&$_POST[nastere]&&$_POST[adresa]&&$_POST[inaltime]&&$_POST[dimensiuni]!=null&&$_POST[fix]!=null&&$_POST[mobil]!=null&&$_POST[email]!=null&&$_POST[greutate]!=null&&$_POST[culoare]!=null&&$_POST[semne]!=null&&$_POST[marime]!=null&&$_POST[numar]!=null&&$_POST[ocupatie]!=null&&$_POST[limbi]!=null&&$_POST[aptitudini]!=null&&$_POST[experienta]!=null&&$_POST[curs]!=null&&$_POST[album]!=null) {$aux=1; $uploaddir = '/home/fashionm/public_html/imagini_temp/'; $uploadfile = $uploaddir . basename($_FILES['userfile']['name']); $nume=basename($_FILES['userfile']['name']); if ($_FILES['userfile']['size']>10240) die("<strong>Fisierul depaseste dimensiunea de 10MB!</strong>"); if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) { { $to = 'inscrieri@fashionmodel.ro'; $subject = 'Profil nou'; $message="This is a multi-part message in MIME format.\n\n" . "--ZEND-12345\n" . "Content-Type:text/html; charset=\"iso-8859-1\"\n" . "Content-Transfer-Encoding: 7bit\n\n" . " NUME:$_POST[nume] \n <br> PRENUME:$_POST[prenume] \n <br> DATA NASTERII(ziua/luna/an):$_POST[nastere] \n <br> ADRESA:$_POST[adresa] \n <br> TELEFON -fix:$_POST[fix] \n <br> TELEFON -mobil:$_POST[mobil] \n <br> E-mail:$_POST[email] \n <br> INALTIME:$_POST[inaltime] \n <br> GREUTATE:$_POST[greutate] \n <br> DIMENSIUNI(bust/talie/sold):$_POST[dimensiuni] \n <br> Culoarea/Lungimea parului:$_POST[culoare] \n <br> Culoarea ochilor:$_POST[ochi] \n <br> Semne particulare:$_POST[semne] \n <br> Marime vestimentatie(haina/pantalon):$_POST[marime] \n <br> Nr. picior:$_POST[numar] \n <br> Ocupatie/Studii:$_POST[ocupatie] \n <br> Limbi straine:$_POST[limbi] \n <br> Aptitudini:$_POST[aptitudini] \n <br> Experienta in domeniul artistic/Agentii cu care ati mai colaborat:$_POST[experienta] \n Curs de modeling absolvit/Agentia:$_POST[curs] \n <br> POZA:-se afla in atasament (*in functie de fisierul trimis acesta poate sa nu fie jpeg) <br> "."\n\n"; $file = fopen($uploadfile,'r'); $data = fread($file,filesize($uploadfile)); fclose($file); $data = chunk_split(base64_encode($data)); $message.="--ZEND-12345\n" . "Content-Type: image/jpeg;\n" . " name=\"$nume\"\n" . //"Content-Disposition: attachment;\n" . //" filename=\"{$fileatt_name}\"\n" . "Content-Transfer-Encoding: base64\n\n" . $data . "\n\n" . "--ZEND-12345--\n"; // To send html mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: multipart/mixed; boundary=ZEND-12345' . "\r\n"; // Additional headers $headers .= 'To: inscriere@fashionmodel.ro' . "\r\n"; $headers .= 'From: inscriereweb@fashionmodel.ro' . "\r\n"; // mail it if(mail($to, $subject, $message, $headers)) echo "Informatiile dumnevoastra au fost salvate!"; unlink($uploadfile); } } else { echo "<center><strong><font color=red>O eroare a aparut la incarcarea pozei!</font></strong></center>"; $aux=0; } } if (!$aux) {?> <script> function put() {opend='<? echo $_SESSION['nr']; ?>'; numen='<? echo $_POST[nume]; ?>' prenumen='<? echo $_POST[prenume]; ?>' nasteren='<? echo $_POST[nastere]; ?>' adresan='<? echo $_POST[adresa]; ?>' fixn='<? echo $_POST[fix]; ?>' mobiln='<? echo $_POST[mobil]; ?>' emailn='<? echo $_POST[email]; ?>' inaltimen='<? echo $_POST[inaltime]; ?>' greutaten='<? echo $_POST[greutate]; ?>' dimensiunin='<? echo $_POST[dimensiuni]; ?>' culoaren='<? echo $_POST[culoare]; ?>' ochin='<? echo $_POST[ochi]; ?>' semnen='<? echo $_POST[semne]; ?>' marimen='<? echo $_POST[marime]; ?>' numarn='<? echo $_POST[numar]; ?>' ocupatien='<? echo $_POST[ocupatie]; ?>' limbin='<? echo $_POST[limbi]; ?>' aptitudinin='<? echo $_POST[aptitudini]; ?>' experientan='<? echo $_POST[experienta]; ?>' cursn='<? echo $_POST[curs]; ?>' albumn='<? echo $_POST[album]; ?>' if (opend>1){ if (numen!='') document.myform.nume.value=numen; else { document.getElementById('nume').style.background='red'; document.getElementById('nume').style.color='yellow'; } if (prenumen!='') document.myform.prenume.value=prenumen; else { document.getElementById('prenume').style.background='red'; document.getElementById('prenume').style.color='yellow'; } if (nasteren!='') document.myform.nastere.value=nasteren; else { document.getElementById('nastere').style.background='red'; document.getElementById('nastere').style.color='yellow'; } if (adresan!='') document.myform.adresa.value=adresan; else { document.getElementById('adresa').style.background='red'; document.getElementById('adresa').style.color='yellow'; } if (fixn!='') document.myform.fix.value=fixn; else { document.getElementById('fix').style.background='red'; document.getElementById('fix').style.color='yellow'; } if (mobiln!='') document.myform.mobil.value=mobiln; else { document.getElementById('mobil').style.background='red'; document.getElementById('mobil').style.color='yellow'; } if (emailn!='') document.myform.email.value=emailn; else { document.getElementById('email').style.background='red'; document.getElementById('email').style.color='yellow'; } if (inaltimen!='') document.myform.inaltime.value=inaltimen; else { document.getElementById('inaltime').style.background='red'; document.getElementById('inaltime').style.color='yellow'; } if (greutaten!='') document.myform.greutate.value=greutaten; else { document.getElementById('greutate').style.background='red'; document.getElementById('greutate').style.color='yellow'; } if (dimensiunin!='') document.myform.dimensiuni.value=dimensiunin; else { document.getElementById('dimensiuni').style.background='red'; document.getElementById('dimensiuni').style.color='yellow'; } if (culoaren!='') document.myform.culoare.value=culoaren; else { document.getElementById('culoare').style.background='red'; document.getElementById('culoare').style.color='yellow'; } if (ochin!='') document.myform.ochi.value=ochin; else { document.getElementById('ochi').style.background='red'; document.getElementById('ochi').style.color='yellow'; } if (semnen!='') document.myform.semne.value=semnen; else { document.getElementById('semne').style.background='red'; document.getElementById('semne').style.color='yellow'; } if (marimen!='') document.myform.marime.value=marimen; else { document.getElementById('marime').style.background='red'; document.getElementById('marime').style.color='yellow'; } if (numarn!='') document.myform.numar.value=numarn; else { document.getElementById('numar').style.background='red'; document.getElementById('numar').style.color='yellow'; } if (ocupatien!='') document.myform.ocupatie.value=ocupatien; else { document.getElementById('ocupatie').style.background='red'; document.getElementById('ocupatie').style.color='yellow'; } if (limbin!='') document.myform.limbi.value=limbin; else { document.getElementById('limbi').style.background='red'; document.getElementById('limbi').style.color='yellow'; } if (aptitudinin!='') document.myform.aptitudini.value=aptitudinin; else { document.getElementById('aptitudini').style.background='red'; document.getElementById('aptitudini').style.color='yellow'; } if (experientan!='') document.myform.experienta.value=experientan; else { document.getElementById('experienta').style.background='red'; document.getElementById('experienta').style.color='yellow'; } if (cursn!='') document.myform.curs.value=cursn; else { document.getElementById('curs').style.background='red'; document.getElementById('curs').style.color='yellow'; } if (albumn!='') document.myform.album.value=albumn; else{ document.getElementById('album').style.background='red'; document.getElementById('album').style.color='yellow'; }} if (opend>1) alert("Nu ati completat toate campurile!"); } </script> <? } if (!$aux){ echo " <body onload=put()> <form enctype=\"multipart/form-data\" action=\"newupload.php\" method=\"POST\" name=myform> <font size=2 > <input type=text name=nume id=nume> NUME<br> <input type=text name=prenume id=prenume> PRENUME<br> <input type=text name=nastere id=nastere> DATA NASTERII:(ziua/luna/an)<br> <input type=text name=adresa id=adresa> ADRESA<br> <input type=text name=fix id=fix> TELEFON:-fix<br> <input type=text name=mobil id=mobil> TELEFON:-mobil<br> <input type=text name=email id=email> E-mail<br> <input type=text name=inaltime id=inaltime> INALTIME<br> <input type=text name=greutate id=greutate> GREUTATE<br> <input type=text name=dimensiuni id=dimensiuni> DIMENSIUNI:(bust/talie/sold)<br> <input type=text name=culoare id=culoare> Culoarea/Lungimea parului<br> <input type=text name=ochi id=ochi> Culoarea ochilor<br> <input type=text name=semne id=semne> Semne particulare<br> <input type=text name=marime id=marime> Marime vestimentatie(haina/pantalon)<br> <input type=text name=numar id=numar> Nr. picior<br> <input type=text name=ocupatie id=ocupatie> Ocupatie/Studii<br> <input type=text name=limbi id=limbi> Limbi straine<br> <input type=text name=aptitudini id=aptitudini> Aptitudini<br> <input type=text name=experienta id=experienta> Experienta in domeniul artistic/Agentii cu care ati mai colaborat<br> <input type=text name=curs id=curs> Curs de modeling absolvit/Agentia<br> <input type=text name=album id=album> Album foto realizat/Agentia<BR> *MENTIUNI:<br> -formatele preferate sunt jpeg/jpg/gif/zip/rar<br> -marime maxima fisier 2MB<BR> <input type=\"file\" name=\"userfile\"> INCARCA POZA<br> <input type=\"submit\" value=\"TRIMITE\"></font> </form> </body> ";} ?> This the code...but the page that loads it is joomla so 183 is not the 183rd line in this code
×
×
  • 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.