Jump to content

Can this be acheived in PHP ?

  • Please log in to reply
2 replies to this topic

#1 Guest_iv_*

  • Guests

Posted 03 July 2006 - 01:49 PM

I just to know if this is achieveable in PHP, when I have googles for this and came across scripts they are full blown appas that require the form be on a php server as well as the action page.

This is my scenario

I have a html feedback form on a server that does not run PHP.

To get around this I want to send the form processing (action page) to a colleagues server that has PHP installed


<form action="http://www.anotherse...m/sendmail.php" method="post">

Can this be done? If so any pointers to tutorials would be great

#2 trq

  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 03 July 2006 - 02:07 PM

Can this be done?

Yes. Just as you have done it.

#3 aquestion

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 04 July 2006 - 12:32 PM


So this can be done by sending a html based form to a php script on another server.

But do you have any script examples


would this work as the php script ?

// Just to be safe, I strip out HTML tags 
$name = strip_tags($name); 
$email = strip_tags($email); 
$feedback = strip_tags($feedback); 
// set the variables 
$sendto = "$me@mysite.com"; 
$subject = "Sending Email Feedback From My Website"; 
$message = "$name, $email\n\n$feedback"; 
// send the email 
mail($sendto, $subject, $message); 


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users