Well, you may need a database or something to store the users' notes. And to have users log on and log off, and submit their notes, you have to use a server side scripting language such as PHP.
Question 1: Yes and no. You can go back:
<form action="final_news.php" method="post"><input type="submit" value="submit" name="submit"><input type="button" value="go back" name="go_back" onclick="java script:history.back();"></form>
But you can't go to a different url.You have to create another form for that. But you can use a PHP script to direct you to a different url depending on which button you clicked.Why not just create a hyperlink to do the job?
Well...1. Go to notepad.2. Type up your codes.3. Save the document and make sure to change the extension to .html instead of .txt (i.e. test.html).4. Launch your browser.5. Go to the file menu and select open.6. Open the HTML file that you saved.
The total is shown when you hit the submit button. I can't see the total before I hit the submit button; I can only see the number 0 before I hit the submit button.If you don't want the number 0...echo "<input type='submit' value='Submit' name='submit' />";
$submit = $_POST['submit'];if ($submit == ""){echo "";}else{echo $result;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <!-- 60 x 25miles รท 15speed = T --> </head> <body> <form action="PassengerTrain.php" method="POST"> <?php $speed = $_POST['speed']; $miles = $_POST['miles']; $result = $miles + $speed; echo "<input type='text' name='miles' value='' size='1' maxlength='3' />"; echo "<input type='text' name='speed' value='' size='1' maxlength='3' />"; echo "<input type='submit' value='Submit' />"; echo " "; echo $result; ?> </form> </body></html>
That'll produce the sum of the first input + the second input. That was just an example because I don't know exactly what you're trying to do.
echo "<input type='text' name='miles' value='" . $miles . "' size='1' maxlength='3' />";echo "<input type='text' name='speed' value='' size='1' maxlength='3' />";echo "<input type='submit' value='Submit' />";
Well, that will return the value in the first textbox if I understood your question correctly.
What do you mean it won't show the value in the first text box?Do you mean it won't show the value at all or it won't show the value inside the text box?
<table><tr><td bgcolor="green">text</td><td>text</td></tr></table>
The first cell will be have a green background color while the second cell will have no background color.