论坛文章发表时间及文章有效期限
所有程序均来自《php经典编程265例》 无 htmlbody meta charset="utf-8" form action='' method='post' 标题:input type='text' name='text'br 内容:textarea name='te' cols='20' rows='3'/textarea select name="check" option value='谢谢您'谢谢您/opti
所有程序均来自 《php经典编程265例》
<html> <body ><meta charset="utf-8"> <form action='' method='post'> 标题:<input type='text' name='text'><br> 内容:<textarea name='te' cols='20' rows='3'></textarea> <select name="check"> <option value='谢谢您'>谢谢您</option> <option value='您好'>您好</option> <option value='再见'>再见</option> </select><br> <p> </p> <input type='submit' name='sub' value='确定'> <input type='reset' name='res' value='重置'> </form> <?php function str($str){ //自定义函数。 $str = preg_replace("/ /"," ",$str); //替换空格。 $str = preg_replace("/cha(13)/","<br>",$str); //替换回车符。 echo "内容:".$str; //输出。 } if(!empty($_POST["sub"])){ //通过post方式传参。 //如果text为空或者文本域和下拉列表框同时为空。 if($_POST["text"] == "" || (($_POST["te"] == "") && ($_POST["check"] == 1))){ echo "<script>alert('内容不能为空');location.href='index.php'</script>"; //输出提示。 }else{ if(!empty($_POST["check"]) || $_POST["select"] != '1'){ //当下拉列表值不等于1时 echo "<br>标题:".$_POST["text"]."<br>"; //输出内容和下拉列表内容。 str($_POST["te"].$_POST["check"]); }else{ echo "标题:".$_POST["text"]."<br>"; //否则只输出文本域内容。 str($_POST["te"]); } echo "<br>"; echo "发表时间:" ; date_default_timezone_set("Asia/ShangHai"); echo date("Y-m-d H:i:s")."<br>"; $time=time(); $time_r=strtotime("1 August 2014"); echo "距离销毁还有:".ceil((($time_r-$time)/(3600*24)))."天"; } } ?> </body> </html>

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

The default map on the iPhone is Maps, Apple's proprietary geolocation provider. Although the map is getting better, it doesn't work well outside the United States. It has nothing to offer compared to Google Maps. In this article, we discuss the feasible steps to use Google Maps to become the default map on your iPhone. How to Make Google Maps the Default Map in iPhone Setting Google Maps as the default map app on your phone is easier than you think. Follow the steps below – Prerequisite steps – You must have Gmail installed on your phone. Step 1 – Open the AppStore. Step 2 – Search for “Gmail”. Step 3 – Click next to Gmail app

1. How can you make money by publishing articles on Toutiao today? How to earn more income by publishing articles on Toutiao today! 1. Activate basic rights and interests: original articles can earn profits by advertising, and videos must be original in horizontal screen mode to earn profits. 2. Activate the rights of 100 fans: if the number of fans reaches 100 fans or above, you can get profits from micro headlines, original Q&A creation and Q&A. 3. Insist on original works: Original works include articles, micro headlines, questions, etc., and are required to be more than 300 words. Please note that if illegally plagiarized works are published as original works, credit points will be deducted, and even any profits will be deducted. 4. Verticality: When writing articles in professional fields, you cannot write articles across fields at will. You will not get appropriate recommendations, you will not be able to achieve the professionalism and refinement of your work, and it will be difficult to attract fans and readers. 5. Activity: high activity,

On the Douyin platform, many users are eager to obtain level certification, and the level 10 light sign shows the user's influence and recognition on Douyin. This article will delve into the price of Douyin’s level 10 light boards and the time it takes to reach this level to help users better understand the process. 1. How much does a level 10 Douyin light sign cost? The price of Douyin's 10-level light signs will vary depending on market fluctuations and supply and demand. The general price ranges from a few thousand yuan to ten thousand yuan. This price mainly includes the cost of the light sign itself and possible service fees. Users can purchase level 10 light signs through Douyin’s official channels or third-party service agencies, but they should pay attention to legal channels when purchasing to avoid false or fraudulent transactions. 2. How many days does it take to create a level 10 fan sign? Reach level 10 light sign

Is the clock app missing from your phone? The date and time will still appear on your iPhone's status bar. However, without the Clock app, you won’t be able to use world clock, stopwatch, alarm clock, and many other features. Therefore, fixing missing clock app should be at the top of your to-do list. These solutions can help you resolve this issue. Fix 1 – Place the Clock App If you mistakenly removed the Clock app from your home screen, you can put the Clock app back in its place. Step 1 – Unlock your iPhone and start swiping to the left until you reach the App Library page. Step 2 – Next, search for “clock” in the search box. Step 3 – When you see “Clock” below in the search results, press and hold it and

Are you getting "Unable to allow access to camera and microphone" when trying to use the app? Typically, you grant camera and microphone permissions to specific people on a need-to-provide basis. However, if you deny permission, the camera and microphone will not work and will display this error message instead. Solving this problem is very basic and you can do it in a minute or two. Fix 1 – Provide Camera, Microphone Permissions You can provide the necessary camera and microphone permissions directly in settings. Step 1 – Go to the Settings tab. Step 2 – Open the Privacy & Security panel. Step 3 – Turn on the “Camera” permission there. Step 4 – Inside, you will find a list of apps that have requested permission for your phone’s camera. Step 5 – Open the “Camera” of the specified app

Tomato Novel, this popular novel reading software, not only has rich and diverse novel resources, but also provides exclusive categories so that every reader can easily find their favorite reading material. Whether it's a classic or a popular new work, Tomato Novels can satisfy your reading needs. You can also publish your own updates, share your reading opinions and experiences, and implement social functions. However, many friends do not know how to publish their own updates, so users who want to know more can come and learn more. Just give it a try. How to post updates on Tomato Novels? 1. First click to enter the My Page of Tomato Novel. 2. Then click on the avatar box to enter the personal information page. 3. Then click the edit pattern to publish the dynamic. 4. After filling in the content, select the publish button.

Xiaohongshu, a platform full of life and knowledge sharing, allows more and more creators to express their opinions freely. In order to get more attention and likes on Xiaohongshu, in addition to the quality of content, the time of publishing works is also crucial. So, how to set the time for Xiaohongshu to publish works? 1. How to set the time for publishing works on Xiaohongshu? 1. Understand the active time of users. First, it is necessary to clarify the active time of Xiaohongshu users. Generally speaking, 8 pm to 10 pm and weekend afternoons are the times when user activity is high. However, this time period will also vary depending on factors such as audience group and geography. Therefore, in order to better grasp the active period of users, it is recommended to conduct a more detailed analysis of the behavioral habits of different groups. By understanding users’ lives

Players can experience the main plot of the game and collect game achievements when playing in Elden's Circle. Many players don't know how long it takes to clear Elden's Circle. The player's clearance process is 30 hours. How long does it take to clear the Elden Ring? Answer: 30 hours. 1. Although this 30-hour clearance time does not refer to a master-like speed pass, it also omits a lot of processes. 2. If you want to get a better game experience or experience the complete plot, then you will definitely need to spend more time on the duration. 3. If players collect them all, it will take about 100-120 hours. 4. If you only take the main line to brush BOSS, it will take about 50-60 hours. 5. If you want to experience it all: 150 hours of base time.
