using cgi.lsp

Q&A's, tips, howto's
Locked
tom
Posts: 168
Joined: Wed Jul 14, 2004 10:32 pm

using cgi.lsp

Post by tom »

Hey guys,

I made a simple html form text field that creates an page on my newlisp wiki, but it only works if the imput is a single word. I'm having trouble converting "this string" to "this_string"
I've tried a few different things with no success.

any ideas?

thanks.

eddier
Posts: 289
Joined: Mon Oct 07, 2002 2:48 pm
Location: Blue Mountain College, MS US

Post by eddier »

Try the following

Put a replace around whatever accesses the URL field. That is ...

Code: Select all

(replace " " (whatever gets the URL field) "_")
Eddie

Locked