473,386 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

PHP and Windows INI files

Are there any PHP scripts for handling windows style INI files

ie

[section]
one = great
two=not very good
etc
[next section]

Also how do you handle multi-selects from an input field on a form

The brain is getting too old to work it out myself !!!

Thanks

Tim
Jul 17 '05 #1
4 1350
mosscliff wrote:
Are there any PHP scripts for handling windows style INI files

http://www.php.net/manual/en/functio...e-ini-file.php
Also how do you handle multi-selects from an input field on a form


<select name="multiple_select" multiple="multiple">
<option value="value">label</option>
<option value="value2">label2</option>
<option value="value3">label3</option>
</select>

foreach ($_POST['multiple_select'] as $key => $value) {
...
}
JW

Jul 17 '05 #2
Many thanks, now I have no excuses, for not finishing, this weekend.
I am a bit in the dark with regard to the key => value construct, but
I will give your solution a try and see what prints.

As an aside, Is it best to use print or echo with PHP. If only
because it is one less character to parse, I wondered about using echo
always. I know about the short version, but would prefer to use the
full word for better documentation.

Thanks Again

tim

"Janwillem Borleffs" <jw@jwscripts.com> wrote in message news:<42**********************@news.euronet.nl>...
mosscliff wrote:
Are there any PHP scripts for handling windows style INI files


http://www.php.net/manual/en/functio...e-ini-file.php
Also how do you handle multi-selects from an input field on a form


<select name="multiple_select" multiple="multiple">
<option value="value">label</option>
<option value="value2">label2</option>
<option value="value3">label3</option>
</select>

foreach ($_POST['multiple_select'] as $key => $value) {
...
}
JW

Jul 17 '05 #3
Janwillem Borleffs wrote:
mosscliff wrote:

<snip>
Also how do you handle multi-selects from an input field on a form


<select name="multiple_select" multiple="multiple">

^^^^^^
Should be <select name="multiple_select[]" multiple="multiple">
http://in.php.net/faq.html#faq.html.select-multiple

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ken Lindner | last post by:
I have a need to become familiar with SQL Server 2000 for work. Needless to say I am new to SQL Server any version, but not IT in general. My employer has provided me with the SQL Server 2000...
4
by: Abhishek Srivastava | last post by:
Hello All, Many people ask this question. I have installed .Net framework I wrote a program but I can't find csc.exe. I have to tell them that it is inside windows directory. But I myself don't...
6
by: Charles Neitzel | last post by:
I'm trying to write a windows application in C# (Using Microsoft Visual C# 2005 Express) that is nothing more than a simple UI with buttons on it. The buttons do various things like running...
1
by: Charles | last post by:
I'm trying to write a windows application in C# (Using Microsoft Visual C# 2005 Express) that is nothing more than a simple UI with buttons on it. The buttons do various things like running...
3
by: Chris Paul | last post by:
I'm having trouble with PHP & PostgreSQL/OpenLDAP/Apache on Windows. I've set this up countless times on BSD (piece of cake) but I'm trying to do this on Windows now so that my developer can work...
12
by: pac | last post by:
I'm preparing to distribute a Windows XP Python program and some ancillary files, and I wanted to put everything in a .ZIP archive. It proved to be inordinately difficult and I thought I would...
2
by: zacks | last post by:
I use some shareware CD/DVD burning software that has a command line interface version. This allowed me to write my own custom SDK that performs various CD/DVD burning operations from my own VB.NET...
10
by: dermot | last post by:
I have wrriten a small windows service application in visual studio ..net 2003 which listens for incoming FTP files. These files would overwrite over time due to duplicate file names. However any...
2
by: =?Utf-8?B?SnJ4dHVzZXIx?= | last post by:
I just started using Windows Live OneCare, I had been using Norton, but was unable to fix the problems I was having. I have yet been unsuccessful with OneCare as well. I keep getting the same...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.