Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #16045

test prog inpu tpost

From vjp2.at@at.BioStrategist.dot.dot.com
Newsgroups comp.lang.php
Subject test prog inpu tpost
Date 2016-01-01 01:57 +0000
Organization Samani Marions Panyaught NYC-11357-3436-287-USA
Message-ID <n64mdp$ppg$1@reader1.panix.com> (permalink)

Show all headers | View raw


SHould this work? I'm stuck with lynx browser for a few days and can't tell

<html>
<head>
<title>Quadratic</title>
</head>
<body>
<?php
  $t;$b=$_POST['b'];$a=$_POST['a'];$c=$_POST['c'];$x;$y;
  $t=(pow($b,2))-(4*$a*$c);
  if($t<=0)
    $t=(-1)*$t;
  $x=(-2*$c)/($b+(sqrt($t)));
  $y=(-2*$c)/($b-(sqrt($t)));
  echo sprintf("Solution in Addition = %f  in Subtraction = %f" ,$x,$y);
?>
<form method="post">
<label>What is a? <input type="number" name="a"></label><br>
<label>What is b? <input type="number" name="b"></label><br>
<label>What is c? <input type="number" name="c"></label><br>
<input type="submit">
</form>
</body>
</html>



				    - = -
 Vasos Panagiotopoulos, Columbia'81+, Reagan, Mozart, Pindus, BioStrategist
		    http://www.panix.com/~vjp2/vasos.htm
  ---{Nothing herein constitutes advice.  Everything fully disclaimed.}---
   [Homeland Security means private firearms not lazy obstructive guards]
 [Urb sprawl confounds terror] [Phooey on GUI: Windows for subprime Bimbos]



Back to comp.lang.php | Previous | NextNext in thread | Find similar | Unroll thread


Thread

test prog inpu tpost vjp2.at@at.BioStrategist.dot.dot.com - 2016-01-01 01:57 +0000
  Re: test prog inpu tpost Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2015-12-31 21:22 -0500
    Re: test prog inpu tpost Matthew Carter <m@ahungry.com> - 2015-12-31 21:40 -0500
    Re: test prog inpu tpost "J.O. Aho" <user@example.net> - 2016-01-01 09:40 +0100
    Re: test prog inpu tpost Jerry Stuckle <jstucklex@attglobal.net> - 2016-01-01 09:32 -0500
      Re: test prog inpu tpost Arno Welzel <usenet@arnowelzel.de> - 2016-01-01 18:24 +0100
        Re: test prog inpu tpost Jerry Stuckle <jstucklex@attglobal.net> - 2016-01-01 14:07 -0500
          Re: test prog inpu tpost Matthew Carter <m@ahungry.com> - 2016-01-01 21:40 -0500
            Re: test prog inpu tpost Jerry Stuckle <jstucklex@attglobal.net> - 2016-01-01 21:53 -0500
            Re: test prog inpu tpost Arno Welzel <usenet@arnowelzel.de> - 2016-01-02 11:39 +0100
            Re: test prog inpu tpost Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-01-02 22:43 +0100
  Re: test prog inpu tpost Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2015-12-31 21:39 -0500
  Re: test prog inpu tpost vjp2.at@at.BioStrategist.dot.dot.com - 2016-01-07 03:19 +0000

csiph-web