LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-10-2002, 02:42 AM   #1
coea77
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 :

<html>
<head>
<title>Prova</title>
</head>
<body>
<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" />
</form>
</body>
</html>

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

<?php

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
coea77
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 ...
 
  


Reply



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:19 AM.

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