You are here: Re: Passing data between php files « PHP SQL « IT news, forums, messages
Re: Passing data between php files

Posted by Jerry Stuckle on 10/10/05 01:09

cover wrote:
> I have a form with two drop down boxes that are hard coded as in the
> example below, and another drop down (pull down) box that is populated
> as a result of a MySQL query. All appears to work as it should with
> the exception that after choices have been made and the submit button
> clicked, (to either enter the data into another database OR work
> together in another query - I've tried both), the field that was
> populated by the initial query does not pass it's data as the hard
> coded fields do. In other words, the 'month' below passes user data
> to $month in mmonth.php but the data in the queried cell 'person' does
> not pass to $person in mmonth.php - can anyone tell me why is
> that? TIA - appreciate all replies...
>
>
> <form method="post" action="mmonth.php">
> <input type="hidden" name="id" value="NULL">
> <tr>
> <td><b>Month:</b></td>
> <td><select name="month">
> <option value = "Jan">Jan</option>
> <option value = "Feb">Feb</option>
> <option value = "Mar">Mar</option>
> <option value = "Apr">Apr</option>
> <option value = "May">May</option> etc
> </select>
> </td>
> </tr>

They only way the select box would pass the value to $month in
mmonth.php would be if register_globals were set to "on" - which is a
huge security hole.

Rather, you should have register_globals set to "off" (which it probably
is since you don't see the value passed) and you can find the value in
$_POST['month'].

And next time you might try posting to ONE or TWO newsgroups.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация