Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
how to put Form in web page
Old 09-22-2007, 08:01 AM how to put Form in web page
Average Talker

Posts: 18
Name: sorocco
Trades: 0
hi ,
I am nubee ..dont know much about HTML and all .but any how managed my web site Up and running ..now i need to put feedback form in my web page pls any guide me ..i have gone through google and found a tuto. followed but still getting some kind of errors..( var/log/httpd/errors_log

[Sat Sep 22 15:33:32 2007] [error] [client 192.168.2.2] (8)Exec format error: exec of '/var/www/cgi-bin/mailme/mailme.cgi' failed
[Sat Sep 22 15:33:32 2007] [error] [client 192.168.2.2] Premature end of script headers: mailme.cgi

what i did is..created a file named as mailme.cgi and placed it in cgi.bin ..of course changed the permission to 755 but no run.
I can see the test page by running cgi-bin/test.cgi ..

when i tried to run it from command promt it throws error as ..

[root@serv admin]# cd /var/www/cgi-bin/mailme; ./mailme.cgi
./mailme.cgi: line 1: syntax error near unexpected token `newline'
./mailme.cgi: line 1: `<FORM action="/cgi-bin/mailme/mailme.cgi" method="post">'
[root@serv mailme]#

As it says sysntex error but its almost same as what i found on tutorial.(just copied and pasted)
Is there any otherway to do this ..
pls advice ..Thanks
soroccoheaven is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-22-2007, 10:16 AM Re: how to put Form in web page
coolkbk585's Avatar
Be good this Christmas!

Latest Blog Post:
KBlog has been deativated
Posts: 642
Name: Kyle
Location: Ada, MI
Trades: 0
Well, there are web sites (such as MailManiac, MyContactForm, Freedback, etc.) that will allow you to create a form and then take the code that they give you.

It makes it pretty easy for people that don't know how to make a contact script.
__________________
<?php if($Adsense_Revenue > 0): define('HAPPINES','100%'); else: define('HAPPINESS', '0%') endif; ?>
coolkbk585 is offline
Reply With Quote
View Public Profile Visit coolkbk585's homepage!
 
Old 09-22-2007, 11:51 AM Re: how to put Form in web page
Average Talker

Posts: 18
Name: sorocco
Trades: 0
Thanks for repplying..

well i have dome something by followinghttp://www.yourhtmlsource.com/cgi/processingforms.html

created a feedback.html file and feedback.cgi file with perl ..changed the permission on cgi-bin directory and the feedback.cgi...but when i fired the feedback.html in browser i am getting error like..

"Forbidden You don't have permission to access /feedback.cgi on this server."

i placed the feedback.html in root directory and feedback.cgi in cgi-bin directory .i can see the feedback.html file from browser..but after putting text in the form when i click on submit query i get those error..

also i am getting error by /var/log/httpd/error_log
[Sat Sep 22 21:04:27 2007] [error] [client 192.168.2.2] Options ExecCGI is off in this directory: /var/www/html/feedback.cgi, referer: http://serv.lin.ald/feedback.html
[Sat Sep 22 21:16:49 2007] [error] [client 192.168.2.2] Options ExecCGI is off in this directory: /var/www/html/feedback.cgi, referer: http://serv.lin.ald/feedback.html

what could it be ..pls advice ..
thanks

Last edited by soroccoheaven; 09-22-2007 at 11:54 AM..
soroccoheaven is offline
Reply With Quote
View Public Profile
 
Old 09-22-2007, 12:04 PM Re: how to put Form in web page
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
In the apache configuration file you have to have the following set on your cgi directory

Code:
<Directory /var/www/cgi-bin/>
    Options +ExecCGI -Indexes
    SetHandler cgi-script
    AddHandler cgi-script .pl .cgi
</Directory>
joder is offline
Reply With Quote
View Public Profile
 
Old 09-22-2007, 12:09 PM Re: how to put Form in web page
Average Talker

Posts: 18
Name: sorocco
Trades: 0
which configuration file ?...
soroccoheaven is offline
Reply With Quote
View Public Profile
 
Old 09-22-2007, 12:17 PM Re: how to put Form in web page
Average Talker

Posts: 18
Name: sorocco
Trades: 0
ok.. i have got two entries as in /etc/httpd/conf/commonhttpd.conf, Directory /var/www/cgi-bin and other is as Directory /var/www/protected-cgi-bin

<Directory /var/www/cgi-bin>
AllowOverride All
Options ExecCGI
<IfModule mod_access.c>
Order allow,deny
Allow from all
</IfModule>
</Directory>

<Directory /var/www/protected-cgi-bin>
AllowOverride All
Options ExecCGI
<IfModule mod_access.c>
Order deny,allow
Deny from all
Allow from 127.0.0.1
#allow from .your_domain.com
</IfModule>
</Directory>

Last edited by soroccoheaven; 09-22-2007 at 12:20 PM..
soroccoheaven is offline
Reply With Quote
View Public Profile
 
Old 09-22-2007, 12:19 PM Re: how to put Form in web page
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
Apache. Do a search for httpd.conf or apache2.conf
joder is offline
Reply With Quote
View Public Profile
 
Old 09-22-2007, 12:57 PM Re: how to put Form in web page
Average Talker

Posts: 18
Name: sorocco
Trades: 0
Thanks again for you prompt repply..
now ..its working problem was with feedback.html for declaring the location for feedback.cgi....now the form can be submited and i see the 'thank you " page..which confirms the message has beem delivered ..but it isnt available/going to my Inbox....i have configured postfix and it is working for lan users only ..even lan user can access it from web too..but no one else ..and this site is also on the same machine ..what i did is all the submitted feedback is requested to come to me postfix account (i am the administrator, superiser )...for this i have made changes in feedback.cgi (print MESSAGE "To: xavian\@monaman.lin.ald\n"; # Don't forget to escape this @ symbol!
)is ti ok..????....and in postfix error log i am getting error like ..
Sep 22 22:09:23 serv postfix[10410]: error: to submit mail, use the Postfix sendmail command
Sep 22 22:09:23 serv postfix[10410]: fatal: the postfix command is reserved for the superuser
soroccoheaven is offline
Reply With Quote
View Public Profile
 
Old 09-22-2007, 01:15 PM Re: how to put Form in web page
Average Talker

Posts: 18
Name: sorocco
Trades: 0
well,
I am getting confused about this line..

print MESSAGE "To: xavion\@monaman.lin.ald\n"; # Don't forget to escape this @ symbol!

what it mean's do ihave to write it like this :To:xavian\monaman.lin.ald\n" or like "To:xavion@monaman.lin.ald pls advice ..

tahnks
soroccoheaven is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to how to put Form in web page
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.46230 seconds with 12 queries