Re: [PHP-DB] How do I keep the values of objects when refreshing page?

2001-06-29 Thread Hugh Bothwell

Hector M Banda [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi all,

 My page is getting the values and the submits itself displaying the
 information but the original selection is gone showing the objects with
 no info.

... so you have a form which submits values to a script and when you return
the form fields are blank?

How do you return to the form?  Does the submit script forward you to it
again?  If so, you will have to pass the parameters back again and change
the form code to fill the values in, something like

=== form.php ===
form action=submit.php method=post
brName: input type=text name=name value=?= $name ?
brPhone: input type=text name=phone value=?= $phone ?
brinput type=submit
/form

=== submit.php ===
?php
storeValues($name, $phone);
header(Location: form.php?name=$namephone=$phone);
?

You will also need to consider some method for preventing duplicate entries.



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] How do I keep the values of objects when refreshing page?

2001-06-28 Thread Jason k Larson

Please be more specific.

Hector M Banda [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi all,

 My page is getting the values and the submits itself displaying the
 information but the original selection is gone showing the objects with
 no info.


 Thanks,


 --


 ===
 Hector M Banda
 Fax: (425) 790-6379

 ===

 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] How do I keep the values of objects when refreshing page?

2001-06-27 Thread Hector M Banda

Hi all,

My page is getting the values and the submits itself displaying the 
information but the original selection is gone showing the objects with
no info.


Thanks,


-- 


===
Hector M Banda  
Fax: (425) 790-6379

===

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]