From "265 Examples of PHP Classic Programming"
- Title: < input type = 'text' name = 'text' select name="check">
- < ;/option>
-
- 'sub' value='OK'> function str ($str){ //Custom function.
- $str = preg_replace("/ /"," ",$str);
- $str = preg_replace("/cha(13)/","
",$str); : Echo "content:". $ Str; // Output.
- //Pass parameters via post.
- to
- echo "<script>alert('Content cannot be empty');location.href='index.php'</script>"; //Output prompt.
-
- if(!empty($_POST["check"]) ||
- ".$_POST["text"]."
"; //Output content and drop-down list content.
- ".$_POST["text"]."
"; / /Otherwise only the text field content is output.
-
echo "
- echo date ("Y-m-d H:i:s")."
";
- $time=time();
- $time_r=strtotime("1 August 2014");
- ".ceil((($time_r-$time)/(3600*24)))."天";
- }
- }
- ?>
|