PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I made a simple mailform script, where users can send email to me. Now i want to make a message, so when they submit the form that the form desapears and they get a message <span style='color:red;text-decoration:blink' title='Alert a moderator!'>grilled spam</span>:
echo "Your mail has been submited" . So that they only c the text message "Your mail is submited" .
I know it must be done with some function and with combination of a variable but i am not shote of it.
<?php
if(!empty($_POST)){
// send email
echo "Your email message has been submitted.";
} ELSE {
echo "<form action=\"{$_SERVER['PHP_SELF']}\" method=\"post\">";
// rest of form here
}
?>
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
I tryd this code, but the form is not desapearing. it gives the message after submitting the form "you remail has been submited" but the form is not desapearing.
tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Sry for late answer, i have almost no time after work
But this how i wrote the script and add it also the one that posted [b]scottay[/b]
tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]