Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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