Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

add.cgi does nothing except reload.

Quote Reply
add.cgi does nothing except reload.
Maybe I am crazy ... but Links 2.0 is working fine except for the add.cgi file, no errors or anything it simply reloads itself after you attempt to submit a file. It does not write to the database.

thanks in advance for the help.

------------------
byron jackson
Quote Reply
Re: add.cgi does nothing except reload. In reply to
As mentioned in other Threads...

Check for the following:

1) You have uploaded the Mailer.pm file in your /cgi-bin/links directory.

2) Make sure that you have properly configured your sendmail or smtp variables in the links.cfg file.

3) Make sure you are using the following codes for your SUBMIT input field:

Code:
<input type="text" name="process_form" value="Add Site">

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------







Quote Reply
Re: add.cgi does nothing except reload. In reply to
Eliot,

thanks for the suggestions ... none of this worked, however some how I did enter the wrong SENDMAIL path in the CFG. I changed the form from a POST to a GET and now it works. Does this matter? ... I had forgotten that I had to replace all POSTs to GET .. I do not know why the forms with not work with POST.

To anyone else having this problem, try to use GET instead of POST and maybe that will cure your problem.

------------------
byron jackson
Quote Reply
Re: add.cgi does nothing except reload. In reply to
Uh...yea!

GET = get data from file.
POST = put data into file or send data

One of the basics of Perl.

Wink

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------







Quote Reply
Re: add.cgi does nothing except reload. In reply to
Eliot,

so if GET only means to get data .. then why does my add.cgi now work correctly with a GET for the form instead of a POST? Maybe our server is screwed up or something ..



------------------
byron jackson
Quote Reply
Re: add.cgi does nothing except reload. In reply to
Your server is screwed up.

Search perl.com or other perl document sites for more information on form methods.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------