Jump to content

alin19

Members
  • Posts

    334
  • Joined

  • Last visited

    Never

Everything posted by alin19

  1. <?php if($_SERVER['REQUEST_METHOD'] == 'POST') { $a = $_POST['unu']; $b = $_POST['doi']; $x = $a*$b; } ?> <html> <body BACKGROUND="mapa2.jpg"> <form name="check" method="post"> </br></br></br></br></br></br> <table width="304" border="2" cellpadding="0" cellspacing="2" align="center"> <!--DWLayoutTable--> <tr><td id="sapte"/></td></tr> <tr> <td border="0">test</td><td valign=""align="center" ><font color="red" size="3">Ultimul Pret de Inchidere</font></td> <td width="304" height="79" valign="" align="center"> <input name="unu" type="text" id="unu" /> </td><td> </tr> <tr><td border="0">test</td> <td valign=""><font color="red" size="3" align="center">Actiuni gratuite de primit</font></td> <td height="86" valign="" align="center" ><input name="doi" type="text" id="doi" /></td> </tr> <tr><td border="0">test</td> <td valign="" align="center" ><font color="red" size="3" align="green"></font></td> <td height="86" valign="" align="center"><input type="submit" name="CALCULEAZA" value="CALCULEAZA" /></td> </tr> <tr><td border="0">test</td> <td valign="" align="center" ><font color="red" size="3" align="green">Pret ex-dividend</font></td> <td height="35" valign="" align="center"><font color="green" size="8" ><?php if(isset($x)) { echo $x; } ?> </font></td> </tr> </table> </form> </html> i need x to write only 2 decimals, how can i do that?
  2. i can't start the service animore syntax error on line 280 of /etc/httpd/conf/httpd.conf there was a problem with the firewall and i stoped it and now this, php version could not open input file
  3. alin19

    form add

    you are a genius works, i'm a beginer, i have a few questions, i need a script that dosn't need to be run in a browser i've understand that php-cli makes that, but i don't know how to use it
  4. alin19

    form add

    that works but it gives me an error, because the var $get_[unu] and doi are not difined,
  5. can i include more forms on a php page? something like this: <html> .... <form method="get"> <input type="text" name="unu" size=7> </form> <form method="get"> <input type="text" name="doi" size=7> </form> <form method="get"> <input type="text" name="trei" size=7> </form> <?php $a=$_get['unu] $b=$_get['doi]' ........... $x= $a*$b +$c; echo x; ?> i need a little help
  6. i've installed this operating sistem with the apache patch; i want to use php-cli, can you help me? i don't know exactly how php-cli works, it uses the same script lines as? how do i config it?
  7. i have instaled a page on a xampp linux server i have a section o news, and another site from where to get those news, i upload them manualy; but i want to make this automat; please help me i don't need for someonae to give me the script, just to help me; i need to know where should i put the script and to explain a little how should i do it
×
×
  • 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.