Search found 6 matches

by fraga
Sun Jun 07, 2009 8:37 am
Forum: PHP - Code
Topic: Storing data from form into txt file and reading
Replies: 11
Views: 872

Re: Storing data from form into txt file and reading

oh. Then you're not creating a text file... you're creating an html file? Again, just simply modify your code so that before each word it inserts <li> and after, </li>. In otherwords: open file for writing write "<ul>"; loop through form input:   write "<li>" . $_POST['input'] ....
by fraga
Thu Jun 04, 2009 8:35 am
Forum: PHP - Code
Topic: Storing data from form into txt file and reading
Replies: 11
Views: 872

Re: Storing data from form into txt file and reading

Chalks wrote:If you're looking to sort data alphabetically, that's a whole different topic. To get you started though, check out php sort
not by alphabethicaly than i want to create a list... with dots before every word
by fraga
Thu Jun 04, 2009 8:09 am
Forum: PHP - Code
Topic: Storing data from form into txt file and reading
Replies: 11
Views: 872

Re: Storing data from form into txt file and reading

ahahhah its a test page no porn... i soolved the prob thkss You'll definitely want to look into that though. If my workplace blocks it for that reason, I would not be surprised if other places do too. Send a strongly worded message to your host and ask them what's up. Unless, of course, you actuall...
by fraga
Thu Jun 04, 2009 7:56 am
Forum: PHP - Code
Topic: Storing data from form into txt file and reading
Replies: 11
Views: 872

Re: Storing data from form into txt file and reading

hmm go to here,and enter your name in form and then click submit and then click on link(im using your code): http://iphonemania.host22.com/htmldio.html I need that to be each name in a new line!!! woah. My workplace blocks that website for "pornography"... a warning would be nice (or my w...
by fraga
Thu Jun 04, 2009 7:37 am
Forum: PHP - Code
Topic: Storing data from form into txt file and reading
Replies: 11
Views: 872

Re: Storing data from form into txt file and reading

  $fh = fopen("filename.txt", "r"); while(!feof($fh)) {     echo fgets($fh); } fclose($fh);   You should read the file line by line. hmm go to here,and enter your name in form and then click submit and then click on link(im using your code): http://iphonemania.host22.com/htmldio...
by fraga
Thu Jun 04, 2009 5:13 am
Forum: PHP - Code
Topic: Storing data from form into txt file and reading
Replies: 11
Views: 872

Storing data from form into txt file and reading

Ok... i have a task to create a script that will Store data from html form into .txt file(every in a new line so later it could read everything in a new line) and then in a next page it will read from that txt file and sort everything in a list <ul> <li></li></ul> i can give you code that I have cre...