Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 10-10-2002, 02:42 AM   #1
LQ Newbie
Registered: Oct 2002
Posts: 4

Rep: Reputation: 0
Unhappy Problems with php 4.2.1 form-data and hidden variables

I've experienced the following problem, using php 4.1.2, with mozilla 0.9.9 :

i've put in a simple html file the following form :

<form action="action.php" method="POST" enctype="multipart/form-data">
<input type="text" name="testo" />
<input type="hidden" name="var1" value="1" />
<input type="hidden" name="var2" value="2" />
<input type="submit" name="sub" value="ok" />

the action.php is a very simple script printing the values of the 'testo' var :


echo( "<p>" . $_POST["var1"] . $var1 . $testo . "</p>" );


The result page is always the same : nothing printed on screen, even with register_globals=on.
Is this right ? There is something else i should aware of ?

I've done this experiment because i tried to run phpWebSite 0.8.3, but the admin pages contains a lot of forms mixing hidden vars, with enctype="multipart/form-data",
but the hidden vars seemed to be ignored, provoking an abnormal behaviour (the app return always to the main page).
Old 10-10-2002, 03:24 AM   #2
LQ Newbie
Registered: Oct 2002
Posts: 4

Original Poster
Rep: Reputation: 0
Talking Ok, i found the problem !

.... it was the file_uploads flag in php.ini turned off !! I apologize for this ingenuity ... after all i'm a newbie ...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Are PHP session variables held in memory when you leave a PHP site? Locura Programming 11 11-16-2008 08:37 PM
PhP Problems (email form) webwolf70 Programming 5 10-14-2005 05:13 AM
PHP:Unable to post variables from html form to mysql database vikram_cvk Linux - Software 1 09-29-2004 03:01 PM
willing to pay $$$ PHP / Javascript multiple paged form; carrying over variables micro_sucks General 1 12-26-2003 09:37 AM
problms w/ php 4.2.1 mozilla 0.9.9 enctype="mutlipart/form-data" w/ phpWebSite 0.8.3 coea77 Linux - Software 1 10-10-2002 03:29 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration