Jump to content

wipe

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

wipe's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi guys, a few days i upgrade php from 5.1 to 5.2.16 all seem fine and last 2 days i start to find some bugs. I use this code to get url var and pass from a form: <?php echo $_GET['id']; ?> <input name="ids" type="hidden" id="ids" value="<?php $_GET['id'];?>" /> In the email i receive all data from the form, but not this that i get from the URL. in code to send to email i just use: $_POST[id] This work fine in 5.1 but not in this version. anyone have an idea why? Wipe
  2. Hi guys, I have a small adder script to calculate some options. The problem is when i have as result (12.123) id like to limit to only (12.12), two numbers after (.). Here is the code i need to return only .00 <HTML> <HEAD> <TITLE>Adder</TITLE> <SCRIPT LANGUAGE="JavaScript"> function CalculateSum(Atext, Btext, form) { var A = parseFloat(Atext); var B = parseFloat(Btext); form.Answer.value = A * B; } function CalculateSum2(inp, form) { var C = parseFloat(inp); form.pp125.value = C * 16; form.pp285.value = C * 24; form.vsl.value = C * 19; form.vcl.value = C * 25; form.ppa.value = C * 34; var num = form.pp125.value; form.pp125.value.toFixed(2); } function ClearForm(form) { form.input_A.value = ""; form.input_B.value = ""; form.Answer.value = ""; } // end of JavaScript functions --> </SCRIPT> <style type="text/css"> <!-- .caixas { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; background-color: #FFFFFF; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; color: #000000; } .caixaslinhas { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; background-color: #FFFFFF; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 1px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: solid; border-left-style: none; color: #000000; border-bottom-color: #666666; } --> </style> </HEAD> <BODY> <P><FONT SIZE="+2">Calcular o espaço </FONT></P> <br> <table width="1271" border="0" cellpadding="0" cellspacing="0"> <tr> <td><FORM NAME="Calculator" METHOD="post"> <table width="398" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="125"> </td> <td width="253"> </td> <td width="20"> </td> </tr> <tr> <td>W:</td> <td><INPUT NAME="input_A" TYPE=TEXT class="caixaslinhas" SIZE=5 maxlength="5" STYLE="text-align: right;"> m</td> <td> </td> </tr> <tr> <td>H: </td> <td><INPUT NAME="input_B" TYPE=TEXT class="caixaslinhas" SIZE=5 maxlength="5" STYLE="text-align: right;"> m </td> <td> </td> </tr> <tr> <td>Space </td> <td><INPUT NAME="Answer" TYPE=TEXT disabled="disabled" class="caixas" SIZE=2 STYLE="text-align: right;"> m2</td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> </table> <P> <INPUT TYPE="button" VALUE="Caculate" name="AddButton" onClick="CalculateSum(this.form.input_A.value, this.form.input_B.value, this.form)"> <input type="button" value="Clear" name="ClearButton" onClick="ClearForm(this.form)"> </P> <P> </P> </FORM></td> <td><FORM NAME="Calculator2" METHOD="post"> <table width="398" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="125"> </td> <td width="253"> </td> <td width="20"> </td> </tr> <tr> <td>space:</td> <td><INPUT NAME="inp" TYPE=TEXT class="caixaslinhas" id="inp" STYLE="text-align: right;" SIZE=10> m</td> <td> </td> </tr> <tr> <td>125gr: </td> <td><INPUT NAME="pp125" TYPE=TEXT disabled="disabled" id="pp125" SIZE=10 maxlength="8" STYLE="text-align: right;"> €</td> <td> </td> </tr> <tr> <td>285gr: </td> <td><INPUT NAME="pp285" TYPE=TEXT class="caixas" id="pp285" SIZE=8 maxlength="8" rdisabled="disabled" STYLE="text-align: right;"> €</td> <td> </td> </tr> <tr> <td>SL </td> <td><INPUT NAME="vsl" TYPE=TEXT disabled="disabled" class="caixas" id="vsl" SIZE=8 maxlength="8" STYLE="text-align: right;"> €</td> <td> </td> </tr> <tr> <td>CL </td> <td><INPUT NAME="vcl" TYPE=TEXT disabled="disabled" id="vcl" SIZE=10 maxlength="8" STYLE="text-align: right;"> €</td> <td> </td> </tr> <tr> <td>TA </td> <td><INPUT NAME="ppa" TYPE=TEXT disabled="disabled" id="ppa" SIZE=10 maxlength="8" STYLE="text-align: right;"> €</td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> </table> <P> <INPUT TYPE="button" VALUE="Calculate" name="AddButton2" onClick="CalculateSum2(this.form.inp.value, this.form)"> <input type="button" value="Limpar" name="ClearButton2" onClick="ClearForm(this.form)"> </P> <P> </P> </FORM></td> </tr> </table> </BODY> </HTML>
  3. Hi guys, I have CubeCart 4 store. i want to create a option to be able to the clients pay by ATM. But i need to include a PHP file in a .TPL. Anyone know how can that be possible? Regards, Wipe
  4. [quote author=Daniel0 link=topic=108813.msg438161#msg438161 date=1158772133] What error do you get? [/quote] Don't return me no error. The flash header disapear. A few day ago with 2 includes the side menu disapear too.
  5. [quote author=wildteen88 link=topic=108813.msg438125#msg438125 date=1158769303] When you include these files is the header in the same folder as the file that is including the header? For example you code is this: file_that_includes_header.php [code=php:0]include 'includes/header.php';[/code] Your header graphic will need to be in the same folder as file_that_includes_header.php and not in the includes folder. As the file that is being included/required is not run in the location in which it is being included from. Instead is run from the file that is including/requiring the file. [/quote] This is the code where the header in flash don't appear: [code]<body> <table width="766" border="0" align="center" cellpadding="0" cellspacing="0">   <tr>     <td valign="top"><script type="text/javascript"> AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','766','height','310','src','images/header','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','images/header' ); //end AC code     </script>       <noscript>       <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="766" height="310">         <param name="movie" value="images/header.swf" />         <param name="quality" value="high" />         <embed src="images/header.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="766" height="310"></embed>       </object>       </noscript>          <table id="Table_01" width="766" height="564" border="0" cellpadding="0" cellspacing="0">         <tr>           <td width="270" background="images/msl_01.jpg"><table width="270" border="0" cellspacing="0" cellpadding="0">             <tr>               <td width="14">&nbsp;</td>               <td width="228"><br />                 <span class="menu_lateral"><br />                 <img src="images/seta_index.gif" width="10" height="11" /> Executive Search<br />                 <br />                 <br />                 <img src="images/seta_index.gif" width="10" height="11" /> Recrutamento por Anuncio<br />                 <br />                 <br />                 <img src="images/seta_index.gif" width="10" height="11" /> Modelo de Compet&ecirc;ncias              <br />                 <br />                 <br />                 <img src="images/seta_index.gif" width="10" height="11" /> Avalia&ccedil;&atilde;o de Potencial<br />                 <br />                 <br />                                <img src="images/seta_index.gif" width="10" height="11" /> Recrutamento Rec&eacute;m-Licenciados<br />                 <br />                 <br />                 <img src="images/seta_index.gif" width="10" height="11" /> Reten&ccedil;&atilde;o de Quadros <br />                 <br />                 <br />                 <img src="images/seta_index.gif" width="10" height="11" /> Out-Sourcing da fun&ccedil;&atilde;o de Recrutamento</span><br />                 <br />                 <br /></td>               <td width="28">&nbsp;</td>             </tr>           </table></td>           <td width="496" rowspan="2" valign="top"><div align="center"><br />                  <span class="style2">                 <br />                 <br />                 <?php   echo $_GET['categoria']; ?>                 </span><br />             <br />               <br />           </div>             <div align="left">             <p><span class="menu_lateral"><br />               Esta                          metodologia &eacute; especialmente recomendada para fun&ccedil;&otilde;es                          de gest&atilde;o e para fun&ccedil;&otilde;es comerciais                          ou t&eacute;cnicas com um elevado grau de especializa&ccedil;&atilde;o.                          A pesquisa directa de executivos - vulgo &quot;Executive                          Search&quot; -&eacute; um sevi&ccedil;o de busca intensiva                          e continuada, que exige recursos dedicados, com um grande                          investimento de tempo.</span></p>           </div>           <ol>             <li><span class="menu_lateral"><a href="http://www.msl.pt/executivesearch3.html" target="_self">Compreens&atilde;o                          do problema e defini&ccedil;&atilde;o de objectivos</a></span></li>             <li><span class="menu_lateral"><a href="http://www.msl.pt/executivesearch5.html" target="_self">Identifica&ccedil;&atilde;o                          e avalia&ccedil;&atilde;o de candidatos</a></span></li>             <li><span class="menu_lateral"><a href="http://www.msl.pt/executivesearch7.html" target="_self">Entrevistas                          com cliente</a></span></li>             <li><span class="menu_lateral"><a href="http://www.msl.pt/executivesearch8.html" target="_self">Selec&ccedil;&atilde;o                          final e obten&ccedil;&atilde;o de refer&ecirc;ncias</a></span></li>             <li><span class="menu_lateral"><a href="http://www.msl.pt/executivesearch9.html" target="_self">Follow-up</a></span></li>           </ol>           <p align="center"><a href="http://www.msl.pt/grafico1.html" target="_self"><img src="http://www.msl.pt/Recursos/visionar_grafico.gif" alt="Flow-Chart da metodologia 'Executive Search'" border="0" height="60" width="180" /></a><br />             <br />             <?php require 'index1.php'; ?>           </p></td>         </tr>         <tr>           <td height="200" valign="top"><table width="270" height="200" border="0" cellpadding="0" cellspacing="0" background="images/msl_03.jpg">             <tr>               <td align="left" valign="top"><table width="270" border="0" cellspacing="0" cellpadding="0">                 <tr>                   <td width="45" height="25">&nbsp;</td>                   <td colspan="2" valign="bottom" class="menu_lateral"><img src="images/seta_footer.gif" width="7" height="10" /> Ultimos Anuncios </td>                   <td width="17">&nbsp;</td>                 </tr>                 <tr>                   <td>&nbsp;</td>                   <td colspan="2"><?php require 'ultimos.php'; ?></td>                   <td>&nbsp;</td>                 </tr>                 <tr>                   <td>&nbsp;</td>                   <td width="89">&nbsp;</td>                   <td width="119">&nbsp;</td>                   <td>&nbsp;</td>                 </tr>                 <tr>                   <td>&nbsp;</td>                   <td>&nbsp;</td>                   <td>&nbsp;</td>                   <td>&nbsp;</td>                 </tr>                 <tr>                   <td>&nbsp;</td>                   <td>&nbsp;</td>                   <td>&nbsp;</td>                   <td>&nbsp;</td>                 </tr>               </table></td>             </tr>           </table></td>         </tr>         <tr>           <td colspan="2"><img src="images/msl_04.jpg" width="766" height="41" alt="" /></td>         </tr>       </table></td>   </tr>   <tr>     <td>&nbsp;</td>   </tr>   <tr>     <td>&nbsp;</td>   </tr> </table> <br /> </body> </html>[/code]
  6. Hi guys, im trying to use 2 includes in the same page. When i try to use them works fine but de flash header dispear.... i really dont understand. I try to change to require but return the same problem. A few days ago o had te same problem in other page but i stop doing her. Now i really need to understand why 2 includes make disapear my header. Regards, Wipe
  7. wipe

    iFrame error

    Hi guys, i have a small problem. Im trying to use an iFrame. Everything works fine but the informations inside the iFrame come back with all website body. I really don't know what is going on. [code]<iframe name="frame" src="index1.php" width="500" height="600" frameborder="0" scrolling="no" allowautotransparency=true></iframe>[/code] The index1.php just have a small table with a PHP query. I dont have the website body into. When i use the iFrame i have the website header and the website header again in the iFrame with the index1.php information. Tanks for the help, Wipe
  8. Hi guys, i have a small problem. I have a website written in html but id like to know how can i have several languages. I just want two files with two languages and the user chose anytime if he want to change. I have seen some sites with this format: Dear, {name}... ou another way to do it Can anyone have a clue how to do it? or a website with a good tutorial about it? Regards
  9. Hi guys, i have a small question. Im using a script that display all results in a DB and i can do some query. i insert also date. Now i need to know how can i display with a echo the last 5 posts into my DB using date. How can i do that? Regards, Wipe
  10. [!--quoteo(post=381619:date=Jun 8 2006, 11:08 PM:name=poirot)--][div class=\'quotetop\']QUOTE(poirot @ Jun 8 2006, 11:08 PM) [snapback]381619[/snapback][/div][div class=\'quotemain\'][!--quotec--] 1. Odd... It works for one page but not for another? 2. You can have different MySQL links but I never used this: [code]$link1 = mysql_connect('host', 'user1', 'pass1'); $link2 = mysql_connect('host2', 'user2', 'pass2');[/code] But this is an annoyance since you'll have to define the link to use for everything you do: [code]mysql_query("SELECT * FROM table", $link1)[/code] [/quote] Thats right. Works for the first page but not for the second.
  11. Hi guys, i have 2 questions: First- I'm trying to use an external SQL DB like this: connect.php [code]<? $dbhost = 'mysite.com'; $dbuser = 'user'; $dbpass = 'pass'; $dbname = 'db_name'; $dbcfg = 'vehicle_config'; $dbvin = 'vehicle_inventory'; $dbimg = 'vehicle_imagelist'; ?>[/code] in index.php everything works fine but when go to the second page (view.php) he lose the connection. I use the "Require" but return a DB problem. [i] Warning: mysql_connect(): Access denied for user 'wipe_msl'@'biham.lunarpages.com' (using password: YES) in /home/acomp2/public_html/mslacomp/view.php on line 6 I cannot connect to the database because: Access denied for user 'wipe_msl'@'biham.lunarpages.com' (using password: YES)[/i] But this is the pass that a have chosed. Can this be a security problem or just a script error? ---------------------------------------- 2nd question: how can i connect to several DB(in diferent hosts) and display as just one? do i need some special connect? Do i need a script adjustment? Best regards, Wipe
×
×
  • 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.