XAMPP and forms

I’m trying to setup a form on a webpage to learn how to use it. I don’t do any sort of programming.

I have XAMPP running (apache, sql, etc etc). I downloaded the formmail.pl file and placed it within the cgi-bin directory. Configured it to my needs. Called on it from a html file, but I keep getting the same error.

And here is the error log

anyone have any ideas what I’m doing wrong. i’m running xampp in winxp (with static ip). Right now, i’m trying to set it up such that it emails the data. How do I go about setting it up if I want the data to be save to a txt file on the locally?

Re: XAMPP and forms

It looks to me, you havent configered the file correctly. You need to add all the necessary info in the formmai.pl file..

If you have limited programming experience, then why dont you use a phpmail form? Its a lot easier to setup. I can send you one if you want.

PS: have you installed xampp on your desktop? Are you sure the webserver is runnig fine?

Re: XAMPP and forms

Nom, did you try putting Xampp folder on the root of your drive, eg. c:\xampplite\?

A lot of these apps don't work properly if you have them nested into other folders. As in your case "C:\Documents and Settings
sikandar\Desktop"

Re: XAMPP and forms

The Xampp server workes fine. I've been using it for a while. I have absolutely no programming experience, so please ... send me the phpmail form. I'll try anything thats easy :)

I'll try moving the server to the root folder and see if that fixes it..

Thanks..

Re: XAMPP and forms

^-- I was wondering the same thing. Best thing is to put it in the root of c, d or what ever partition..

Ok, i'll PM you the link to the file nomaan.

Re: XAMPP and forms

didn't work in the root...

Re: XAMPP and forms

Not your fault. It’s a bug. (I assumed you’re using the latest version of XAMP which comes with Apache2)
http://issues.apache.org/bugzilla/show_bug.cgi?id=19315

Additionally, verify the path to Perl interpreter on the very first line of your script.


I would suggest not to use XAMP, APACHE2TRIAD etc.
If you are planning to step into web programming then start from scratch. It’s best to compile Apache, PHP etc yourself with required modules for your machine but initially it looks like crap so you may download binaries from the websites. But, install each component of your web server separately. That’s the only way to learn in real terms.

Another thing, Perl is not a piece of cake. You should start from an easy to learn and time saving language like PHP. Although, PHP cant do all what Perl does, but again, you are a beginner.

Re: XAMPP and forms

ok, just PM'ed you the phpmail form.

Re: XAMPP and forms

^^He may not be ready to be up to that level yet. You are telling someone to learn Perl/PHP before he knows how to do forms.

Re: XAMPP and forms

nomaan! try this very simple script.


<?php
if( 

```php
%4$s

POST'Send']){
$name =

%4$s

POST'name'];
$from =

%4$s

POST'from'];
$msg =

%4$s

POST'msg'];
$mesg = "
Name: $name
EMail: $from
Message:
$msg
";

//replace "[email protected]" (below) with your email address

$sendmail = mail("[email protected]","Feedback from website",$mesg,"From: $name <$from>");
if($sendmail){
echo "Thank you!";
}else{
echo "Oops! Message coulndt be delivered.";
}
exit();
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">


Untitled Document



<form name="form1" method="post" action="<?php echo

%4$s

SERVER'PHP_SELF']; ?>">

name:



email:



message:








Re: XAMPP and forms

ignore the previous post.



<?php
if( 

```php
%4$s

POST'Send']){
$name =

%4$s

POST'name'];
$from =

%4$s

POST'from'];
$msg =

%4$s

POST'msg'];
$mesg = "
Name: $name
EMail: $from
Message:
$msg
";

//replace "[email="[email protected]"][email protected]" (below) with your email address

$sendmail = mail("[email="[email protected]"][email protected]","Feedback from website",$mesg,"From: $name <$from>");
if($sendmail){
echo "Thank you!";
}else{
echo "Oops! Message coulndt be delivered.";
}
exit();
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">


Untitled Document



<form name="form1" method="post" action="<?php echo

%4$s

SERVER'PHP_SELF']; ?>">

name:



email:



message:








Re: XAMPP and forms

wth

ignore last two posts of mine.

ive uplaoded that, download nd unzip
http://www.pkdn.net/temp/contact.rar

Re: XAMPP and forms

… ignore the previous 3 posts :bailan:

Re: XAMPP and forms

could it be that the formmail.pl is not executable? i keep seeing that it has to be chmod'd to allow user to execute. is that the same case in windows? i'm assuming it is allowed by default ...

Re: XAMPP and forms

correct assumption.