Jump to content

post limit


JankaZ

Recommended Posts

How ken i show post histori to 10 posts for example!

 

You: Hello

Bot: Hi

You: Nice day

Bot: Jes

 

<form method="post"> 
Message: <input name="message" type="text" /> 
<br />

<input type="submit" value="Send Message" />

<?php 
$name =$_POST['name'];
$message =$_POST['message'];
if ( $message == "hello") {
$return = "how are you?";
}
if ($message == "good you?") {
$return = "i am good";
}
if ($message == "good") {
$return = "thats cool";
}
if ($message == "sad") {
$return = "well why are u sad";
}
if ($message == "sad you?") {
$return = "im good, and why so sad?";
}
if ($message == "fine") {
$return = "fine, usually that measn your bored!";
}
if ($message == "fine you?") {
$return = "im good";
} 
?>
<br />
<? echo("$return"); ?>

 

And ken i store questions and answers in txt file? if ken then how?

 

Link to comment
https://forums.phpfreaks.com/topic/197480-post-limit/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.