Re: [Tutor] Form values

2009-07-17 Thread Rich Lovely
2009/7/17 : > Hi, I am reading values from a form and writing them to a text file. I keep > getting > a syntax error for outfile=open("filename", "a")I cant see it, does any body > else. > > > fileName = "requests.txt" > # Create instance of FieldStorage > Form = cgi.FieldStorage() > > # Get dat

Re: [Tutor] Form values

2009-07-17 Thread Kent Johnson
On Fri, Jul 17, 2009 at 12:43 PM, wrote: > Hi, I am reading values from a form and writing them to a text file. I keep > getting > a syntax error for outfile=open("filename", "a")I cant see it, does any body > else. Indentation problems can cause mysterious syntax errors. Use a text editor that

Re: [Tutor] Form values

2009-07-17 Thread Emile van Sebille
On 7/17/2009 9:43 AM keith...@beyondbb.com said... Hi, I am reading values from a form and writing them to a text file. I keep getting a syntax error for outfile=open("filename", "a")I cant see it, does any body else. There isn't an error in the statement. Try to pare down your code to a sh

[Tutor] Form values

2009-07-17 Thread keithabt
Hi, I am reading values from a form and writing them to a text file. I keep getting a syntax error for outfile=open("filename", "a")I cant see it, does any body else. fileName = "requests.txt" # Create instance of FieldStorage Form = cgi.FieldStorage() # Get data from fields if Form and Form