PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 6th, 2000, 07:04 PM
Domenico Domenico is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Location: Roma/Italy
Posts: 5 Domenico User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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:
$to_message";

$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";
}

</script>

thank you very much and i hope to return.

bye,

Domenico

Reply With Quote
  #2  
Old February 7th, 2000, 07:01 AM
PAV PAV is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 1999
Location: Netherlands
Posts: 77 PAV User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
Hi Domenico,

You mean something like:

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

</script>
....
<BODY>
<? print $returnMessage; ?>
</BODY>
</HTML>

Regards, Peter

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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > url redirection...

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap