If a user enters a quota ( " ) to a form field and sends it, the page trying
to process values gets only a backslash ( \ ). No matter if I use GET or
POST. How to get the right kind of a value?
Niklas
> $fp = fsockopen("www.paypal.com", 443, $errono, $errstr, 30);
> if (!$fp) {
> echo "$errstr ($errno)\n";
> } else {
> fputs ($fp, "GET https://www.paypal.com/cgi-bin/webscr
> HTTP/1.1\015\012");
> fputs ($fp, "HOST www.paypal.com\015\012");
> fputs ($fp, "Content-type:
applicati
have you tried :
ID\">
--
(°-Nayco,
//\[EMAIL PROTECTED]
v_/_ http://nayco.free.fr
Ryan Stephens <[EMAIL PROTECTED]> a écrit dans le message :
[EMAIL PROTECTED]
> Im trying to output a list of options, each with a checkbox named "ChkBox"
> and with a value
http://php.net/manual/en/function.wordwrap.php
(°-Nayco,
//\[EMAIL PROTECTED]
v_/_ http://nayco.free.fr
- Original Message -
From: Justin French <[EMAIL PROTECTED]>
To: php <[EMAIL PROTECTED]>
Sent: Wednesday, September 12, 2001 3:39 AM
Subject: [PHP] wo
Is this a secure way to check if some
data comes from a form-field of the
previous page, or ist it possible to
fill it without submitting a form?
--
Jochen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTE
Should be relatively easy.
Its going to take 2 steps.
Send out one of the images with a unique id per mailout, this could be the
users email address if you wanted to tie in the data per user (may be
illegal in some countries without users permission).
eg first mail
bla blah
next mail
bla
Hi,
I am trying to find out the the best way to do the following:
I have a script that select records from a table. The problem is that I
need to limit the rows to 20. I know that I can use limit 20. But what I
want to do is give the view a link to the next 20 till all the records are
shown.
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Programmer) wrote:
> Can anybody help me convert this perl code to PHP
>
> This line in particular
> while( /hidden name=(.*?)>/gs )
while(preg_match_all("/hidden name=(.*?)>/s",$teststring,$matches)
Note that /g is covered by the function it
show us a snippet so we can evaluate the cause
-A
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hello Richard,
Tuesday, September 11, 2001, 9:53:30 PM, you wrote:
RL> It's entirely possible your ISP turned it off on purpose to foil spammers...
RL> You *may* be able to http://php.net/exec sendmail and do an end-run around
RL> that, if they were not smart enough to close off that access...
In article ,
[EMAIL PROTECTED] (Jochen Kaechelin) wrote:
> Is this a secure way to check if some
> data comes from a form-field of the
> previous page,
No. But as long as the user submits all of the necessary data, and the
data passes your validation ch
paging results:
this is tha idea
page 1 - SELECT * FROM yourtable ORDER BY id DESC LIMIT 0, 20
page 2 - SELECT * FROM yourtable ORDER BY id DESC LIMIT 21, 20
page 3 - SELECT * FROM yourtable ORDER BY id DESC LIMIT 41, 20
...
so
$next = 0 //starting
SELECT * FROM yourtable ORDER BY id DESC LIMIT $
Hello Richard,
Tuesday, September 11, 2001, 10:07:53 PM, you wrote:
RL> Did anybody disable the mail() function in PHP?
RL> What did you put in php.ini to call sendmail?
RL> Are there any error messages in your Apache logs?
RL> Re-posting with Rasmus' name is probably not particularly useful
here's your PHP code,
banana
.46
.55
pear
.38
.51
apple
.59
.33
';
$re2 =
"/.*?]*>.*?]*>(.+?)<\/td>.*?]*>(.+?)<\/td>.*?]*>(.+?
)<\/td>.*?<\/tr>/is";
$re1 = '/(.+?)<\/table>/is';
if (preg_match($re1, $mem, $matches))
{
if (preg_match_all($re2, $matc
Hi Folks,
Does anyone know of a good place I can go to find information about
PHP/MySQL/Apache security issues and vulnerabilities? I know a couple of
security sites but are there any specific ones for this purpose?
We're currently weighing up pros and cons of using them for our site. I want
to do
This is what my form returns with search '"great port"':
http://domain/file.php4?Parent=1&Keyword=\
and this with search 'great port' (no quotas):
http://domain/file.php4?Parent=1&Keyword=great
port&Name=&Province=---&Submit=Search&Type=text
I need to get quotas to the keyword-field, so I can cr
How to do anything to the strings in php BEFORE the form is sent?
Niklas
-Original Message-
From: James Holloway [mailto:[EMAIL PROTECTED]]
Sent: 12. syyskuuta 2001 11:28
To: Niklas lampén
Subject: Re: problem with form values
Hi Niklas,
use htmlentities() or htmlspecialchars() on t
Sorry,
I didn't mean it quite like that. After the user presses submit
$string = htmlentities($string);
// now, do whatever with the string
J
- Original Message -
From: Niklas Lampén
To: James Holloway ; Php-General
Sent: Wednesday, September 12, 2001 9:52 AM
Subject: RE
www.securityfocus.com
www.securityportal.com (might be down while they reconstruct their website)
And many others.. use your favorite search engine.
Bye,
B.
At 09:50 12-9-01 +0100, Mat Marlow wrote:
>Hi Folks,
>Does anyone know of a good place I can go to find information about
>PHP/MySQL/Ap
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Mat Marlow) wrote:
> Does anyone know of a good place I can go to find information about
> PHP/MySQL/Apache security issues and vulnerabilities? I know a couple of
> security sites but are there any specific ones for this purpose?
IIRC, php.net
Hi all together,
I modified my 'two lines of code':
$andre1;
$ds = ldap_connect ("localhost");
print "connect result is ...
$andre2;
Here are the snipped from the error_log:
[12-Sep-2001 11:24:16] PHP Warning: Use of undefined constant andre1 -
assumed
'andre1' in /opt/www2.presse-data.de/l
i would say do this
urlencode the string (it should use %22 or something for the quote marks)
then un encode on the recieving page
--
one thing you might try is this
$sql = 'SELECT * FROM whatever WHERE';
while ( $quotes = explode('"', $Keywords) ) {
$q = 0;
$s = 0;
>Send out one of the images with a unique id per mailout, this could be the
>users email address if you wanted to tie in the data per user (may be
>illegal in some countries without users permission).
I don't know if it's illegal, but if I would be a subscriber I wouldn't
like it if someone is
Hey all!
I have a slight problem I was hoping you could help me with. I'm writing a little news
script for my site, and well here is the scenario:
I have 2 tables in a mysql database, one holds author information (name, email,
password, etc.)
The other table holds the news that they submit (ne
Hi all,
I'm trying to build php into an existing solution which uses Lasso.
I have tested the passing of data from Lasso to php and that works fine.
I want Lasso to pass the filename over to a php page and for that page to
grab the file from a folder outside of the webroot and push it out to th
Heh, we seem to have a bit of a problem with communicating with each other..
:)
What I ment with the question is that how can I do something to the string
before the form sends information to the next page? So can I somehow modify
strings after pressing submit but before next page? Something like
I need to know the file size of remote file, but never be able to do it.
One of the my example PHP Script:
http://www.blockm.com/admin.gif";;
$fp = fopen($location,"w");
file://$fp = file_exists($location);
if(!$fp) {$message = "File not found";}
else {$message = "File Found"
Hi all,
If you mean http://www.webtechniques.com/archives/1998/02/lerdorf/ what
inserts in the DB is just the image's name, but not the file itself.
What is exactly the problem you are having with the class? Just a couple
days ago I had a problem uploading files into a MySQL DB because the
addsl
Hi !
I have php 4.0.6 and get Mail from a IMAP Server. I've do this on a linux
box and it works fine. On another server (a Faxserver with imap support) I
get empty fromaddress, empty subject, empt toddress. But imap_headers
returns the right values. Any ideas how to fix this ??
BYe
Harald Petrovi
Hi,
Any good tutorials or references on how to select and display these images
from a database (MySQL, Access, SQLServer) with PHP? I know how to get it
in, thats the easy partbut getting it out I'm listening!
Tx
BK
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mai
Hi.
can someone explain this to me?
How can I "INSERT" with mysql_query this string:
"Tsete<> "" aspas simpes '' "aspas" enter e maior e
menor<>", but I can't do a SELECT after?, I receive
error because the mysql can't understend the (").
i'm using htmlspecialchars()...
thanks.
Augusto
_
Hello! You wrote:
>> Hi! I have this script and wonder how to change
>> it to get it list only number 2 to number 6 and
>> not each?
>> while (list ($key,$val) = each ($headers)) {
>> print ""."$val"."";
>> }
while (list ($key,$val) = each ($headers) and
$key <= 6 and
$key >= 2)
Hi!
I would like to insert the HTML code in a TXT document. How do I do this?
On a normal website I'd make an SHTML site with the
but since the PHP engine (as far as I know) doesn't initiate SSL on the
server.
If anyone could be so kind to give me the code to make this work, it'd be
great!
Best
On Wed, 12 Sep 2001 13:45:06 +0200, you wrote:
>Any good tutorials or references on how to select and display these images
>from a database (MySQL, Access, SQLServer) with PHP? I know how to get it
>in, thats the easy partbut getting it out I'm listening!
You need to output the correct cont
So sprach »Andrew Perevodchik« am 2001-09-12 um 14:45:25 +0300 :
> Hello! You wrote:
>
> >> Hi! I have this script and wonder how to change
> >> it to get it list only number 2 to number 6 and
> >> not each?
>
> >> while (list ($key,$val) = each ($headers)) {
> >> print ""."$val"."";
> >> }
>
So sprach »Augusto Cesar Castoldi« am 2001-09-12 um 08:52:29 -0300 :
> i'm using htmlspecialchars()...
Switch to addslashes() to insert the data and stripslashes() when
fetching the data from the DB + htmlentities/htmlspecialchars to display
the values.
Alexander Skwar
--
How to quote: http:/
On Wed, 12 Sep 2001 14:37:59 +0200, you wrote:
>I would like to insert the HTML code in a TXT document. How do I do this?
>On a normal website I'd make an SHTML site with the
Can't you still do this?
>but since the PHP engine (as far as I know) doesn't initiate SSL on the
>server.
Not sure wh
Woah!
It worked!!!
Thanks djo!
Best regards Cato Larsen
Webmaster of http://www.oia.f2s.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECT
Brad,
Thanks for that pointer.
However, with that implemented, all I get is the PDF coding dumped onto the
screen - no pdf file downloaded!
Any further suggestions. I feel as though I'm getting there . . . slowly.
George
- Original Message -
From: "Brad S. Jackson" <[EMAIL PROTECTED]>
PHP Is server side. The form data, until it is submitted is client side.
If you need to manipulate the form data before processing it (i.e for
validation, etc) you can either build that logic into your processing code,
or have the form call an intermediate set of code that does what you need to
d
We have categories set up and I was using PHP to make searches on this. It was
working nicely and the categories were auto incremented as new ones were added.
Now we're adding sub categories and the categories are all labelled the same way
When I load one page I use PHP to generate a drop
I believe I do what you are attempting to do, in pure PHP using a switch
statement and variables. It works, (check www.northpointless.org to see it
in action) but keep in mind my site is in early developement, so the menu
options aren't quite fleshed out at this time.:
function menu ($pos, $sub =
Please, look this little script, and what he prints.
Am I doing something wrong or I "found" a bug??
thanks a lot.
";
$data = mysql_query($sql) or die ("Erro crypt 1.");
$row = mysql_fetch_row($data);
return $row[0];
}
function decode($decode_str, $pass_str)
{
$encode_str = addslashes($e
Hi,
in our case the error message
> Syntax error on line 239 of /home/mmulsy/apache/etc/httpd.conf:
> Cannot load /home/mmulsy/apache/libexec/libphp4.so into server:
> ld.so.1: /home/mmulsy/apache/bin/httpd: fatal: relocation error: file
> /home/mmulsy/apache/libexec/libphp4.so: symbol sk_new_
the function isn't decoding right.
regards,
Augusto
--- "Schill, Johannes" <[EMAIL PROTECTED]>
escreveu: > Please include your error message.
>
> /Johannes
>
> - Original Message -
> From: "Augusto Cesar Castoldi"
> <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, Se
Dear Sir,
I am looking for PHP Programmer and Web Designer to work on a
proget basis. If interesting, please send your reply back to
[EMAIL PROTECTED]
Best Regards,
Mark
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional co
> -Original Message-
> From: Augusto Cesar Castoldi [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 12, 2001 9:46 AM
> To: Schill, Johannes
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Is it a mysql AND/OR php BUG???
>
>
> the function isn't decoding right.
>
> > > function dec
Hi Sean,
Sean C. McCarthy wrote:
> If you mean http://www.webtechniques.com/archives/1998/02/lerdorf/ what
> inserts in the DB is just the image's name, but not the file itself.
I had trouble opening up the upload.php3 file in list six, so I couldn't verify
by looking at the code. Not sure if
hello everyone,
how can i set the expiration of my sessions with or without
the cookies enabled? say if a user idles for some time, the
session will now expire.
TIA!
jessie
void signature () {
cout << "Jessie Natividad-- [EMAIL PROTECTED]" << endl ;
cout << "Cell: +63 9
> hello everyone,
>
> how can i set the expiration of my sessions with or without
> the cookies enabled? say if a user idles for some time, the
> session will now expire.
>
> TIA!
> jessie
I'm using a solition that's something like this:
first, each time a user logs in to the site, a
oh, i forgot to mention, i create new session id on
each login, and pass it on in the url, something like
/page.php?sess=$sess_id
If you want, you could also assign the user's ip with the current session
for a little higher security, i havent bothered as i feel this is safe
enough.
/Martin
> --
Hey all!
I have a slight problem I was hoping you could help me with. I wrote earlier but no
response (so one last try). I'm writing a little news script for my site, and well
here is the scenario:
The SHORT:
I have news,headline,author,date,time,etc. all in a table in a mysql db, that I use
rough outline of what you would need to do.
this is pseudocode.. I'm too tired to write correct php :)
$is_first=true;
whlie(get next result entry) {
if($is_first) {
$last-date=date of this entry;
$this-date=date of this entry;
$is_first=false;
}
if($this
Hi,
I am looking to clean up the HTML generated by some of the in-browser
WYSIWYG editors, especially if you paste in content from Word. Can I
install HTMLTidy on my server easily, and call it from PHP easily? Are
there other good classes available that clean up HTML? And how would I make
a fu
Right, there is a COM module in the PHP. But it must be used with win32
platform.
Is there any alternatives for linux platform?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list ad
Mike Gifford wrote:
>
> Hi Sean,
>
> Sean C. McCarthy wrote:
> > If you mean http://www.webtechniques.com/archives/1998/02/lerdorf/ what
> > inserts in the DB is just the image's name, but not the file itself.
>
> I had trouble opening up the upload.php3 file in list six, so I couldn't verify
>
Typo in my explanation. I had "defined" in my code. Nice catch though.
However, I'm running into more define issues. When I get to a file through
a redirect via header("Location: /newfile.php"), my defines are existing as
tested by "defined" but the values are all corrupt. However, if I the
Thanks Tom,
I'm still a newbie at this stuff though, so can you (or anyone) look this
over and tell me what I did wrong...
mailto:";
. $myrow["email"] . ">" .
$myrow["author"] . " at " . $myrow["time"] . $myrow["$tod"] . ""
. $myrow["news"] .
"";
} else {
echo "" . $myrow["date"] .
Hing Lung Motor Mfy, New Offer Aug-2001
http://www.hinglungmotor.com.hk [EMAIL PROTECTED] [EMAIL PROTECTED]
Fax: 852-24817148
NO: HL101-D-D8xH6 VIBRATER MOTOR
SIZE: 20 x 15.5 x H25 MM
PRICE: US$ 0.13/PCNO: HL307 MOTOR
SIZE: D12 x 19.5 MM
PRICE: US$ 0.38/PC
NO: HL1011-DC SCOOTER
first (quick) glance looks fine... what error are you getting?
you didn't specify username/password for your mysql connection. you may
be required to do that..
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 12, 2001 6:12 PM
Subject:
If an admin deletes a user's session while they are online, is it possible
to show that user a message saying that their session has been revoked? I
can seem to think of a way to determine if the user logged out or if the
agent kicked them out.
Thanks in advance and please excuse my "newbieness".
Can someone please just run me through the different sections of the mail function
please cause i understand you can change the from address etc aswell
-lk6-
http://www.StupeedStudios.f2s.com
Home of the burning lego man!
ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666
Once I´ve installed php (DSO), and try to restart apache I´ve get:
libexec/libphp4.so : unresolved symbol :uncompress
apache could not be started
(something like this)
Does anyone can help?
Thanks
Fernando
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
Hello,
I have a page which is a form for people to fill in. There is one input
line where the user enters in an e-mail address. Currently the page is
using java to verify that e-mail address. It looks like the java code
is only checking for an "@" side, but I want it to also check for a "."
Are you using Internet Explorer? I've found that broken installations
of Acrobat will cause that... Try reinstalling acrobat on your computer,
and also try using Netscape... See if they work.
--Matt
-Original Message-
From: George Pitcher [mailto:[EMAIL PROTECTED]]
Sent: Wednesday,
Hi,
I have the same problem going on. I have tried IE on Windows 98, 2000
and Netscape on Linux, 98 without any difference. I can't check it
because using https and sessions, but can anyone try to use wget with
the -s option to see what is going on the headers? Also might be useful
to see what PH
hi,
where can i get a database with the
postal codes from germany ?
i need to doublecheck the entries posted on our website
andre
I have been fighting with an annoying problem for couple days.. If I try to
upload more than 22 files (no matter what size), the last file doesn't
upload correctly..
I don't know PHP very well, so I don't know whether there is a way to
configure the server to get around the problem...
In the beg
. how do i make php add something to a text document on the smae line cause i need
the text document to look like this
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED];
so well, how do i get it to add on to line 1 and would i need it to make the ";" go on
the last line cause php cat
So sprach »Jeff Grossman« am 2001-09-12 um 12:16:29 -0700 :
> Hello,
>
> I have a page which is a form for people to fill in. There is one input
> line where the user enters in an e-mail address. Currently the page is
> using java to verify that e-mail address. It looks like the java code
>
So sprach »David Otton« am 2001-09-12 um 13:47:53 +0100 :
> On Wed, 12 Sep 2001 14:37:59 +0200, you wrote:
>
> >I would like to insert the HTML code in a TXT document. How do I do this?
> >On a normal website I'd make an SHTML site with the
>
> Can't you still do this?
No, it's either SHTML or
What version of PHP are you running?
There were a few bugs in the file upload code that have been fixed in
recent relases of PHP...
--Matt
-Original Message-
From: Jani Rautiainen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 12, 2001 3:51 PM
To: [EMAIL PROTECTED]
Subject: [PH
You should really think about storing things in a db...mysql's free and
easy to use and install, and will save you lots of time (especially with
this kind of question)
If you're only trying to add something to line one, you could open a
file, read it, open a new one, print whatever you need to ad
Hello,
I have this:
for ($i=1; $i<=$num_answers; $i++) {
print "Answer $i: ";
}
The user will enter the possible answers up there. When that form is
submitted, I want to take the value from answer$i ($answer$i). I can't do
this though. Here's what I've done:
for ($i=1
Ok,
So I have one particular class, that should be usable by other classes in an
application.
For example:
class db_class {
var name
var name_2
function() {
}
function_2() {
}
}
The class above is a general database class that's functions are needed by
the other API c
does anyone know of a way to convert an IP address to Binary using PHP? My plan is to
store the IP address in MySQL so that I can manage a mass amount of IP subnets, and
easily make sure I'm not assigning duplicate subnets. the best way I can think of is
to use binary.
any other ideas, though
I use curl to do a form submit and then the data is submitted back to me. I now need
to know how to extract the hidden variables from the webpage and put one the name of
the hidden field in one field and the value of the hidden field in another. there is
5 hidden fields that i need to extra
I have definitions (i.e. define ("a", "b");) that are being corrupted in
php-4.0.6 in apache 1.3.20 on Redhat linux from Jan. 11.
Anyone seen this? Any solutions?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [E
I want to add I have seen bindec() , and I think it's a cruel cruel joke
for it to only work with 31 bits, given that ip4 addresses are 32 bits. :}
- Original Message -
From: "Jason Bell" <[EMAIL PROTECTED]>
To: "PHP Users" <[EMAIL PROTECTED]>
Sent: Wednesday, September 12, 2001 2:29
You could use MySql's built in functions:
INET_NTOA()
INET_ATON()
Sincerely,
Robert T. Covell
President / Owner
Rolet Internet Services, LLC
Web: www.rolet.com
Email: [EMAIL PROTECTED]
Phone: 816.210.7145
Fax: 816.753.1952
-Original Message-
From: Jason Bell [mailto:[EMAIL PROTECTED]]
I have a form that I would like to send an email once it's validated. I'm
using the following code that builds the body of the email.
$y = mysql_fetch_array ($getrec_result);
while (list($key,$value) = each($y)) {
$body .= "$key: $value\n";
}
My body looks like this
0: 3
id: 3
1: 2001-09-1
When sending out email is it possible to know if their email client
program will be able to read a html email? If it can't read a html
email then it would show a text email. I know it's conventional wisdom
that this isn't possible but has anyone even heard of someone figuring
this out?
Yes. It is possible.
Jeff Pearson
> -Original Message-
> From: Bob [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 12, 2001 2:57 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Verify email client can read html email?
>
>
> When sending out email is it possible to know if their ema
> When sending out email is it possible to know if their email client
> program will be able to read a html email? If it can't read a html
> email then it would show a text email. I know it's conventional wisdom
> that this isn't possible but has anyone even heard of someone figuring
> this out?
Hell0,
I have a MySql database with 3 columns. The first column is "id" second
is "name" and third is "value", I have two drop-down lists, with the
first filled with an array from the column "name". I would like for the
second drop-down list be changed according to the "value" of what has
been
I orignally sent this in as a bug report and received this response --
anyone seen anything like this before?
~[EMAIL PROTECTED]
PS-Please CC: me on replies, as I'm not subscribed to the list.
Thanks
-Original Message-
From: Bug Database [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, Sept
PHP does not know what the user has selected in the first drop down.
You can either reload the page with the new value once the user has selected
the value for the first drop down list, and go from there, or use
Javascript.
- Original Message -
From: "Jared Mashburn" <[EMAIL PROTECTED]>
echo "\n";
while($row = mysql_fetch_assoc($yourquery)
echo "{$row['name']}\n";
echo "\n";
Just insert a ternary operator in there, and check if the submitted
value is equal to the database row's value... If so, add "SELECTED" to
the OPTION tag.
--Matt
-Original Message-
From:
Oops... My bad.
I misread the question... Ignore my previous reply.
-Original Message-
From: Jason Bell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 12, 2001 6:47 PM
To: Jared Mashburn; PHP Users
Subject: Re: [PHP] Dynamic Form
PHP does not know what the user has selected
I have tried using "onChange" in my script but have faild to load the
values of the first drop-down list.
Can I place an array inside an array. Or is there a better way of doing
this?
-Original Message-
From: Jason Bell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 12, 2001 4:4
> Hell0,
>
> I have a MySql database with 3 columns. The first column is "id" second
> is "name" and third is "value", I have two drop-down lists, with the
> first filled with an array from the column "name". I would like for the
> second drop-down list be changed according to the "value" of wha
try it out
and let me know what u think of it please ?!
http://www.millipede.nl/ectemplate
kind regards
Jeroen Olthof
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administra
Here is my take on it, cobbled together with the help of a js wizard
friend of mine:
Dynamic Dropdown Menus
Hi Tom. First check to see what $y looks like:
print "";
print_r($y);
print "";
Then you'll see the whole array. I'm guessing your mysql_fetch_array() is
returning the id twice. What does your query look like.
Also, you can use the foreach but I don't think the while is the problem:
$y = mysql_
amen. a database solved my data storage for good and i could never get along
without it now. also scripst like these can currupt files that it writes to
if a person does certains things while browsing. (ex. refreshing realy fast)
get a DB it's way easier to manage.
-Adam
--
PHP General Maili
Hi
How I read the all values selected for checkboxes of same name that are
submitted to HTML form?
I tried to translate the example on CGI.pm homepage to PHP below.
What's your name?
What's the combination?
eenie
meenie
minie
moe
Y
->>
$result1 = mysql_query("SELECT * FROM news,authors ORDER BY `id` DESC",$db);
I think something like "WHERE news.id=author.id" is missing .
And I made a few scripts like this one, and i think you should "ORDER BY
date" .
(°-Nayco,
//\[EMAIL PROTECTED]
I'm looking for a way to automatically ftp a tab-delimited text file from a
private ftp location and update my Mysql table every 24 hours. I don't have
root access to the php/mysql server. Anyone have an idea?
Thanks,
Wade Berlin, Backstreet Production Group Inc.
---
i might be misunderstanding you, but anytime you need dynamic variable
names, you'll want variable variables...
$count = '123';
$name = "count$count"; # results in $name being 'count123'
$$name = 'something'; # results in $count123 = 'something'
jack
-Original Message-
From: Tyler Longr
On Tue, Sep 11, 2001 at 11:14:30AM -0400, Michael Kimsal wrote:
:
: Perhaps you should just use cold fusion then, if you're that
: hot and heavy into tag-based languages.
:
: tagservlet.com has a Java/CF hybrid which may hold some interest.
:
: PHP's strength, IMO, is that it's NOT a tag-based
1 - 100 of 146 matches
Mail list logo