Go Back   PCMech Forums > Help & Discussion > Internet, Web Applications, & The Cloud

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 09-07-2007, 01:04 PM   #1
just a tech
 
ssahl's Avatar
 
Join Date: Jul 2001
Location: central valley CA
Posts: 1,409
Forms

I'm trying to use a Forms page that will send 4 fields of data to an email address.
like name, phone, email
very simple
I thought I had everything setup right, but on the site, when you click on the submit button it brings up 'page cannot be found' with the added address to domain
--WEBBOT-SELF--

does this mean I need to setup some kind of extension on the server?
ssahl is offline   Reply With Quote
Old 09-07-2007, 10:08 PM   #2
just a tech
 
ssahl's Avatar
 
Join Date: Jul 2001
Location: central valley CA
Posts: 1,409
Ok, I now see that the problem is because Microsoft FrontPage extensions are not installed on the server, which is unix based so I have a problem. What I'm trying to do is to have a Forms page that will take 4 text entry's and email that information to an email address. Can someone help me out and tell me what would be some good software that I can use to do this? I'm pretty sure that I can setup CGI on the server, and the information from the Forms page is very simple, name, age, phone, email.
If there is an easier way to do this aside from using CGI I'm open for other suggestions too. I'm no super webmaster, but I wouldnt think this would be to hard to do. I'd like to have this done by monday morning so my boss isnt mad at me! So please HELP!
and thanks in advance.
ssahl is offline   Reply With Quote
Old 09-07-2007, 10:14 PM   #3
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
Here is a nice AJAX version.
__________________

Want to Make $$$$ with your Computer? No Risk! Simply press shift-4 four times in a row
mairving is offline   Reply With Quote
Old 09-08-2007, 01:11 AM   #4
just a tech
 
ssahl's Avatar
 
Join Date: Jul 2001
Location: central valley CA
Posts: 1,409
ok, I looked at it, there is almost nothing for help/documentation on that.
The only thing is says is to upload the unzipped directory to your website, and change 4 lines in each of the 2 scripts.

Me being the noob that I am I need more help then that! LOL

first question

Since it looks like ajax uses php
how can I tell if my ftp server has php installed/enabled

the only directory's on the server are the 2 for each domain that it's hosting, and one more 'apache2-default'

then another thats not really a directory that says 'analog'

If php is not already on the server and needs to be installed/enabled physically while at the server, then I have no more questions till monday.
ssahl is offline   Reply With Quote
Old 09-08-2007, 04:25 PM   #5
just a tech
 
ssahl's Avatar
 
Join Date: Jul 2001
Location: central valley CA
Posts: 1,409
ok, the server has the following after this directory

/usr/share

php5
perl5
perl
mailx

then in this directory

/usr/share/perl/5.8.8

there are several other directory's, like

CGI
Class
PerlIO
Search
User
Text
File

will the ajaxContact still work, would I have to change the .php to .php5
where should I put the unzipped ajaxContact.zip directory?

I was also looking at a program called form2emal.net script which uses a form.htm page and also a thankyou.htm page along with the form2email.pl file

I think I can probably manage editing the script file, but where would I put the above 3 files? (the 2 .htm pages and the .pl script file)

Man, I hate to sound stupid, but am I getting close?

It's not that I cant figure this all out, I'm not so old that I cant learn new things LOL

It's just that I cant learn it fast enough! Fast enough for my boss anyway.
ssahl is offline   Reply With Quote
Old 09-09-2007, 03:21 AM   #6
just a tech
 
ssahl's Avatar
 
Join Date: Jul 2001
Location: central valley CA
Posts: 1,409
whew! nevermind, I finally got it working. Thanks anyway, I was able to get it working, so now all is well.
at least tell next week when they want me to add some streaming video or something like that.
LOL
ssahl is offline   Reply With Quote
Old 09-29-2007, 08:17 PM   #7
Member (7 bit)
 
Join Date: Dec 2005
Posts: 87
Quote:
Originally Posted by ssahl
Ok, I now see that the problem is because Microsoft FrontPage extensions are not installed on the server, which is unix based so I have a problem. What I'm trying to do is to have a Forms page that will take 4 text entry's and email that information to an email address. Can someone help me out and tell me what would be some good software that I can use to do this? I'm pretty sure that I can setup CGI on the server, and the information from the Forms page is very simple, name, age, phone, email.
If there is an easier way to do this aside from using CGI I'm open for other suggestions too. I'm no super webmaster, but I wouldnt think this would be to hard to do. I'd like to have this done by monday morning so my boss isnt mad at me! So please HELP!
and thanks in advance.
It is a easy fix in PHP. But you you will need to update it down the line if you start getting hit with spam.

HTML file:
HTML Code:
<form action="mail.php">
<input type="text" name="name">
<input type="text" name="address">
<input type="text" name="email">
<input type="text" name="phone">
</form>
Seperate PHP file called "mail.php"

PHP Code:
<?php
$name
=$_POST['name'];
$address=$_POST[address];
$email=$_POST['email'];
$phone=$_POST['phone'];

$to="youremail@server.com";
$subject="New Mail from Site!";
$message=$name.' '.$address.' '.$email.' '.$phone;


mail($to,$subject$message);
?>

If you need more help, email me at bernard_web@hotmail.com.
hartken is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Online forms acting as mailto jozsefs Internet, Web Applications, & The Cloud 6 06-19-2007 04:56 PM
Perl/xhtml forms not processing unicode.... MikieNes Web Design / Development 0 09-26-2006 12:11 PM
Connecting Forms in Visual Foxpro 6.0 Benjie Solleza Web Design / Development 0 01-14-2004 11:44 PM
ASP and MS Access forms Waks Web Design / Development 7 05-01-2002 07:46 AM
Acrobat Reader/Saving forms to Insert Text? lovesranch Software Discussion & Support 6 12-24-2001 05:48 PM


All times are GMT -5. The time now is 11:59 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2