Guest iv Posted July 3, 2006 Share Posted July 3, 2006 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 scenarioI 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 i.e. <form action="http://www.anotherserver.com/sendmail.php" method="post"> Can this be done? If so any pointers to tutorials would be great Link to comment https://forums.phpfreaks.com/topic/13545-can-this-be-acheived-in-php/ Share on other sites More sharing options...
trq Posted July 3, 2006 Share Posted July 3, 2006 [quote]Can this be done?[/quote]Yes. Just as you have done it. Link to comment https://forums.phpfreaks.com/topic/13545-can-this-be-acheived-in-php/#findComment-52430 Share on other sites More sharing options...
aquestion Posted July 4, 2006 Share Posted July 4, 2006 OkSo this can be done by sending a html based form to a php script on another server.But do you have any script examplesi.e.would this work as the php script ?<?if ($REQUEST_METHOD == "POST") { // 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 = "[email protected]"; $subject = "Sending Email Feedback From My Website"; $message = "$name, $email\n\n$feedback"; // send the email mail($sendto, $subject, $message); } ?> Link to comment https://forums.phpfreaks.com/topic/13545-can-this-be-acheived-in-php/#findComment-52858 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.