| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Member Join Date: Jun 2005
Posts: 27
![]() | Write txt I have have 3 dropdown menus and 2 text fields that i want to write the value to a txt file. The value of the objects is the same as the text above it. ex. year = year ![]() the fromat of the text file is Code: year~month~day~event~link Code: 2005~8~3~Ted's birthday~http://ted.piczo.com/party |
| |
| | #3 (permalink) |
| Senior Member Join Date: Jul 2005 Location: NJ
Posts: 1,219
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | im assuming ur using the method="post" in ur form. so anyway, heres wut u put in the page the action links to PHP Code: get someone to look over it, the script mite have bugs i didnt go thru it and my keyboard sucks lol.
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated! |
| |
| | #7 (permalink) |
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,074
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | if the date is going to be used for something it would also be a good idea to make sure it is a valid date, for example make sure someone doesnt enter the 31st of feb.
__________________ Manage your portfolio using my new Domain Portfolio Management script. Securing Your Domain Name From Theft |
| |
| | #8 (permalink) |
| Senior Member Join Date: Jul 2005 Location: NJ
Posts: 1,219
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | well if u want to get rid of the extra ~, thats gonna make the code a lot more complicated, i think. it wud be easier to just add a "none" choice or type that in.
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated! |
| |
| | #13 (permalink) |
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,074
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | /r is a carriage return and /n is a new line.
__________________ Manage your portfolio using my new Domain Portfolio Management script. Securing Your Domain Name From Theft |
| |
| | #15 (permalink) |
| Eating Pie Join Date: Nov 2004 Location: Canada
Posts: 2,267
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Here is fixed code PHP Code: PHP Code:
__________________ I feel old.
Last edited by iNod; 08-24-2005 at 04:10 PM.
|
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Free txt messages (uk & us) | liam_d | Free Resources | 0 | 07-04-2005 01:58 AM |
| Could someone at NP write a guide? | Ringr | Domain Newbies | 1 | 11-27-2004 09:45 AM |
| 10 Auctions: TXT Files | e39m5 | The Break Room | 23 | 05-25-2004 01:53 PM |
| Write an article ...Go on! | trenton | Website Development | 2 | 03-26-2004 01:57 PM |