Jump to content

Programming Help!


Quinton1337

Recommended Posts

My teacher gave us a php problem... and seeing as how I'm getting angry and don't know what I'm doing I need your HELP.

 

These are what I have So Far. If you can (somehow) see the problem, PLEASE post it!

 

DegRad.html

_________________________________________________________

<html>

<body>

<h4>Tizag Art Supply Order Form</h4>

<form action="DegRad_R1.php" method="POST">

 

Convert degrees to radiants <input name="rad" type="Text"/>

<input type="submit"/>

 

 

<form action="DegRad_R2.php" method="POST">

 

Convert radiants into degrees <input name="deg" type="Text"/>

<input type="submit"/>

 

</form>

</body>

</html>

______________________________________________________________

 

DegRad_R1.php

______________________________________________________________

 

<html>

<body>

<?php

$x= $_POST['rad'];

$z=rad2deg($x);

 

echo "The Radien is " .$x. "<br/>";

 

?>

</body>

</html>

___________________________________________________________

 

DegRad_R2.php

_____________________________________________________________

<html>

<body>

<?php

$y= $_Post['deg'];

$w=deg2rad($y);

 

echo "The Degree is " .$w. "<br/>";

 

?>

</body>

</html>

_____________________________________________________________

 

Please Tell me the problem right away... my class is 4th period. It's 11:48am and my class is at 1:30pm!

 

Thank you all who help.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.