![]() |
Re: php/forms/posting/I NEED HELP!!!!!!!!!
Quote:
PHP Code:
|
Re: php/forms/posting/I NEED HELP!!!!!!!!!
Yea, definatly fix that. I didnt really thing about security as i dont even know if he has PHP or if he is even going to use the code. If he is then with all SQL statements YOU MUST CHECK FOR INJECTION VULNERABILITIES. Its not cool. There are lots of features and fixes the code could use, i mean i wrote it quickly during class.
|
Re: php/forms/posting/I NEED HELP!!!!!!!!!
Quote:
By the way.. you're not the only one who likes to write things quickly during class. In history class I once wrote a simple math game (I was bored, don't ask).. although it didn't turn out all that great. |
Re: php/forms/posting/I NEED HELP!!!!!!!!!
![]() |
Re: php/forms/posting/I NEED HELP!!!!!!!!!
I looked at your webhost and they have PHP. Make a file called "junk.php" and in it write
PHP Code:
|
Re: php/forms/posting/I NEED HELP!!!!!!!!!
its version 4.3.4 heres the link
|
Re: php/forms/posting/I NEED HELP!!!!!!!!!
Ok, thank you. If you have any questions setting it up just ask.
|
Re: php/forms/posting/I NEED HELP!!!!!!!!!
Quote:
I'll see if maybe I can write some code up for this later today. |
Re: php/forms/posting/I NEED HELP!!!!!!!!!
On the WebRyders website is shows that all hosting plans come with a database. I wonder why you dont have any.
|
Re: php/forms/posting/I NEED HELP!!!!!!!!!
Maybe because its old and we probably got it for free.
|
Re: php/forms/posting/I NEED HELP!!!!!!!!!
Ok, if i were you i would see if you could get databases becuase they can be used for so much. If not, then use a text file.
|
Re: php/forms/posting/I NEED HELP!!!!!!!!!
When it comes to this (text file) I have no clue what to do.
|
Re: php/forms/posting/I NEED HELP!!!!!!!!!
Basicly i would say this. Write each post to a line in the file. Use a "|" between the users name, email, post, post number, etc (whatever info you need saved). Then just read in each line, expode the string by "|". And then echo is out. Ill post some code shortly.
|
Re: php/forms/posting/I NEED HELP!!!!!!!!!
Well here's a simplistic example (I have tested it for about 45 seconds, it seems to work). It takes the quote submitted and writes HTML to a text file, and then on the quote view page all it does is read that text file and output all of the HTML in it.
I would also like to add that I haven't really put in any error handling yet for the most part (I've only been working on this for about 10 minutes). Anyway, here it is. insert.php - This allows the user to enter their quote. PHP Code:
PHP Code:
If you need any more help with this, don't hesitate to ask. |
Re: php/forms/posting/I NEED HELP!!!!!!!!!
This code isnt very portable. Say they do a site resign all the posts would have to be manually redone becuase you saved all html and not just the pure data. I think that my way is more portable. Ill scrap together some code soon.
|
| All times are GMT -5. The time now is 22:59. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi