Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    PHP




PHP 4.3.4 Upgrade ... Need Help With Drop Downs


I upgraded from PHP 4.1.2 to 4.3.4 (Mac OS X 10.2.8), and then had to adjust all of my form scripts to retrieve the POST variables explicitly (because 4.3.4 requires this). I did this like the following:

<input type=text name=myinputbox>
<input type=submit name=submit value=submit>
-------
$myinputbox = $_POST[''myinputbox];
$submit = $_POST['submit'];

That works just fine, and the variable data is available for use elsewhere in the script. Radio buttons and textareas also work in this way.

However, my problem is that <SELECT> drop down menus apparently DO NOT work in this way. This renders my form useless without this ability. If you can post a reply code for retrieving the <SELECT> POST variable to the following code, I would appreciate it.

<SELECT name="MENU">
<option>option1</option>
<option>option2</option>
<option>option3</option>
</SELECT>

I assumed it would be this (but didn't work):
$MENU = $_POST['MENU'];

Hope I am clear with my explanation.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Drop Down Lists Changing Depending On Other Drop Downs
I want to have a drop down system like this one.  But without the radio buttons.

I want to have 3 drop downs but have no idea how to go about it.  I assume I will need to activate some sort of Javascript on the onChange event of the option drop downs.

Drop Downs
trying to get dropdowns to appear and getting no where! I have a script with a config file that has a list of options. I have added a list of ages like so:

$age[0]= 18;
$age[1]= 19;
$age[2]= 20;

I now want to include these in a page in a drop down menu and have tried this code :

$ageshow .= "<option>$age</option>";
echo "<tr bgcolor =$bg2>";
echo "<td class="classadd1"><div class="maininputleft">Age:</div></td>";
echo "<td class="classadd2"><select name="in[sfield]">";
echo "$ageshow</select> ";
echo "</td>";
echo "</tr>";

this does not list the ages but just has array in the drop down. What am I doing wrong?

Dependent Drop Downs?
I have a drop down menu populated from a database. There are 3 other drop downs on the page that I want to populate from the database AFTER the user has made a selection in the first list. Can that be done? Are there any scripts for that anywhere?

Two Different Drop Downs From MySQL
I have a admin area for a website, and on some part the admin can
select options from two different drop down boxes. Now i thought that
it would be better to use one Query for both dropdowns. How can i get
them together?
I now have something similair twice:

<select name="series_id" class="dropdownbox" id="series_id">
<option value="0">- select -</option>

<?php
$db = mysql_connect("localhost", "name", "pass");
mysql_select_db("db_name");
$result = mysql_query("SELECT * FROM series ORDER BY name");

if ($data = mysql_fetch_array($result)){
do {
$current_id = $data['series_id'];
if($current_id == $id){$selected = "selected";};
echo "<option value="".$data['series_id'].""
".$selected.">".ucfirst($data['name'])."</option>
";
} while ($data = mysql_fetch_array($result));
} else {
echo "";
};
mysql_close($db);?>
</select>

I hope it's clear what i mean. I do not make connection twice, but the
rest is similair except for the tablename of course.

Dynamic Associated Drop Downs
I wrote a function to pull country values from my MySQL database into my forms country drop down list. This works great. However, I want to also pull region/state data for my form's region drop down list whenever a country is selected/changed in the country form field.

I know I can do this with javascript but I want to do it with PHP only. Can I do like a onclick command on the country field and have it resubmit the query that populated the region field? I think this is possibe but not sure how to do it.

Arrays, Drop Downs & Includes ...
I am setting up a classifieds site using a script bought in. set about hacking a few bits & pieces that I did not like, the script has mainly text fields but I wanted drop downs.

I copied the way countries were populated using an include file & replicated 10 times, i read somewhere that multiple includes in a script can slow things immensely is this so?
The code:

Dynamic Drop Downs With Php And Java
I'm working on a project where I need the drop down menus to be dynamic almost identical.
I found a java code that looks to do what I want it to do. But, being that I know very little about this, I'm not sure what goes where.

Calculate Values From Drop Downs
I've been trying to get this to work myself all day long before posting here.

I want to create an order form which includes 2 drop down menus, StartLength and EndLength, the menu options for both being:

0-10 min
10-30 min
30-60 min

The respective values for each option are:

25
50
100

(the user should not see these values.) The total cost will be displayed and will be the average of the two values.

I've tried several different things, and nothing has really worked.
Here is the code I have at the moment.. Code:

Auto Populating Multiple Drop Downs.
im trying to create two dropdowns, i need the first one to be the category and the second one to be the subcategory.  The category drop down autopopulates with the correct info from the database. and uses the table "category", the value of each drop down is represented by the "cat" field in the table (cat is basically and integer id number) and "Category" is used as what the user actually sees in the drop down (category is the actual word of the category).

Once the category is selected i would like to have the sub category auto populate with everything that has the same values as the selected category (cat)

Here is a break down of how the tables work.

Table 1 Name: "category"
Fields for Table 1:  "cat" (the id number), "category" ( the actual name of the category)

Table 2 Name: "subcategory"
Fields for Table 2: "cat" (corresponds with the cat id from table 1 to pull the correct data), "subc" (the basic id of the subcategory), "subcat" the actual name of the subcategory.

so the way i see it, have a normal drop down populated by a php query. then on change, populate subcategory drop down where cat = cat and display sub category.

Upgrade To Php 4.3.2
I am currently running php 4.2.1 on FreeBSD. How would I go about upgrading this to version 4.3.2.

How To Upgrade From 4.1.0 To 4.2.2
Can anyone help by giving dead simple step by step instructions for me to upgrade from 4.1.0 to 4.2.2? I am running on Windows ME and using Apache and MySQL.

Should I Upgrade To PHP 4.3.1 ?
I am currently running PHP 4.2.3. I want to install the gdLib and I want to do this as quickly and painless as possible. Should I upgrade to 4.3.1 (i.e. does this have the gdlib included in it) or should I try and install the gdLib with 4.2.3 (from which i can tell is a difficult process)?

Upgrade Help Please
Which is the correct newsgroup to post questions on upgrading RedHat 9.0 to the latest
PHP?

Upgrade Php 4 To 5
if i upgrade from php4 to php5, will all my scripts still work?

PHP & MySQL Upgrade
I am looking to upgrade my versions of PHP & MySQL on my server. I am
wondering what websites you would recommend that are easy to fallow and
with step by step instructions on how to upgrade both of these.

Also how to keep all of the extions or even install more extions for PHP.

MySQL Upgrade
While I know that this forum isnt the primary place for this, I cant seem to get any answers from the people in the MySQL forum (not enough expertise or time I suppose), so since many PHP people use MySQL maybe you guys have tackled this one already.

Basically I want to move from MySQL 3.23.56 to 4.0. I can find the various routines to run to fix the data in the databases. But my question is more fundamental. Once I get the 4.0 release, do I just install it via the setup, or do I need to UNinstall 3.23.56 first?

Current environment: WinXP Pro, IIS, PHP 4.3.1.

Php5 Upgrade
I've been asked to upgrade an existing older linux/apache/mysql/php installation to php5. I'd rather not mess with the other components if I don't have to - just php5. Can I do that?

I can get around the command line ok, but haven't done alot of configuration. The install instructions at http://www.php.net/manual/en/install.unix.php include steps on compiling apache -- do I really need to do that?

Upgrade PHP With GD Support
My current php version is 4.3.3My current GD version is 2.0.15I want to upgrade GD to 2.0.28. How to upgrade it.

Upgrade To 4.3.10 Issues?
I got an email from my web host stating that they are going to upgrade
their PHP on the server from 4.3.8 to 4.3.10.

Are there any known problems with this upgrade that need to be addressed
in the PHP scripts I use? I'm sure there will always be some small
glitches in an upgrade like this but I'm looking for any info on the
scale of any "register globals = off" type changes.

Upgrade Php Version On Red Hat 7.1
I've got a server running Red Hat 7.1 with the default installation of php/apache. This version of php doesn't have a lot of the default functions I need like mysql and odbc support. The php rpms for Red Hat 7.3 have the options I need.

Can I just install these rpms on Red Hat 7.1? I tried doing this and it told me some libraries I need are not present. Would installing these libraries cause any problems?
If anyone knows of the best way for me to add these options for php that I need, please let me know.

How Do You Upgrade Php On Linux?
I need to upgrade php 4.3.7 to version 5.0.0 on slackware linux. Do I
need to uninstall 4.3.7 first or will installing 5.0.0 just overwrite
the 4.3.7 version? I'm running Apache with php.

Division By Zero After PHP-Upgrade
I have following problem after my hoster updated to PHP 5.2.1. I'm not
really sure from what Version the update was done, but it was
definetly something like 5.x.x.
Locally I run XAMPP w/ PHP 4.4.4 and my script runs just fine.

These are the two lines which generate the error.
$return = $sbox0[$b0] + $sbox1[$b1] % pow(2,32) ;
$return = ($return ^ $sbox2[$b2]) + $sbox3[$b3] % pow(2,32);
It doesn't matter what is stored in the sboxes since the error has to
be from the modulo.

I tested if pow(2,32) would generate a zero, but it doesn't. So that
can't be the problem.

Upgrade From PHP Version 4.2.2 To 4.3.10
I am currently running
PHP Version 4.2.2 on Red Hat Linux release 9 (Shrike)
with Apache/2.0.40 (Red Hat Linux)
I would like to upgrade to the latest version of PHP (4.3.10 ?).

PHP was pre-installed as RPM version, I would like to know where i can
find an RPM upgrade...

What are the steps to take, will original php.ini be overwritten,
do i need to change Apache confg files.

Does Upgrade Cause Slowdown?
I am a webmaster of a website and the server maintianers upgraded from
php 4 to php 5.At around the same time my site slowed down.Does a php
upgrade cause a site to slow down? Is there any way in which I can find
out why my site slowed down?...

$HTTP_REFERER Unuseable Since 4.22 Upgrade ?
$HTTP_REFERER returns nothing since my Host upgraded to Php 4.22. I haven't seen any mention of a name change. Wherabout should I look ? I need to fix this ASAP.

How To Upgrade PHP Via FreeBSD Port?
I'm currently running PHP 4.05 on FreeBSD 4.3. I installed PHP via the ports collection, and now I want to upgrade to 4.06. What would be the best method for accomplishing this? On a test server with the same configuration I deleted the /usr/ports/www/mod_php4/work directory and did a make install. when i ran phpinfo() it said that it was version 4.06, but I don't know if that was really the right way to do it.

Upgrade To PHP 4.2.2 From 4.2.0 Mysql Error
I'm running PHP 4.2.0 on Suse Linux. I compiled PHP with :

./configure --with-mysql --enable-trans-sid --with-sybase=/usr/local/freetds --with-apxs=/usr/local/apache/bin/apxs

When I compiled 4.2.2 it compiles and installs fine, and I checked this with phpinfo(). However my scripts using MySQL can no longer connect.

Script Problem With Upgrade To PHP 4.3.1
I have tried this script on PHP 4.2.3 and it works. then I upgraded to 4.3.1 and it doesn't work. I believe its because the variable use the null function and that was removed in 4.3.1 Can anybody tell me how I cn get this working? Also the variable declration might hve changed. PHP Code:

MSSQL Problem After Upgrade To 4.3.10
My hosting company upgraded yesterday to pHp 4.3.10. Since then, all my
INSERT/UPDATE/DELET query on our MS-SQL database seem to fail. No
specific error message is returned by mssql_get_last_message(). The
SELECT statements work fine.

If I test on my local server running 4.3.9 the application behaves
properly.

Upgrade PHP4.3.7RC1 To 4.3.9
I want to upgrade, but can anyone tell me if it is an good idea tot install
the newer version on top of the old one? Ore can i aspect than problems
whit my configuration?

Upgrade Or Separate Installation?
I have been using a prepackaged WAMP (Windows Apache MySQL PHP)
installation and along the way (over several years) have modified this
and that, added vhosts, modified php.ini the way I want, set up a live
php manual (docref_root), moved DLLs, and a thousand other things.

Problem is, I have not had to modify anything in a *long* time.
Everything works wonderfully as is, I just want to try out some newer
features (5.0.4).

Quite frankly, I am not confident in my knowledge of the upgrade process
(yes I have read the documentation, I don't find it that helpful).

I am beginning to think it would be safer to just create a separate
installation of PHP and point a vhost to it or something.

Am I being paranoid or is there some *really* simple instructions
somewhere for upgrading just PHP on a Windows system?

How To Upgrade Beta3 To 4.0 Release?
How would I go about upgrading php4b3 to php4.0 release? I realize I could remove apache and php and reinstall, but it seems there should be an easier way. I am running FreeBSD 4.0 and apache.

Upgrade PHP With Informix Support
My existing PHP installation has mysql support, however I need to add informix support.
Can I upgrade PHP with informix support, or do I have to reinstall everything?

How To Upgrade My Easyphp1-8 Php4.3 Into Php 5?
Im using easyphp1-8 currently and intend to upgrade the php4.3 into
php5 as many of the functions are not allowed, or undefined.... so how
do i proceed with this?

Upgrade OpenSSL = Relink PHP?
I just learned that the version of OpenSSL I'm running (on a RedHat EL)
server has some vulnerabilities that I'd like to close. I'm running PHP
5.1.4. My question is this: I've got PHP 5.1.4, and it's built with
"--with-openssl=shared" in the ./configure command line. If install the
latest version of OpenSSL, do I need to relink PHP?

Php Problem After Apache Upgrade
Hi, they just upgraded my webserver to apache 1.3.17 and now I always get these errors on all my PHP pages What's changed that all my code wont' Method Not Allowed The requested method POST is not allowed for the URL /~simpson/test/test.html

Anyone Managed To Upgrade From Php-4.2 To 4.3 On Redhat9
I am currently running Redhat 9 with PHP4.2
I would like to upgrade to PHP4.3 (RPM) in order to install Sablotron
XSL Processor.
Did anyone managed to do so.

ImageMagick Upgrade Problem
I used to run the next command on ImageMagick v5.5.7 to resize an
image:

convert -size 64x64 in.jpg -resize 64x64 +profile '*' -type Optimize
out.jpg

When upgraded to ImageMagick v6.2.5 the same command fails with the
error:

convert: no decode delegate for this image format `in.jpg'.

I saw a comment that the syntax was changed. What is the new syntax for
the same command in v6.2.5?

Server Upgrade, Php Problems?
My site recently had its controll panel upgraded, beforhand i was able to update delete and insert records, now i cant insert? Has anyone heard of this or is it just a coincidence ?

GD Image Error After Php Upgrade.
I've just recently upgraded to PHP Version 5.2.3 from 4.4.7 and noticed a problem with one of my GD images. It should use verdana.ttf for the text using the code below
imagettftext($image, $fontSize, 0, $margin, 73, $black, $font, $tickerText);
But for some reason the text is messed up... and ideas why?

Client Not Requested (How To Upgrade PHP)
Client does not support authentication protocol requested by server; consider upgrading MySQL client Another one Is it possible to UPGRADE php version 4.5.5 to php5 ? Here I stuck now? what should I do now? Pls Help anyone For this.

Error With Streaming Png And A Upgrade To PHP4.3.4
I had a very simple gallery for photos on my site.
The gallery was coded by an old friend I don't have contact anymore.
I don't know much about PHP, so I used his code and everything was
fine until I upgraded my PHP.
I wanted to start learning PHP/mySQL so I upgraded from 4.1.2 to
4.3.4, and now the gallery doesn't work any more.
I have tried to fix and still am going to, but I have seen some errors
in his code that should have caused an errors before but didn't. This
doesn't make sense to me.

It now creates output like this.

notice:
notice:
warning
here is the streamed PNG file.
and then it repeats the same notices and warning over again.

So what I want to know is there away to get this to work now without
fixing the code, as it will take me a while to get good enough to
understand and fix it all.
I'm still going to try and fix it, it fun to learn, but it sort of
suxs that it doesn't work anymore.

Upgrade OpenSSL Version = Rebuild PHP?
I just learned that the version of OpenSSL I'm running (on a RedHat EL)
server has some vulnerabilities that I'd like to close. I'm running PHP
5.1.4. My question is this: I've got PHP 5.1.4, and it's built with
"--with-openssl=shared" in the ./configure command line. If install the
latest version of OpenSSL, do I need to relink PHP?

Upgrade Methods, Php, Pear, Phpdoc
I want to upgrade my version of PHP and with it, to be consistent PECL.
I'm assuming, I'll also need to install Pear from scratch
Maybe I'll go all the way and upgrade my Apache2 webserver

from my current phpinfo() Apache Version Apache/2.0.54 (Win32)
PHP/5.0.4
from Apache's website: Apache 2.2.3 Released

I think it would be hard to install over my current installation at
C:php
I'll probably save my .ini/cfg files (Apache also), rename the
directory and start from scratch.
Since I don't know what Pear does in its installation process, I
envision a nightmare, if I tried to move things over manually.
Starting from scratch has to be the cleaner, simpler way to go.

Mogrify -draw Text Stopped Working After Upgrade
If anyone can recommend a more appropriate newsgroup for this question?

We recently upgraded from php 4.1.2 to php 4.3.9 and ImageMagick 5.5.7
to version 6.2.5. I have a script that creates a random number image as a Turing Test, and without changing that, it's stopped working right after the
upgrade. But, only part of the mogrify command.

Here's the line I'm using:

$imagick = '/usr/local/bin/mogrify -pointsize 26 -draw 'text
'.$txRand.','.$tyRand.' "'.$rand.'"' -rotate '.$rRand.' -swirl
'.$sRand.' -charcoal 2 /var/www/html/verimgs/'.$mrand.'.gif'

exec("$imagick");

PHP is executing the command OK, because it creates the image and does
the swirl and charcoal and the rotate, but it's not doing the -draw
part.

If I echo $imagick it's perfectly formatted:

/usr/local/bin/mogrify -pointsize 26 -draw 'text 17,23 "659"' -rotate 2
-swirl 25 -charcoal 2 /var/www/html/home/verimgs/97531.gif

I can run that line in a command shell and it will perform perfectly.

According to the ImageMagick site:

http://www.imagemagick.org/script/c...ptions.php#draw

I'm formatting the -draw switch just right.
But still, it won't print the numbers onto the image.

I don't get it. What may have changed in the upgrade to prevent this
script from working the way it did before?

PHPMYADMIN Upgrade Caused Table Structure To Change
My host provider recently upgraded the phpmyadmin to 2.9.2 and mysteriously there were then problems with my website.

First of all, in some tables enum fields were changed. For example Paragon 1,2,3,4 got changed to Paragon 1ÿ2ÿ3ÿ4.  Replaced the , commas with y with 2 dots. Also, my cart whcih uses cookies starting to act very strange.

Has anyone ever experienced anything like this. Host provider cannot understand this. I did spot an error when I logged into phpmyadmin that the mbstring was not installed so the host porovider fixed this and all seems to go back to normal but I would like to find out what exactly happened.

Unable To Pass Parameters To Php Page After Upgrade From Php3 To Php4
After I tried upgrading my php version from 3 to 4, all my code which passes
parameters between web pages have stopped working. Not sure what the problem
is. Have tried defining the parameters in the accepting php page with a
'$_GET["parameter_name"]; and also a $_REQUEST["parameter_name"]; but with
no luck. Even tried Globals without any luck.

Below is an eg. of what I am trying to do..

Why I Sart Getting 'Fatal Error: Allowed Memory Size...' After Php Upgrade?
The hosting company I have one account (and several Add Domains)
upgraded php on the server from 4.4.7 to 5.2.5. After the upgrade I
start getting the error message:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
allocate 122880 bytes) in...

on domains they use Gallery2 or are CMS (Joomla or Drupal) based....

Fpdf Not Using Specified Filename In "Save As..." Dialogue After Acrobat Upgrade
Using the string:

$pdf->Output("testfile.pdf", I);

the "Save As..." dialogue box does not provide the specified filename.
The default is the name of the PHP page used to generate the PDF.

It worked when using Acrobat 4.0 and since upgrading to 6.0, it no
longer works.

The "D" and "F" switches do parse the correct filename.

Problem exists in both Netscape and IE.

Anyone else experience this and is there a resolution?


Copyright © 2005-08 www.BigResource.com, All rights reserved