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


Groups > comp.lang.php > #16045

test prog inpu tpost

Path csiph.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!bloom-beacon.mit.edu!panix!not-for-mail
From vjp2.at@at.BioStrategist.dot.dot.com
Newsgroups comp.lang.php
Subject test prog inpu tpost
Date Fri, 1 Jan 2016 01:57:14 +0000 (UTC)
Organization Samani Marions Panyaught NYC-11357-3436-287-USA
Lines 38
Message-ID <n64mdp$ppg$1@reader1.panix.com> (permalink)
NNTP-Posting-Host panix2.panix.com
X-Trace reader1.panix.com 1451613434 26416 166.84.1.2 (1 Jan 2016 01:57:14 GMT)
X-Complaints-To abuse@panix.com
NNTP-Posting-Date Fri, 1 Jan 2016 01:57:14 +0000 (UTC)
User-Agent tin/2.2.1-20140504 ("Tober an Righ") (UNIX) (NetBSD/6.1.5 (i386))
X-Received-Bytes 1717
X-Received-Body-CRC 3979237419
Xref csiph.com comp.lang.php:16045

Show key headers only | 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