@@ -0,0 +1,818 @@
+#!/usr/bin/env python%0Aimport cgi%0A%0Aprint %22Content-type: text/html%5Cn%5Cn%22%0A%0A%0Aform = cgi.FieldStorage()%0A%0Apitch = form.getfirst(%22pitch%22, %220%22) # get the form value associated with form%0A                               # name 'x'.  Use default %220%22 if there is none. %0Ayaw = form.getfirst(%22yaw%22, %220%22) # similarly for name 'y'%0A%0Apitch_yaw = (int(pitch),int(yaw))%0A%0Atry:%0A    with open('temp.dat','w') as f:%0A        f.write(str(pitch)+'%5Cn')%0A        f.write(str(yaw)+'%5Cn')%0Aexcept IOError:%0A    print %22IOError%22%0A    pass%0A%0A%0Aprint pitch + %22 %22 + yaw # Return to the webpage the values read%0A%0A# # To read the file%0A# try:%0A#     with open('/Users/Guest/Sites/temp.dat','r') as f:%0A#         data1 = f.readline()%0A#         data2 = f.readline()%0A# except IOError:%0A#     print %22IOError%22%0A#     pass        %0A# data1 = int(data1)%0A# data2 = int(data2)    %0A

Create pitch_yaw.py