Gossamer Forum
Home : Products : Links 2.0 : Customization :

Add confirmation mod : question about ASCII error

Quote Reply
Add confirmation mod : question about ASCII error
Hello

i've got a question about transfer of Add confirmation mod's files,

When I uploaded the 2 files : add_confirmation.html and add.cgi in ASCII with Cuteftp 3 ou WS-FTP, i've got the following error :

Warning! X bare linefeeds received in ASCII mode!
File may not have transferred correctly.

The mod seems to works fine, so :
is the error message important, or can I go on to work with this new add.cgi?

Thanks Laugh

Oups, have got a little question too,
i've added hidden value in add_confirm.html, like :
<INPUT TYPE="Hidden" NAME="Priority" VALUE="<%Priority%>">

Should I put hidden values in add_error.html too?
I think not, but i'm not sure Tongue

Thanks again

Quote Reply
Re: Add confirmation mod : question about ASCII error In reply to
In Reply To:
The mod seems to works fine, so :
is the error message important, or can I go on to work with this new add.cgi?
Make sure that you have .cgi specified as ASCII transferable files.

In Reply To:
Oups, have got a little question too,
i've added hidden value in add_confirm.html, like :
<INPUT TYPE="Hidden" NAME="Priority" VALUE="<%Priority%>">

Should I put hidden values in add_error.html too?
I think not, but i'm not sure
Yes...you need to add this hidden field and other hidden fields in the following template files:

Code:

add.html
add_error.html
add_confirm.html


If you don't, then the parameters will be passed with no value and the values you have in @add_system_fields array in the links.cfg file will take over.

Regards,

Eliot Lee

Quote Reply
Re: Add confirmation mod : question about ASCII error In reply to
Hello Eliot,
Thanks a lot for your reply Laugh

In Reply To:
Make sure that you have .cgi specified as ASCII transferable files.
I don't have any problem with other .cgi,
and i've got the same error with add_confirm.html.
I'll check what U told me.

In Reply To:
If you don't, then the parameters will be passed with no value and the values you have in @add_system_fields array in the links.cfg file will take over.
Thanks for all the explanation, you're a very cool man Laugh

Ciao


Quote Reply
Re: Add confirmation mod : question about ASCII error In reply to
You're welcome.

Regards,

Eliot Lee

Quote Reply
Re: Add confirmation mod : question about ASCII error In reply to
Try this.

Change in the templates add.html and add_failure.html, change

<input type="SUBMIT" value="Add Resource">

to

<input type="SUBMIT" name="process_form" value="Add Resource">

Regards,

Nuno Duque
--------------------
Macau Search Engine
inmacau.com