Jump to content

king

Members
  • Posts

    60
  • Joined

  • Last visited

Previous Fields

  • Languages
    PHP, SQL (MySQL and Oracle), HTML, CSS, Learning Java

Contact Methods

  • Website URL
    http://
  • ICQ
    0

king's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Well, no. Use the <div> tag instead. <div style="text-align: center">text</div>.
  2. 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.
  3. 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?
  4. king

    Passing arrays

    May we see your code?
  5. king

    Form Buttons?

    <form action="submitted.html" method="post"><input type="submit" value="submit"></form> Click here to learn the difference between the form methods.
  6. king

    Testing

    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.
  7. king

    echoing a statment

    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;
  8. king

    echoing a statment

    <!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.
  9. king

    echoing a statment

    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.
  10. king

    echoing a statment

    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?
  11. No, you can have more than 1 but you must change the name of the function, the form, etc.
  12. king

    tables

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