Nov-30-2018, 05:53 PM
Morning,
I am doing an assignment for class and the teacher doesnt get on to check forum questions till 1800-2200 at night and i dont have time to wait for her help since this is an online class.
Im having an issue with my hyperlink in my code. When i get The Python program to run everything goes smooth and gets posted to my Blog web page that we are doing but the instructor wants the hyper link when clicked to open the .py file for the program. When you click on the hyperlink nothing happens, but when you right click and hit save as you are able to save it. Can someone help me with this. Code is below. I have taken out the raw_input commands that go along with it so if they are required please let me know. I saw some where that it wasrequeted that we take them out while posting the code.
Thank you
I am doing an assignment for class and the teacher doesnt get on to check forum questions till 1800-2200 at night and i dont have time to wait for her help since this is an online class.
Im having an issue with my hyperlink in my code. When i get The Python program to run everything goes smooth and gets posted to my Blog web page that we are doing but the instructor wants the hyper link when clicked to open the .py file for the program. When you click on the hyperlink nothing happens, but when you right click and hit save as you are able to save it. Can someone help me with this. Code is below. I have taken out the raw_input commands that go along with it so if they are required please let me know. I saw some where that it wasrequeted that we take them out while posting the code.
Thank you

def addPost(postTitle, postDesc, postFile): file=open("c:\inetpub\wwwroot\iisstart.htm","a") file.write("""<p>NewData using variable inputs"""+postTitle+"""</p>""") file.write("""<p>Description: """+postDesc+"""</p>""") file.write("""<a href="./reports/"""+postFile+"""">"""+postFile+"""</a>) file.close()