- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
5 Posted Topics
Instead of using a text (.txt) file, I would suggest you make it an html file, so you easily format it using a table, applying td's in between each column. I guess you can go about that.
I hope you are writing this data to an .htaccess file...
If it's really that big, downloading the entire CONTENT (food matched against subfoods, matched against subsubfoods) could make downloading the page quite slow. The way out: Use Ajax (Simply put, Javascript used such that [in this instance], when a user selects a food, a request is sent to a php …
Someone had a similar problem. Try this link: [URL="http://forums.codehouseng.com/viewtopic.php?f=16&t=75&p=134#p134"]http://forums.codehouseng.com/viewtopic.php?f=16&t=75&p=134#p134[/URL]
You are not escaping your data correctly. Copy this escaping function from [URL="http://forums.codehouseng.com/viewtopic.php?f=16&t=76&start=0"]http://forums.codehouseng.com/viewtopic.php?f=16&t=76&start=0[/URL]. Then replace your line (and other similar lines) thus: $username = addslashes(strip_tags($_POST['username']))=> $username = cleanup($_POST['username'], true);
The End.
_coder