Is it possible to capture a .php from a website?

legocitytruck

Senior member
Jan 13, 2009
294
0
0
I know it's possible to view and save the the html from a website. If the website references a .php file, is it possible to view and save that also?
 

legocitytruck

Senior member
Jan 13, 2009
294
0
0
Hmm, are there any places online that provide the html for a comment box for a website and the php file for your hosting service?
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
I'm sure you could find examples but how you want to implement the comments will determine what you need to do. Displaying a text box and a submit button is really simple, but doing something with that text is what you would have to decide. Do you want to just jam it all in a txt file on the server, commit them to a database, email them to someone, etc?
 

legocitytruck

Senior member
Jan 13, 2009
294
0
0
I'd like to collect the person's name and comment and then display both on the website. I'm not looking for anything advnced such as smilies, swear block out, spelling correction, or so on.
 

boran

Golden Member
Jun 17, 2001
1,526
0
76
legocitytruck, definetly look up how to sanitize your user input. otherwise you will be overwhelmed by spam and virus droppers.
 

legocitytruck

Senior member
Jan 13, 2009
294
0
0
Thanks Boran, is there code avaialable for doing this?

in the mean time, how should the SQL file be saved? I'd like to try to get it working properly before addng extras.
 

boran

Golden Member
Jun 17, 2001
1,526
0
76
legocitytruck, I do not know php, I would suggest finding some tutorials. google will definetly turn up results if you look for "php input sanitation".