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




Form Data Not Passing To PHP Handler


Using a basic PHP file to handle incoming form data of a single text
field, I have determined that the contents of the input is not being
passed. The PHP reports the variable as empty...

I suspect the reason it is getting "lost" on the way there is that the
form is part of an include (header.html) rather than hard coded into
the main page. So its link to the PHP handler is not direct. Is that
possible? I was using GET method but to eliminate issues such as
superglobals being off, I switched over to POST, at least for now and
until I get it working...




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Passing Form Data
I have a project that consists of a large quiz that displays multiple questions per page from a database and then saves those answers to another database table. The issue I'm having is with a form that consists of radio buttons and check boxes. The form is only submitting the last checked value for the check boxes rather than all checked values. I'm sure this is an easy fix but my mind is about to explode from a full day's work and a lot of time trying to figure this out, so I was wondering if someone could give me a hand. Code:

Need Help Passing Form Data To A New Window.
I have a form that one can enter their nickname for a IRC Java Applet. They enter their nickname and when they submit it should pass the nickname onto the applet.

It will work if I use the normal form method="post" action="blah", but I need it in a new window, and it's not working out that way. PHP Code:

Passing Form Data Through A Page
I'm in the process of creating a new form that stores customer input into a MySQL database. What i'm attempting to do is allow them to fill out their data, and hit 'next' to go on to a file upload form.

Upon completing that form and submitting, all information (including their data from page 1) is posted at the same time (so it's all under the same ID).  What would be the easiest way to do this? Right now my submit file (submitquote.php) contains the following data (all on one page). Code:

Passing Form Data Back Into The Same Script?
I am looking for a really simple example of passing submitted form data back into the same script. I've found quite a lot of stuff online about it, but none of which mentions the new $_POST globals and stuff. This is all that I want to do...

1. First run into the script, displays form
2. Form data submitted, same script run but check is made on $_POST variables (is isset() the best and safest function to use for this?). If all variables are present, skips to form processing code. Otherwise, reshows form with previously entered fields.

I must admit, it's been a while since I've done any PHP and since moving to my new host (running a lot newer version of PHP, with the $_SESSION globals etc...) I'm more than a little confused as to the safest way of going about doing sessions.

For form submitted data do I refer to it as $_POST['whatever'] throughout my script or is it acceptable to reassign them to locals at the top of every script? And does the same apply for $_SESSION?

Passing Radio Button Form Data
I am running php as a sapi module on winXP with Apache. I am passing the data from a radio button from one page to another to be processed. For some reason it seems to be passing no data - for example in the 1st page I would have 3 radio buttons in a loop:
<input type='radio' name='radio' value="<?php echo $val ?>">

I would then attempt to read the data in page 2 : <?php echo $radio ?> but this comes up empty. I tried using "get" in my form, and although the name/value pair appears in the URL string, it does not pass itself to the $radio variable in the next page. What the??? Does anyone know of any reason why php would NOT allow a radio button (or any other form object) it's data to pass on. I am not using sessions.

Syntax For Passing Array Data From Checkboxes In A Form
If I have a list of checkboxes saved in an array,when I submit (POST) the form data, do I need to use $HTTP_POST_VARS in the target document, or can I just use the following code:

for ($i = 0; $i < count($selectedmessages); $i++){
$checkbox_value = "$selectedmessages[$i]";}

If I need to use $HTTP_POST_VARS, what would the syntax be if my array is called selectedmessages[]?

Passing POST Data On Link Click, And Not Form Button
is it possible to send a form data to a page, using a link instead of a button?

id prefer not to have to rely on javascript, so i would like it to be ras html, or the like..

Passing Form Data To An Email Address/Excel Sheet On A Local Computer
I am right now learning PHP & want to know if there is a way to send
web form data to an Excel sheet located on a network. My windows xp PC
doesnot have a copy of Excel. Also i am not connected to the internet,
its a local computer.

What i am trying to do is to make a PHP script which will send a simple
form data to an excel sheet (or create a new Excel sheet) on another PC
on a network.

Since i am not connected to the internet, i will not be able to send an
email (anyway, sendmail is not available on Windows OS), nor do i have
any server on windows.

Is it possible to send form data to Excel sheet on local computer? Even
my PC is a local PC. Some one was saying its possible thru Windows
Scheduler.

Generic Form Handler
I have a number of forms on a website that I maintian. A few of them have 40+ fields and are currently being handled by frontpage server extensions.

What I would like to do is write a generic form handler that can take any number of fields and process it, then email the contents to the appropriate person. I do not want to have to write a seperate form handler for each form. I'm trying to save myself work in the long run. Can this be done? Do I have to use an array?

Where Is Form Handler Code?
I'm working on an open source PHP project.

what PHP does when there is no 'action='
specified in the form tag?

An example being: <form name='EditEntity' method='POST'>

I've seached all the code for 'EditEntity' and '$_POST' but no sign of
either.

Could Someone Show Me How To Make A Form Handler?
I have tried and tried, but I can't seem to make a php form handler. I would love it to be able to check for required fields, and to be able to show the viewer their information before it is submitted, so they can make changes before it is submitted.

Posting Form Data And Also Allow To Download Form Data
i have a client that whats to post form data to a database but he also wants users of the script to download it aswell how will i got about doing this i thought about it that i could make it save it into a txt file then echo the download link is there any ideas? because to post it to a txt file it would be posting 2 places is there a way to do this? Code:

Passing Data From PHP To ASP
I am writing a PHP script that will need to push data to an ASP script on another server. Unfortunately, I have no control of the ASP server, so must adapt my script to push the form data. How easy is this to do?

Passing Data Via HTTP_POST_VARS
I have a form submitting to a script. In that script I want to send the browser back to the form along with some error data stored in the HTTP_POST_VARS array. PHP Code:

Passing SESSION Data
didn't seem to work. I have set session.use_cookies = 1 and
session.use_trans_sid = 1 in my php.ini file. Index.php contains:
----------------------------------------------------------------------------
<?php
ini_set("session.use_cookies", "off");
ini_set("session.use_trans_sid", "on");
session_start();
$_SESSION['entered_username'] = "";
$_SESSION['login'] = "";
echo "<form method='POST' action='login.php'>
Username:</b>
<input type='text' name='username'
<b>Password:</b>
<input type='password' name='password'
<input type='submit' value='Login'><b>Not a member?</b> Sign up <a
href='register.html'>here</a>
<b>Forgotten your password?</b> <a href='password_reminder.php'>Click
here</a> to have it e-mailed to you.
</form>";

?>
----------------------------------------------------------------------------
Viewing source from browser reveals:
----------------------------------------------------------------------------
<html>
<head>
<title>Welcome</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1"></head>
<form method='POST' action='login.php'>
<b>Username:</b>
<input type='text' name='username'>
<b>Password</b>
<input type='password' name='password'>
<input type='submit' value='Login'>
<b>Not a member?</b> Sign up <a href='register.html'>here</a>
<b>Forgotten your password?</b> <a href='password_reminder.php'>Click
here</a> to have it e-mailed to you.
</form><H1>Header 1</H1>
<H2>Text about something</H2>
</map>
</body>
</html>
----------------------------------------------------------------------------
As you can see, no hidden field. I'm not sure what I've done wrong here. The
PHP on the login page contains session_start(); at the beginning, as does
member.php but on the member.php page, I get: Notice: Undefined index:
login in C:Webmember.php on line 12
Line 12 contains the following:
----------------------------------------------------------------------------
if ($_SESSION['login'] != 'yes')
{
echo "You haven't logged on!<p>
<a href='index.php'>Click Here</a> to return to the login page";
exit();
}
----------------------------------------------------------------------------
$_SESSION['login'] isn't being passed even though it was set
in login.php using the following:
----------------------------------------------------------------------------
if(mysql_num_rows($result) == 1)
{
$_SESSION['entered_username'] = $_POST['username'];
$_SESSION['login'] = 'yes'
header('refresh: 3; url=member.php');
echo "<h2><center>You have been validated. Please wait, logging you in. .
..</h2><br>
<center>If your browser doesn't support redirection and you're still here in
3 seconds, <a href='member.php'>click here</a></center>";
}
----------------------------------------------------------------------------
The $_SESSION data is available if I use mysql_fetch_array as I used below
to get $entered_username from the $_SESSION array, but can I use something
like this to extract the ['login'] variable from the array and then test it?
----------------------------------------------------------------------------

$query="SELECT firstname, lastname from $Table WHERE
username='$entered_username'";

$result=mysql_query($query)
or die(mysql_error());

while($row = mysql_fetch_array($result))
{
echo "<b>Welcome ". $row['firstname'] . ' ' . $row['lastname'] . '</b>'
}
----------------------------------------------------------------------------
Am I right in thinking that I should be setting the $_SESSIONs up on the
index.php page? I have read that this is the correct way to do it and I
can't personally see anything wrong with doing it this way.

This problem has turned into a bit of a quest as I have spent so long trying
to get it to work! I could just surrender and tell users that they will have
to use cookies but I really want to know why this doesn't work.

Passing Data Between Scripts
I have a php script which displays some HTML stuff along with some
images generated on the fly by another php script. Example:

<?php

// Script1.php

$fp = fopen("c:/some_path/file1.txt", "r");
$tmp = explode(" ", fgets($fp));
fclose($fp);

$ts1 = $tmp[1];
$ts2 = ltrim (date("h:iA", strtotime("$ts1 +30 minutes")), 0);
$date = date("D M d, ") ."$ts1 - $ts2.";

echo "<ul><h1 align="left">ABC Company.</h1>";
echo "<h2 align="left">$date</h2></ul>";
echo "<img src="Script2.php" border=0 width=500
height=500><br>;
";
echo "<br>";

?>

Is there any way that I can have Script2.php access to the array $tmp
without having it (Script2.php) open file1.txt and reading in the data?
It's a large data file, not something I can pass as variables in the
URL. Ex:
echo "<img src="Script2.php?var1=$tmp[1]&var2=$tmp[2]" border=0
width=500 height=500><br>;
";

Passing POST Data To Php-cgi.exe
How do I pass POST data to php-cgi.exe so that in the PHP script I can
work with that data using $_POST["variable"]?

Passing Data Through PayPal
I need to passing some data through PayPal to a PHP script the data I need to send is the persons userid, I understand I may have to use IPN for this.
 
I need to pass the members UserID through PayPal to a PHP script.

I have Googled and found paypaltech which give a guide how to pass data through PayPal using a session, however, I would like it to auto return to the PHP script that will display some texts, so to have it auto return will I need to use IPN ?

If I using IPN can I still use the session or should I use item name or item number ?

If I use item name or item number does anyone know how to put that into my PHP script ? If I use sessions how long does the session last for and will it always work regardless of browser ?

Passing Additional Data With Ismap
I'm trying to write a mapping app that the user can click on some nav
buttons (Up, Down, Lf, Rt, Zooom, etc) to pan/zoom the image but also
include 'ismap' such that where ever the user clicks on the image, it
will recenter on that spot (X,Y). I can get things working with either
the nav buttons or ismap but not both due to fact that I need to pass 3
additional name/value pairs (xc,yc,z_num) to the calling script. This
is what I'm trying:

<?php

//########### geo_caller.php #############//
//#### Original Image size 1800 X 1200 ######//

$base = 0.8;
$input=array_keys($_GET);

if (isset($zoom)) {
$z_num += $zoom;
$z_fact = pow($base,$z_num);
} elseif (isset($horz)) {
$z_fact = pow($base,$z_num);
$xc += $horz*80*$z_fact;
} elseif (isset($vert)) {
$z_fact = pow($base,$z_num);
$yc += $vert*60*$z_fact;
} elseif (isset($input[0])) {
$z_fact = pow($base,$z_num);
$coords = explode(',', $input[0]);
$xc += (400-$coords[0])*$z_fact;
$yc += (300-$coords[1])*$z_fact;
} else {
$z_num = 0;
$z_fact = 1;
$xc = 900;
$yc = 600;
}

$scr_wdth = $z_fact*800;
$scr_ht = $z_fact*600;
$scr_x = $xc-($scr_wdth/2);
$scr_y = $yc-($scr_ht/2);

print "<input type=hidden name=xc value=$xc>";
print "<input type=hidden name=yc value=$yc>";
print "<input type=hidden name=z_num value=$z_num>";.........

Passing Data To A Client Window
I have been following a topic about passing data to a client window, that was here some time ago, but i can't get it to work, any suggestions? The function is in the HTML part of the page: Code:

Passing Data To Another Page Using $_SESSION's
Is passing information from one page to another page using $_SESSION okay and secure.

Like First name, last name, address, social security number.

... or is there a more secure way of passing the information?

Passing Credit Card Data Via URL?
Is it possible to pass credit card data securely from one website to another (on a totally different server)?

Basically, a live data feed of orders from external websites, not hosted on the same server where the info is passed onto the gateway? I can't image passing cc info via the url string and expecting that to be secure. for example:

https://somesite.com?fname=jon&lname&ccnumber=4111111111111111&exp=MMYY..........

Am I just being paranoid? Or is this ok to do?

Passing Data From A Drop Down Menu
I have a website that I am working on. When the user logs in they see a drop down box and they are supposed to go to this box and select their name. How would I get the selection that they made to pass to the next page.

This is my code for the page with the drop down box that I have so far. It pulls from my database, and it works fine. Code:

Passing Data Into Generated Pages
I have a template page with items being displayed on it and the idea is when a user clicks that item it's item id gets passed into the next page so that it can be compared against the flat file database and then when matched displayed the item information.

I'll show you how i am displaying items on a page and then i'll show you the code i have developed so far to try and get the item id to pass pages and display the item details. Code:

Flat File And Passing Data
I am currently working on a project whereby users login to my website (which is working) and then using a form add new links/tabs to their navigation bar (which i need help developing). So for instance if the user had 'home/search engines/favourites' as links on their navigation bar and they wanted to add auction sites as a group title they fill out the form which wants the name of the link and the URL it goes to.

So far i can make the form send the link name and URL to my flat file database (usertabs.txt) but i also need the form to once submitted automatically insert the users username before the link and URL to make their new link unique to them. So in the flat file the structure will be:

username|Link name|URL

The usernames etc are stored in a separate .txt file.
I have this code so far which is the basis for uploading new links to a users navigation bar. $userid is the variable i want to be associated with the user who is logged on. Code:

Passing Session Data On An Href Link
I have a web page that gets info from a mySQL database for various
items, and slaps that info, along with pics onto the page. ( in a
shopping site stylee) The pics have an href link, and I want just one
display page that all the pics refer to, so that any items pic and
info can be viewed on its own. I therefore need a way of capturing the
pic info into a session variable when the link is clicked, so that I
can pull the individual item back out on the display page.

Comparing Form Data To Mysql Data
Im interested in building a script that would take form data, a variable like an address, and compare it with a known address in a mysql table (called addresses), then if there is a match log the address information in a separate table called (addresslog), and return the visitor to a certain page. If there is no match between the address entered in the form and known addresses then the information is still logged into the addresslog database but the visitor will be sent to a different page.

I'm still new to this, and am working through the logic and the syntax, but I believe I'm close. It's still not working, I have all of the proper tables, maybe I'm way off with the coding so I thought I would seek out some expert advice. Here's the entire script with as much explanation as I could give. PHP Code:

Passing Variable Through Hidden Input Drops Data
I have a form that is filled out that is passed to a preview page so the user can validate the changes they're making. On the preview page, they review their changes and hit the "Submit" button to have the data changed in the database.

The preview page submits the data to the page that does the work using hidden inputs like: PHP Code:

Value Not Passing From Form
I have a form where by the user inputs a number and then on the process page it uses the number for processing but when i echo the variable on the process page it is not picking up the value its blank.

Here is my form:

Passing Variable Not Using Form?
I am thinking of passing variable to another page not using form format. there are many links displayed in, say page1.php
when ppl clicking the link, the ID of the link will be send to another page, page2.php, so that page2.php can display the content according to the ID received.

Passing Arrays With A Form
Here is some code from the main page. PHP Code:

Passing Variables From A Form
Well I am having some strange problems with a web-based form that is used for users to submit data. I have moved the form and accompanying PHP files across from a Redhat 7.3 install to a new Redhat 9 server running Apache 2.0.40-21, with php-4.2.2-17. So, it is stock standard. Everything was working ok on the Redhat 7.3 install. The troubles I have run into is when I try and pass a variable from a form such as below: Code:

$_SESSION Not Passing To Next Form
I am using and setting: PHP Code:

Passing Variable Without Using FORM
I have a text box and a image button. I want to pass whatever the user has typed in the box to another file, in a new window, using window.open (...) command. I don't want to use FORM because I don't want the page to reload.

Passing Values From A Form
I want to know how can i pass values from a html page/form(php) to an applet i.e the values obtained from the form is used as parameters in the applet.

Passing HTML In A Form
What I am trying to do is pass HTML through a form in PHP. The form has to be in PHP format because I am really passing varables that have HTML in them.For example:

<font color="green">This is green</font>

Then when I assign the following: PHP Code:

Passing A Query From A Form?
I have wrote a script to query my mysql database based up a name that
is selected from an HTML list menu, the form action calls to my php
script from my html doc, I have tested connectivity to the databse and
have added a manual sql query to my php script to be sure it is
functioning properly, the problem is I'm not sure how to get the
script to see what option the html form is sending, I thought I could
use:

$query = "SELECT * FROM table WHERE email =
'{$_GET['selecteduser']}@mydomain.com'";

but that doesn't seem to be working properly. Maybe the HTML document
is sending it correctly? Here is my form:

<form action="report_results.php" method="post">
<select name="selecteduser">
<option value="selecteduser">Select One:</option>
<option value="user1@mydomain.com">user1</option>
<option value="user2@mydomain.com">user2</option>
</select>
<input type="submit" name="submit" value="Go!">
</form>

This form calls to the php script which then takes the input from the
HTML form and processes it into the $_GET query and sends it to the
while loop in the script, I'm not sure why this is not working? Here
is my php code

PHP:
--------------------------------------------------------------------------------
<?php
$db = mysql_connect("localhost", "sqluser", "sqlpasswd") or
die("Could not connect to Mysql");
if (!$db == False)
{
mysql_select_db("mydb");
$query = "SELECT * FROM table WHERE email =
'{$_GET['selecteduser']}@mydomain.com'";

$result = mysql_query($sql,$db);
while ($row = mysql_fetch_row($result))
{
print "<tr>";
foreach ($row as $field)
{
print "<td>$field</td>";
}
print "</tr>";
}
mysql_close($cn);
}
else
{
print "Problem Connecting to the Database<br>";
}
?>
------------------------------------------------------------------------------

Passing Form Variables To A Pop-up
I've searched the forums for this, but haven't seen any posts or solutions about this particular problem...I have a form in a php script that submits like this: Code:

Passing A Variable From A Form To Php
I don't seem to be able to send trough the variable 'language' from my
form to the php-variable $language that I want to use in my session...
I first tried in the form with a drop down menu (select) and now with
radio-buttons but it won't work... What am I doing wrong?
BTW: the variable 'toevoegen' is passed correctly from the form to the
php.

<?php

session_start();
session_register('language');

echo("Taal is $language <p/>");
echo("Toevoegen=$toevoegen <p/>");
if (!IsSet($language)){

$result = mysql_query("SELECT * FROM languages ORDER BY mylanguage");
if (!$result) {
echo("<P><b>Fout bij uitvoeren query: </b>" .
mysql_error() . "</P>");
exit();
}
echo("<FORM ACTION='$PHP_SELF' METHOD='POST'><INPUT TYPE='hidden'
NAME='toevoegen' VALUE=&#391;'>");
while (($row = mysql_fetch_array($result))){
echo("<INPUT TYPE='radio' NAME='language'>".$row["mylanguage"]);
}
echo("<INPUT TYPE='submit' NAME='kies_taal' VALUE='Choose
language...'>");
echo("</FORM>");
}

else{
echo("Uw taal is $language !");
}
?>

Passing Variables Through A Form
I have a setup where I am displaying lots of information, all of it comes from contact forms and is stored in a database. Then can be viewed on one page, through the scripts. One feature is that you can click on an email address to send an email to that specific user. When you click their email, the form comes up fine, and I have been playing with this for awhile.. I am having trouble getting the variables passed through so that I can send the email and update the database. Code:

Passing Form Variables
I'm trying to make a page that will let you change the order in which some items are displayed. The problem I'm having is passing back the id value of the item that you want to move up or down in the display order. Here is the code:

Passing Form Variables
Is there a way to read the variable names passed by a form if you dont know their names. I have a site where the users can edit a form but I need to then process it.

Passing Control Onto Another Form
I am working with a payment gateway, which sends its response with a specific php page.

Lets say response.php, with parameter ?val=data.  ie http://abc.com/response.php?val=data.

On this php page, I want to perform some processing, but ultimately dont want to display any html form with this page.  I need some way to perform my processing on this php page, then immediately redirect to another php to display the next form, with the results.  Can anyone advise on how this is achieved?

So for example, I want it to then  invoke display.php?mode=1&conf=1, which has the formal display with all the results.  All this with NO user input.

Passing Variables Through FORM -> IMAGES
I have to say this is bugging me, I'm trying to pass a variable through a form, but instead of "select" then "submit" type of form, I am trying to use IMAGES instead...

I am trying to pass the variable ($lang) , depending on the value of this variable, the page will look different (English or French )

I guess I am doing this the wrong way, I thought by giving both images the same name, but different values, it would work.... but it is not working.

here is the HTML code of the form itself :

Code:
<!--LANGUAGE SELECTION -->
<FORM NAME="pick_lang" METHOD="post" ACTION="<? echo "$PHP_SELF"; ?>">
<table border="0" cellpadding="0" cellspacing="0" width="165">
<tr>
<td rowspan="2"><img name="shadow_drapeau_r1_c1" src="tble_img/shadow_drapeau_r1_c1.gif" width="102" height="21" border="0"></td>
<td>
<INPUT TYPE="image" BORDER="0" NAME="lang" value="en" SRC="tble_img/shadow_drapeau_r1_c2.gif" WIDTH="21" HEIGHT="14">
</td>
<td rowspan="2"><img name="shadow_drapeau_r1_c3" src="tble_img/shadow_drapeau_r1_c3.gif" width="8" height="21" border="0"></td>
<td>
<INPUT TYPE="image" BORDER="0" NAME="lang" value="fr" SRC="tble_img/shadow_drapeau_r1_c4.gif" WIDTH="21" HEIGHT="14">
</td>
<td rowspan="2"><img name="shadow_drapeau_r1_c5" src="tble_img/shadow_drapeau_r1_c5.gif" width="13" height="21" border="0"></td>
</tr>
<tr>
<td><img name="shadow_drapeau_r2_c2" src="tble_img/shadow_drapeau_r2_c2.gif" width="21" height="7" border="0"></td>
<td><img name="shadow_drapeau_r2_c4" src="tble_img/shadow_drapeau_r2_c4.gif" width="21" height="7" border="0"></td>
</tr>
</table>
</FORM>
<!--END LANGUAGE SELECTION -->

I don't want to set images with links (<A HREF="$PHP_SELF?lang=$lang"> works, but I want the URL to remain clear of data)

Passing Objects Form One Page To Another
Is it possible to transfer objects derived from a class form one page to
another?

I made 2 testscripts:

person.php
-------------------------------------
<?php

class person {

private $_name;

public function setName($name) {

$this->_name = $name;

}

public function getName() {

return $this->_name;

}

}

$p = new person();

$p->setName("Jim");

$safep = urlencode(serialize($p));

header("Location:person2.php?data=".$safep);

exit;

?>

person2.php
---------------------------------
<?php

class person {

private $_name;

public function setName($name) {

$this->_name = $name;

}

public function getName() {

return $this->_name;

}

}

$x = unserialize(urldecode($_GET['data']));

echo $x->getName();

?>

But this does not work for me....

Missing Something In Passing Form Variables
I have the following code to select an item from a drop down menu and
call the same script over again. I am expecting that after the first
time the script is run the first echo would produce the selected PBX
name (e.g. FMSite) but instead I get FMSitepbx=FMSite.

Needless to say this screws up the further processing I want to do. What
I really want to do is set a cookie containing the selected PBX name so
other scripts can get the cookie and provide specific data.

<?php

echo($_POST['pbx']);
$dbcnx = @mysql_connect("localhost", "***", "**********");
if (!dbcnx){
echo( "<p>Unable to connect to database.</p>");
exit();
}
if ( !@mysql_select_db("inet") ) {
echo( "<p> Unable to locate the iNet database. " . mysql_error() .
"</p>" );
exit ();
}

$query = 'Select Name from PBX order by Name'
$result = mysql_query ($query)
or die ('Query Failed');
echo '<form action="setpbx.php" method="POST">'
echo 'Select PBX <select name="pbx">'
while ($row = mysql_fetch_array ($result)) {
echo '<option value="' . $row['Name'] . '">' . $row['Name'];
}
echo '</select>'
echo '<input type="submit" value="Submit">'
echo '</form>'

?>

Passing Form Results Problem
I have a form that validates itself when the user submits it. I have another page that formats the form results and sends an email. But I don't know how to pass the form results from one page to the other. Here's the form: PHP Code:

Passing Hidden Fields In A Form?
I'm wanting to take information that is put into a hidden field by a sql query and post it to a script...I have a page that lists the players(nfl), in a table, for each persons team. beside their players name on their roster is a dropdown menu that has starter and bench. these options both have values.

then i also have hidden fields with the players names. what i want to do is be able to apply whatever option is selected in the table to the hidden fields so they can be passed to the script. if anyone has any better ideas i'm open.

Passing Datetime Through Html Form
I am writing a script that allows my client to update live events that he will be playing at, for the table i have made in mysql i have used datetime to hold this value as both a date and a time need to be passed. what is the best way of making sure that a user enters these values in a correct manner and then combining these values to become one variable. i was thinking that a select menu would be best as that way the client cannot make mistakes, and making one select menu for date and one for time.

Would this be the best way ??, how could i append the date variable to the time variable??
if a select menu is the way to go does anyone know of a script i can use to save me having to hard code the whole thing myself.


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