One variable works, the other does not (solved)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Bigun
Forum Contributor
Posts: 237
Joined: Tue Jun 13, 2006 10:50 am

One variable works, the other does not (solved)

Post by Bigun »

I have two variables:

Code: Select all

$songname1
$songfile1
As you may have guessed, $songname1 contains the name of the song, and $songfile1 contains the filename of the song.

Those values are filled in via HTML form then re-used and evaluated upon being submitted.

Upon being submitted, for some reason, $songname1 retains the value typed in, and $songfile1 does not.

Also noted that this code has recently been migrated to a server that I now control and was working on the server it came from. So I'm sure its a php.ini setting somewhere.
Last edited by Bigun on Sat Feb 24, 2007 11:10 am, edited 1 time in total.
nickvd
DevNet Resident
Posts: 1027
Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:

Post by nickvd »

I seriously hope that you don't expect us to solve your problem with only the code you posted... (hint, hint)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

How are these variables being set from the form? Can you post the form?
Bigun
Forum Contributor
Posts: 237
Joined: Tue Jun 13, 2006 10:50 am

Post by Bigun »

Hey feyd... I got it, I found this page:

http://www.radinks.com/upload/config.php

It was a php.ini problem and had nothing to do with the HTML or PHP code.
Post Reply