![]() |
Re: php/forms/posting/I NEED HELP!!!!!!!!!
Quote:
|
Re: php/forms/posting/I NEED HELP!!!!!!!!!
Quote:
PHP Code:
PHP Code:
|
Re: php/forms/posting/I NEED HELP!!!!!!!!!
Quote:
I think XML would be a good storage method. Example: Code:
<quotes>Another option, I suppose, would be to use an INI-style storage method... though that could become problematic when new line characters are entered. This reminds me that in my previous code I failed to handle those by replacing them with <br /> .. along with doing a bunch of other cleaning that I would normally do, like check for JavaScript and deal with HTML entities. And that's where this whole thing can get much more complicated than it would normally need to be - security, user formatting features, ensuring HTML validation, etc.. This is what happens after using a database server like MySQL all the time. I'm having such a hard time trying to figure out a good, reliable storage method besides just dumping HTML into a file. |
Re: php/forms/posting/I NEED HELP!!!!!!!!!
Using XML would definatly open up more options but it means the data has to be parsed and i have only ever done a little XML and PHP together. As for the problem with using the "|" charcter there is a simple solution. The PHP explode function uses a string, just pick something nobody will ever uses suck as "a2ufjf94u". It might not look pretty in you data file but it will do the trick.
|
Re: php/forms/posting/I NEED HELP!!!!!!!!!
Quote:
Looks like using XML could actually work, but I haven't tried using this yet. If I'm not doing anything tommorow (and possibly later tonight) I think I may want to play around with that. Yay for learning (kind of) how to do new things. |
Re: php/forms/posting/I NEED HELP!!!!!!!!!
The code from the last page works at http://www.khsfirst.com/insert.php , but it only records one message.
|
Re: php/forms/posting/I NEED HELP!!!!!!!!!
and theres some extra stuufffffff at the bottom
|
Re: php/forms/posting/I NEED HELP!!!!!!!!!
Quote:
On this line in insert.php: PHP Code:
I also noticed that there looks to be some RTF stuff in there.. did you create this file with Wordpad? You can probably just delete it, the script will recreate the file when a quote is submitted. As much as I don't want to admit it.. I actually did a pretty sloppy job on this. I will work on improving it sometime during this weekend. |
Re: php/forms/posting/I NEED HELP!!!!!!!!!
Might want to fix this http://www.khsfirst.com/quotes.php. Its looks like a mess. Also, the .dat is still being overwritten.
|
Re: php/forms/posting/I NEED HELP!!!!!!!!!
where do i put quotes(" ") in the code so that they will show up around the quote on quotes.php?
|
Re: php/forms/posting/I NEED HELP!!!!!!!!!
and can i have a href in the part where it says "thanks, your quote has been submited", or have it automaticly rediect to the quotes.php page?
|
Re: php/forms/posting/I NEED HELP!!!!!!!!!
Quote:
PHP Code:
Quote:
PHP Code:
|
Re: php/forms/posting/I NEED HELP!!!!!!!!!
Every time a ( ' ) is used, like in I'm theres a slash to.
|
Re: php/forms/posting/I NEED HELP!!!!!!!!!
Quote:
PHP Code:
PHP Code:
|
Re: php/forms/posting/I NEED HELP!!!!!!!!!
yup that code worked, only two questions is there any way of limiting the words, not the amount, but like not allowing "$@#$@#$@#$@#" to be posted?
And, is there any way to send me an email that says there was a post? |
| 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