1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Rep Power
    please I need help about a simple question...

    I have modified a recommend script.
    I need the way to redirect user in the same page and include in that both thank's message and error message.

    my code is:
    <script "language = php3">

    $nameX = stripslashes($name);
    $to_nameX = stripslashes($to_name);
    $url = "http://www.3plane.it";
    $to_messageX = ($to_message);
    $message = "$nameX ha visitato il nostro web: $url
    e ti invia il seguente messaggio:

    $subject = "$nameX: un interessante web site";

    if (( $to_email_address) && ( $from_email_address)) {

    mail($to_email_address, $subject, $message,
    "From: $from_email_address
    Reply-To: $from_email_address
    X-Mailer: PHP
    Errors-To: $from_email_address");
    echo "Grazie $nameX, Il tuo messaggio stato accodato con successo.";
    } else {

    echo "error, torna alla pagina precedente";


    thank you very much and i hope to return.


  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 1999
    Rep Power
    Hi Domenico,

    You mean something like:

    $returnMessage = "Grazie $nameX, Il tuo messaggio stato accodato con successo.";
    else {
    $returnMessage = "error, torna alla pagina precedente";

    <? print $returnMessage; ?>

    Regards, Peter

    [This message has been edited by PAV (edited February 07, 2000).]

Similar Threads

  1. help! url redirection.
    By spk921803 in forum HTML Programming
    Replies: 9
    Last Post: December 16th, 2003, 06:58 PM
  2. please help!! another url redirection question
    By spk921803 in forum PHP Development
    Replies: 2
    Last Post: December 13th, 2003, 05:25 AM
  3. Replies: 15
    Last Post: November 21st, 2003, 04:53 PM
  4. invisible url redirection
    By relaxedguy in forum Apache Development
    Replies: 5
    Last Post: November 14th, 2003, 01:39 PM
  5. URL Redirection
    By Bowner in forum Web Hosting
    Replies: 3
    Last Post: September 16th, 2003, 10:36 AM

IMN logo majestic logo threadwatch logo seochat tools logo