Hello.
I have a problem with the newly introduced pg_result_seek() function.
Until PHP 4.3.0, when I had to iterate through one pg_query result many
times, I used the for loop:
$result = pg_query($db, $query);
// some outside loop
while ($whatever) {
for ($i = 0; $i pg_num_rows($result);
I need to redirect the browser to an external website and to automatically send POST
data to the site, without a form.
Basically I need header(Location: ...) - that is true redirection - with POST.
How can I do this with PHP ?
--
Faites un
You can do posts with curl
http://www.php.net/manual/en/ref.curl.php
olinux
--- arthur.chereau [EMAIL PROTECTED] wrote:
I need to redirect the browser to an external
website and to automatically send POST
data to the site, without a form.
Basically I need header(Location: ...) - that is
Hello
I parse the apache logfile and get a date format like this
[03/Feb/2003:09:22:50 +0100]
OK i split it with preg_match and the result is
Array
(
[0] = 03
[1] = Feb
[2] = 2003
[3] = 09
[4] = 22
[5] = 50
)
Now I'd like to convert it in a timestamp
with
hi,
how can i copy a file from web to my local disk?
http://www.xxx.com/xxx.gif
i try to get xxx.gif to my local disk...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Situation:
1) have a website with www.widexs.nl called www.webwabwob.nl
2) have a domainname with www.bulkregister.com and basicDNS service
3) have configured basicDNSservice of bulkregister to transfer to
www.webwabwob.nl
Problem:
All mail send to specific addressee ( [EMAIL PROTECTED] ) is
That double quote is escaped
[EMAIL PROTECTED] wrote:
On Fri, 31 Jan 2003, Marek Kilimajer wrote:
I use this:
$name=strtr( $name,
?*#$%^:+=/\,
__);
I'm hoping that double quote was a typo??
Ed
--
PHP General Mailing List (http://www.php.net/)
To
Are you using $_POST superglobal? You should use $_POST['CategoryName']
in findbycategory.php
Denis L. Menezes wrote:
Hello friends.
I have the following code :
The code works fine and the listbox is populated. But when I select a category and press the Search button, the variable
there is no php function for this, you can use unix command du or do it
in a loop
Antti wrote:
How do I get the directory size? Suppose there is a function for this.
antti
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
what you did should work (you must be root to change owner). You can use
-R switch to change owner recursively
Gurvinder Singh wrote:
hi
i create a php page dynamically in my php script. this page include one of
my other php file. when i run the newly created script i get this error
Warning:
That's right, but with curl it's not a true redirection: you just print the content of
the target page, you don't redirect to the page.
What I need is automated forms, that send the same data as forms but without user
interaction.
I can't use javascript to automatically send a form.
Hi,
I have spend several hours on the following issue, and I can't figure out
what I am doing wrong.
Consider the next function:
function CreateFileForRealPlayer () {
global $playlist;
$filename = $playlist[0]['url'];
header(Content-Type: audio/x-pn-realaudio;);
echo ($filename);
}
Hello,
On 02/03/2003 07:57 AM, Wmb wrote:
[EMAIL PROTECTED]: Name service error for MAIL.rtinsmetsers.com: Host not
found
Because there is no DNS record for the domain MAIL.rtinsmetsers.com .
--
Regards,
Manuel Lemos
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
At 11:39 3-2-03, you wrote:
what you did should work (you must be root to change owner). You can use
-R switch to change owner recursively
Gurvinder Singh wrote:
hi
i create a php page dynamically in my php script. this page include one of
my other php file. when i run the newly created script
Another template engine you could consider is Smarty http://smarty.php.net/.
One can write very elegant code using such an templating system
david
it is also good idea to separate html from the code, for instance by using
some template engine.
rush
--
PHP General Mailing List
what's wrong in this SQL line??
SELECT name FROM users WHERE email'[EMAIL PROTECTED]' (...)
I want every names, except people with an email @domaine.com...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
use like
SELECT name FROM users WHERE email not like '[EMAIL PROTECTED]'
On Monday 03 February 2003 13:05, Clement Noterdaem wrote:
what's wrong in this SQL line??
SELECT name FROM users WHERE email'[EMAIL PROTECTED]' (...)
I want every names,
no way without javascript
arthur.chereau wrote:
That's right, but with curl it's not a true redirection: you just print the content of the target page, you don't redirect to the page.
What I need is automated forms, that send the same data as forms but without user interaction.
I can't use
You must change the headers for the file so it is being downloaded.
Something like this:
header('Content-Type: GIF'); // not sure of this one
header('Content-Length: ' . filesize('file.gif'));
readon about strtotime() function
www.php.net/strtotime
you might not even need to preg_match() it
--
Maxim Maletsky
[EMAIL PROTECTED]
Torsten Rosenberger [EMAIL PROTECTED] wrote... :
Hello
I parse the apache logfile and get a date format like this
[03/Feb/2003:09:22:50 +0100]
php-general Digest 3 Feb 2003 13:19:58 - Issue 1861
Topics (messages 134069 through 134105):
Graphic Pie Charts
134069 by: Vernon
134073 by: Andrew Brampton
134083 by: michael kimsal
Re: Date and time problem
134070 by: Tom Rogers
134074 by: Larry E.
Chris Shiflett wrote:
--- Cditty [EMAIL PROTECTED] wrote:
A co-worker is teaching me to move to the next level
in php. I have started using associative arrays for my
scripts, but I am having a problem using them to do an
insert into MySQL. Can someone give me an example of
how to do an insert
-Original Message-
From: Chad Day [mailto:[EMAIL PROTECTED]]
Sent: 30 January 2003 19:29
I'm struggling with array_multisort, was hoping someone could
give me some
help.
I have a multidim array, such as:
$myarray[0][FIRSTNAME] = JOE
$myarray[1][FIRSTNAME] = TIM
On Sun, 2003-02-02 at 20:50, Tom Rogers wrote:
Hi,
Monday, February 3, 2003, 8:24:00 AM, you wrote:
BVB When creating an image using the image functions how do you control the
BVB type face size?
If you are using imagestring() the size is determined by the font number (1 - 5)
for
On Mon, 2003-02-03 at 08:51, Brian V Bonini wrote:
On Sun, 2003-02-02 at 20:50, Tom Rogers wrote:
never mind, I got it, I needed to specify a full path to the font file.
Hi,
Monday, February 3, 2003, 8:24:00 AM, you wrote:
BVB When creating an image using the image functions how do you
Hi All,
I finally decided to upgrade my PHP. Just want to know your thoughts on
which Framework is the best with a clear seperation of content from
presentation.
Please let me know which do you think is the best and why?
Have a great day.
Karthikeyan.
--
PHP General Mailing List
I parse the apache logfile and get a date format like this
[03/Feb/2003:09:22:50 +0100]
OK i split it with preg_match and the result is
Array
(
[0] = 03
[1] = Feb
[2] = 2003
[3] = 09
[4] = 22
[5] = 50
)
Now I'd like to convert it in a timestamp
with mktime
i need delete two related table from mysql database,
but i am found and error..
this following my sql language :
DELETE FROM X INNER JOIN Y ON X.ID = Y.ID WHERE Y.No = 144;
i found an error in INNER JOIN syntax..
but i have successfully displaying 2 Related table in SELECT syntax..
my
Karthikeyan.Balasubramanian [EMAIL PROTECTED]
wrote in message 024e01c2cb8c$bc54cfd0$[EMAIL PROTECTED]">news:024e01c2cb8c$bc54cfd0$[EMAIL PROTECTED]...
I finally decided to upgrade my PHP. Just want to know your thoughts on
which Framework is the best with a clear seperation of content from
I'll be the first to admit I was wrong and missed that. This will work out
great for me. I'm writting scripts for Realtors to upload photos to us via
the web and you can only imagine what these people will include in a
filename.
Ed
On Mon, 3 Feb 2003, Marek Kilimajer wrote:
That double
How to compare 2 strings in PHP
I hawe 2 array where I have only string values some values in both arrays
are same but if command don't send me a good result.
e.g
foreach ($array1 as $a1) {
foreach($array2 as $a2){
if ($a1 == $a2) echo good; //never system send me a good result
else
On Sun, 2 Feb 2003, César Aracena wrote:
Hi all,
I'm sorry for this re-post, but I do need help with this URGENT...
I just finished loading the OS to my PC once again, installed and
configured IIS and then installed PHP 4 but now, every page I try to open
tells me:
Failed opening
On Monday 03 Feb 2003 2:01 pm, karthikeyan.balasubramanian wrote:
Hi All,
I finally decided to upgrade my PHP. Just want to know your thoughts on
which Framework is the best with a clear seperation of content from
presentation.
Please let me know which do you think is the best and why?
-Original Message-
From: Roman Duriancik [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 03, 2003 9:31 AM
Subject: [PHP] How to compare 2 strings
How to compare 2 strings in PHP
I hawe 2 array where I have only string values some values in
both arrays
are same but if
How to compare 2 strings in PHP
I hawe 2 array where I have only string values some values in both arrays
are same but if command don't send me a good result.
e.g
foreach ($array1 as $a1) {
foreach($array2 as $a2){
if ($a1 == $a2) echo good; //never system send me a good result
I am having difficulty putting results into an form
Once the query runs, I have this for my output
print Input type=text name=foo value=;
print $Foo;
print ;
This results in an HTML error
being apache finds an error AFTER the /html tag
Any ideas?
Well, Yahoo! have moved/are moving to Smarty and they get a few million
views a day.
The killer part with smarty is that it converts the Smarty tags, in your
template, to real PHP code - that's what makes it so fast. It's also very
easy to extend.
Danny.
- Original Message -
From: John
What is the error message you get?
---John Holmes...
- Original Message -
From: Todd Barr [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 03, 2003 9:59 AM
Subject: [PHP] Html forms
I am having difficulty putting results into an form
Once the query runs, I have this for
Parse error: parse error in C:\apache\htdocs\tsadbatest.php on line 148
Its the line after the html ends
- Original Message -
From: 1LT John W. Holmes [EMAIL PROTECTED]
To: Todd Barr [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, February 03, 2003 9:59 AM
Subject: Re: [PHP] Html
Parse error: parse error in C:\apache\htdocs\tsadbatest.php on line 148
Its the line after the html ends
Almost always means you forgot a closing brace somewhere. Count up your {
and } and make sure they match.
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To
Hi everyone,
I found the same problem regarding security issue with database password file. Does
anyone has solution for that?
thanks
Hardik
John W. Holmes [EMAIL PROTECTED] wrote: Major security question:
I manage a shared Linux web server running PHP 4.2.3. Apache must have
read
Yeah, on your DBConnection include file (where your username/pass is kept), encrypt
the page with a encoder like IonCube (http://www.ioncube.com) they charge by the amount
of code, so for say, two connection lines, it's like $1.00. Check out there site, after you sign
up for an account you
John W. Holmes wrote in message :
Because a default install of MySQL includes an anonymous user, one with
no username or password. There is also a root user with no password.
Read the MySQL manual on Installation and the GRANT command on how to
fix this.
---John W. Holmes...
Chris Shiflett wrote in message:
Your query returns two rows because you have two rows in
the database that match the condition:
host='localhost'
--
Chris
..
Chris,
I was under the impression that the mysql database had as default user when
installed:
How does Smarty compare with PHP FAST Template??
- Original Message -
From: Danny Shepherd [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 03, 2003 2:51 PM
Subject: Re: [PHP] PHP Framework
Well, Yahoo! have moved/are moving to Smarty and they get a few million
views a
I agree, I'd go for Smarty. Though, on the other hand, I often see no
reason for using the Templates of any kind. Why? Because you stil get to
hard code the tags in it. Not making that much sense as many think. You
might simply create a framework by appending the genuine PHP files where
HTML code
--- Todd Barr [EMAIL PROTECTED] wrote:
I am having difficulty putting results into an form
Once the query runs, I have this for my output
print Input type=text name=foo value=;
print $Foo;
print ;
This results in an HTML error
being apache finds an error AFTER the /html tag
Any
fileperms($link) returns - 16877
The permissions seem to be that of the directory the link is pointing to.
How can i get the permissions of the link ?
is_link only tells me if it is a link or not.
thx
gamin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I'm having a problem escaping double quotes in email messages sent with
mail(). The message is built as a string and assigned to a variable and the
variable name is passed to the mail function.
The double quotes appear correctly in a simple test like this:
$message = This message uses 'single'
I'm having a problem escaping double quotes in email messages sent with
mail(). The message is built as a string and assigned to a variable and
the
variable name is passed to the mail function.
The double quotes appear correctly in a simple test like this:
$message = This message uses
--- arthur.chereau [EMAIL PROTECTED] wrote:
That's right, but with curl it's not a true redirection:
you just print the content of the target page, you don't
redirect to the page.
What I need is automated forms, that send the same
data as forms but without user interaction. I can't use
Maxim Maletsky [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I agree, I'd go for Smarty. Though, on the other hand, I often see no
reason for using the Templates of any kind. Why? Because you stil get to
hard code the tags in it. Not making that much sense as
Trying to set the image size based on the amount if text/fontsize,
etc... Looked through a bunch of the functions but nothing is jumping
out at me. Does anyone have an example and or can point me to the
correct function(s) for this.
--
PHP General Mailing List (http://www.php.net/)
To
From: 1LT John W. Holmes [EMAIL PROTECTED]
I'm having a problem escaping double quotes in email messages sent with
mail(). The message is built as a string and assigned to a variable and
the
variable name is passed to the mail function.
The double quotes appear correctly in a simple test
ImageFtBbox() can do this for you.
Here's a portion of my code that uses it.
$string=This is some text;
$pointsize = 15;
$fontfile = getcwd()./arial.ttf;
$string_size = ImageFtBbox($pointsize, 0, $fontfile, $string,
array(linespacing = 1));
$s_width = $string_size[4];
$s_height =
This hasn't come up too much yet in one of the databases on my site, but as
I get closer to starting a big project, I thought I'd get an idea of how the
rest of you handle this.
How do you handle accented words and other problematic symbols on your
database-driven sites? If you need to store one,
Hi,
All I'm trying to do is check for the presence of a query string, but
everything I try gives me an Undefined Index error. I want to set a
variable $pagename to whatever was passed as the ?page= value, and if
it wasn't passed, set it to some default value.
if(isset($_REQUEST['page']))
{ $pagename = $_REQUEST['page']; }
else
{ $pagename = 'home'; }
Should work... If not, let us know. Make sure your case match, too.
?page=hello and ?Page=hello are two different variables.
---John Holmes...
- Original Message -
From: Brian Dunning [EMAIL
--- Ian M. Evans [EMAIL PROTECTED] wrote:
How do you handle accented words and other problematic
symbols on your database-driven sites? If you need to
store one, do you store it as the actual character and
display it with htmlentities, or do you store it as the
html entity?
Most people seem
--- Brian Dunning [EMAIL PROTECTED] wrote:
All I'm trying to do is check for the presence of a
query string, but everything I try gives me an
Undefined Index error.
...
http://www.mysite.com/index.php?page=hello
?php
if (is_object($_REQUEST['page']))
$pagename = $_REQUEST['page'];
else
At 17:54 3-2-03, you wrote:
if (is_object($_REQUEST['page']))
for me
if (isset($_REQUEST['page']))
works.
I often add a check against an empty value after this check.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- Ian M. Evans [EMAIL PROTECTED] wrote:
How do you handle accented words and other problematic
symbols on your database-driven sites? If you need to
store one, do you store it as the actual character and
display it with htmlentities, or do you store it as the
html entity?
Most
This hasn't come up too much yet in one of the databases on my site, but
as
I get closer to starting a big project, I thought I'd get an idea of how
the
rest of you handle this.
How do you handle accented words and other problematic symbols on your
database-driven sites? If you need to store
I wouldn't break it up into 3 lines of code. try:
print Input type=\text\ name=\foo\ value=\$Foo\;
or
echo 'input type=text name=foo value='.$Foo.'';
Jeff
- Original Message -
From: Todd Barr [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 03, 2003 8:59 AM
Subject:
I've added an email feature to a content management system that will send
plain text email to about 1400 contact addresses. Each contact is sent a
separate email with the contact name and address in the To: header. It
works fine to small test lists, but hasn't been tested with a large list.
I have a question that maybe someone could answer.
If you by chance come across a secure area that prompts the username and
passcode to a folder, how I can PHP to automagically add them in later on?
Also, instead of that dialogue popping up, is there a way you can add your
own via HTML form and
Hiya,
I'm currently trying to create a logon script for my web site, and i'm
having problems with sessions. I've set up the server (httpd-2.0.44)
with php (4.3.0) and switched on sessions.
The sessions are only avalibale via cookies over a secure connection
(i've got session.cookie_secure =
Wow, an embarrassment of riches. Thanks to all of you who replied so
quickly.
- Brian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have a client that currently gets MDB exports of their database to run
reports and mail merges with. Has anyone heard of or have any idea of
how to make an MDB (Access Data File) on the file from PHP or any other
scripting language?
Thx-
Matt
In an earlier post I wanted to carry an id number that I had in
$HTTP_GET_VARS into another script. I was told that one way would be to
store the number in the session.
My question is how can I store a variable inside a session? In my books
and in the documentation I see things about the global
Any idea why this would NOT create white text?
$png = ImageCreatefrompng(images/menu0.png);
$tx_color = ImageColorAllocate($png,255,255,255);
imagettftext($png,12,0,25,16,$tx_color,$font,$text);
There IS white (255,255,255) in the source png's palette, I don't know
weather that makes a
--- Chris Winters [EMAIL PROTECTED] wrote:
If you by chance come across a secure area that prompts
the username and passcode to a folder
Can you rephrase that? I can't tell what you are talking
about. Does a separate window pop up prompting for a
username and password, or is this part of the
--- Jonathan Wright [EMAIL PROTECTED] wrote:
i'm having problems with sessions. I've set up the server
(httpd-2.0.44) with php (4.3.0) and switched on sessions.
I would recommend not using Apache 2 with PHP right now.
Stick with the latest stable 1.3.x version.
Chris
--
PHP General Mailing
- Original Message -
From: Lowell Allen [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Monday, February 03, 2003 10:37 AM
Subject: [PHP] tracking bulk email
I've added an email feature to a content management system that will send
plain text email to about 1400 contact addresses.
The question is too broad to answer in one post. Suffice to say Yes you can
do all of this if you have the know-how. Recommend you continue your
research with some basics on PHP.net and a good tutorial-style book such as
PHP and MySQL Web Development. There is tons of information online as
Sorry about that.
What I meant was for example, sometimes I come across protected sites that
require a username and passcode. So, if one was to protect a directory or
folder, a regular dialog will appear for username and passcode prompt within
the web browser. I was researching some variables
--- Mike Tuller [EMAIL PROTECTED] wrote:
I click on the link and it adds the id number
to the url like this:
td align=left
a href=editsoftwareasset.php?id=$row[asset_id]
$row[asset_id]
/a
/td
I think you want to have something like:
? echo $row['asset_id']; ?
everywhere you
It is all here:
http://www.php.net/manual/en/ref.session.php
-Kevin
- Original Message -
From: Mike Tuller [EMAIL PROTECTED]
To: php mailing list list [EMAIL PROTECTED]
Sent: Monday, February 03, 2003 11:06 AM
Subject: [PHP] Sessions
In an earlier post I wanted to carry an id number
--- Chris Winters [EMAIL PROTECTED] wrote:
So, if one was to protect a directory or folder, a
regular dialog will appear for username and passcode
prompt within the web browser. I was researching some
variables that I came across which is called
$PHP_AUTH_USER, $PHP_AUTH_PW, and
I am doing something similar to what you are doing. Sending out a newsletter
of about 1500 every month.
I have one table that holds every people.
I also have a campaign table. Every month I create a new newsletter
campaign. The campaign holds things like name of campaign, date sent and
location
The first ImageColorAllocate(0 function always sets the background color .
So add one more call to ImageColorAllocate() to set the background color
before line
$tx_color = ImageColorAllocate($png,255,255,255);
and then the text will be as you set in $tx_color
HTH
-R'twick
- Original Message
Greetings,
I am trying to figure out using classes. I have read and read and read
about them but still cannot figure them new fangled things out. Could
someone please alter this snippet just a bit so it would be a correct test
script with a call to it?
When I run the script I get this
Apparently it does not like the function name to be the same as the class
name. So change one of them.
? php;
class first
{
var $age;
var $name;
function first($age, $name)
{
return $age.$name;
}
}
//main script
$first = new first;
Apparently it does not like the function name to be the same as the class
name. So change one of them.
No, what's happening is that when you instantiate an class, it runs
(as a constructor) the function whose name is the same as the class.
So when you do this:
$first = new first;
it's
the function with the same name as the class is the
constructor and is called when the instance is created.
So $first = new first runs first::first() without passing
any parameters hence the warning.
Tim Ward
http://www.chessish.com
mailto:[EMAIL PROTECTED]
- Original Message -
From:
Hi Leonard,
Try this:
? php;
class first
{
var $total;
function first($age, $name)
{
$this-total = $age.$name;
}
}
//main script
$obj = new first(35, chris);
print $obj-total;
?
The problem with what you were doing is that when you
On Monday 03 February 2003 20:45, Chris Boget wrote:
function setData( $age, $name )
{
$age = $age;
$name = $name;
}
Is useless ;-) I think you wanted this:
function setData( $age, $name )
{
$this-age = $age;
function setData( $age, $name )
{
$age = $age;
$name = $name;
}
Is useless ;-) I think you wanted this:
function setData( $age, $name )
{
$this-age = $age;
$this-name = $name;
}
Good
Chris,
Exactly. I am relying on the webserver to provide the restrictions.
Now my next question:
what functions should I utilize or come close to to do it? There isnt any
PHP pages directed towards teh directory itself. Its is just a hard link to
the protected areas. Are there any functions that
and how can i be root from a php script?
i want chown from the script itself which created the page.
-Original Message-
From: Marek Kilimajer [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 03, 2003 12:39 PM
To: Gurvinder Singh
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] safe mode problem
hi..
i have an array (not written in code yet) but it is from a multiple select
listbox and i want to use the elements in the array in an insert query.. and
dont know how that works...
(i wont know how many elements there will be on the insert)..the array
elements will need to be put in 1 field
Thanks for all the help thusfar. Classes are just not something I am
understanding. I have read the sections on classes in several books and the
www.php.net section on them and still am missing something. It seems that
these books have been telling me what a light switch is used for but not how
There is a way to supposedly do this by authenticating a username and
password through php first through such methods as database lookups and
then passing the username and password through $PHP_AUTH_USER and
$PHP_AUTH_PW using the header() command to point to the URL of the
.htaccess protected
I'm sorry the line should have been...
header(Location:http://$PHP_AUTH_USER:$[EMAIL PROTECTED];);
Ed
On Mon, 3 Feb 2003 [EMAIL PROTECTED] wrote:
There is a way to supposedly do this by authenticating a username and
password through php first through such methods as database lookups and
Afternoon all.
I've been trying to write to a text file for a while. I opened it thusly:
$file = fopen($filename, w+);
to read it and then write to it after I modified what goes in it. The problem is it
won't write. It sets the pointer to the beginning and erases everything, but doesn't
There is a way to supposedly do this by authenticating
a username and password through php first through such
methods as database lookups and then passing the
username and password through $PHP_AUTH_USER and
$PHP_AUTH_PW using the header() command to point to the
URL of the .htaccess
Something like..
$query = INSERT INTO tablename (fieldname) VALUES;
foreach ($_POST['listbox'] as $key = $val) {
$values[] = ('$val');
}
$query .= implode(',', $values);
$result = mysql_query($query);
This is assuming all your listbox values go into the same table column.
-Kevin
-
I'm trying to delete a some records from a table with checkboxes and then i
have this code:
html
titleLista de Filmes (DivX)/title
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
body bgcolor=#DEE3E7
form action=action1.php method=POST name=form_action1
?
I figured it was along those lines... i know that perl also caught
me a few times becuase perl differentiates between == and eq
for numerical or string comparisions.
I'll probaly end up using the ===, becuase i've got a severe
aversion to using functions for comparisions. :-)
--
Scott Hurring
Each select control has an 'options' container,
you should review it to find all values for all selected elements, and
create and string to send to the server into a hidden control included in
the submited form.
In the server will be another history!!
It's the way I use, may be somebody could
1 - 100 of 135 matches
Mail list logo