Web page

Home > Preview

The flashcards below were created by user slc53 on FreezingBlue Flashcards.


  1. basic page minimum
    • <!doctype html>
    • <html>
    •   <head>
    •      <title>$titlebar</title>
    •     <link rel="stylesheet" href="style.css">
    •   </head>
    • <body>
    • ...
    • </body>
    • </html>
  2. label
    • <label> ????????????</lable>
    • echo "<label>" . $label . "</lable>";
  3. textbox
    <input type = text name=$name size=$size value=&value>
  4. image
    <img src=$src alt=$alt height=$height width=$width>
  5. button
    • <button type="submit" name="$name">
    • $text
    • </button>
  6. form
    • <form action = \"?\" method=post>
    • control
    • </form>
  7. drop down list
    • <select name="selectName" size=$size>
    •    <option value="val1>$text1</option>
    •    <option value="val2>$text2</option>
    •                ...
    • </select>
  8. radio button
    • <input type="radio" name="radioName"
    •      value="val1>label1
    • <input type="radio" name="radioName"     value="val2>label2
  9. submit and retrieve form data
    • <form action = \"?\" method=post>
    • name="f_someName" value="someValue"
    • on submit "f_someName"="someValue"
    • retrieve from POST
    • $someVar = $_POST["f_someName"]
  10. open connection
    $mysqlObj = new mysqli($Host, $UserName, $Password, $Database);
  11. droptable($mysqlObj,$tableName);
    • if(($stmt=$mysqlObj->prepare("DROP TABLE IT EXISTS $tableName")))
    •    $stmt->execute();
  12. createtable($myobj,$tableName);
    • $stmt=$myobj->prepare("--mysql script--");
    • if ($stmt->error)
    •   echo"prepare failed ".$stmt->error . $myobj->error;
    • if($stmt->execute())
    •    echo "$tableName table created";
    • else
    •    echo "......error message";
    • $stmt->close();

Card Set Information

Author:
slc53
ID:
325688
Filename:
Web page
Updated:
2016-11-15 02:35:34
Tags:
web page
Folders:

Description:
web page
Show Answers:

Home > Flashcards > Print Preview