"Ryan" <[EMAIL PROTECTED]> wrote

>I am running a Linux box and cannot find my Apache cgi-bin to put 
>some
> python scripts in. I know I probably have to create one but don't 
> know
> where and how.

I think there are several places that you can create cgi-bin depending
on how you configure apache. But the place I usually see it is 
directly
under the apache root directory - ie the one that is equivalent to / 
in
the url.

> everything works fine except:
>
> form = cgi.FieldStorage()
>
> #This is where everything goes wrong
> #I get error messages for either the lastname line or firstname

Can you tell us
a) exactly what error messages and
b) How you are invoking the script - where are the values
supposed to be coming from?

> lastname = form['lastname'].value
> firstname =form['firstname'].value
> message = firstname + " " + lastname
> print reshtml % message

HTH,


-- 
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld 


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to