[PHP] Re: Submit Form

2003-01-09 Thread DreamRiver

Steven (cc list),
The sticky part is: ---User comes back next day, clicks load

For that functionality you will need to remember the user, the last project they were 
using and the form they were 'on'. How? 

You can have the user log in to their last saved state (which you will save when they 
log out), or set cookies on their machine or ... either way you need a unique way to 
identify the user, their work and their last form. 

When you decide how to maintain/save this 'state' information then your work is laid 
out for you ...

You can also see some commented and working code for db inserts, cookies, logins, 
prefilling form data fields, javascript form validation etc. - what you refer to - by 
downloading a FREE application called phpyellow Lite Edition here:

http://www.dreamriver.com/phpcheckout/showcase.php?productnumber=1

After unzipping take a look at loginResult.php which may have some code you will need. 
You can skip the install and go right to the code, because a working demo of the code 
is here:
http://phpyellow.com/phpyellow/index.php

This won't answer all your questions, but at least it's a start... the key decision 
you need to make is how you will save your 'state' information.

richard.
http://www.dreamriver.com

Stephen wrote:
__
Message-ID: <001101c2b762$b8624080$0200a8c0@melchior>
From: "Stephen" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Date: Wed, 8 Jan 2003 17:10:13 -0500
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_NextPart_000_000D_01C2B738.CEFB1C10"
Subject: Submit Form

Hello,

I have a question. First of all, I want to save the data a user has typed in a form 
into a MySQL database so they can load it up for later use but, I need to first submit 
all the form vars on the current page from a link. This may be Javascript, but either 
way, I'm not sure how to do it. Any ideas? Here's a graph kinda...

-User enters form and submits the first page
--User taken to second form
---User fills out the first two fields
User clicks a "Save Progress" link and all form fields submitted
(I can do beyond this part but just so you get the idea of what I mean)
-PHP saves current form vars to a MySQL database
--User told information saved and he leaves
---User comes back next day, clicks load
User select his current project
-User taken to the last form he was on, fields filled in

Thanks,
Stephen Craton
http://www.melchior.us

"What's the point in appearance if your true love, doesn't care about it?" -- 
http://www.melchior.us
_




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: submit form problem

2001-08-12 Thread Inércia Sensorial

  I haven't found a way to disable the Enter key to submit the form, as I
believe it does exists, but, found a way so when Enter is pressed works like
Tab, moving to the next form field.

  Here:

http://www.faqts.com/knowledge_base/view.phtml/aid/6793/fid/129

  Google search used:

http://www.google.com/search?q=javascript+disable+enter+form&sourceid=opera&;
num=0

  Sadly, it is Javascript, so an user can disable, but for those mistake key
presses, should work.

--


  Julio Nobrega.

2B||!BB - That's the question.

"Ivo Stoykov" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Well, here's the problem I faced.
>
> I've a script accepting four different forms depending on the user choice.
> Some of the forms have two submit buttons forcking actions accordingly to
> the pressed button.
>
> The problem is: $HTTP_POST_VARS["submit"] is not set if the user press
ENTER
> instead of clicking the button and the scripts cannot return a response
for
> it is not clear which button has been pressed.
>
> Hidden field cannot works with two submit buttons for I'll have two
values,
> but again cannot cach the user choice in case of ENTER press.
>
> Any help? Thank you
>
> Ivo
>
>



-- 
PHP General 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] Re: submit form problem

2001-08-12 Thread Richard Lynch

> I've a script accepting four different forms depending on the user choice.
> Some of the forms have two submit buttons forcking actions accordingly to
> the pressed button.
>
> The problem is: $HTTP_POST_VARS["submit"] is not set if the user press
ENTER
> instead of clicking the button and the scripts cannot return a response
for
> it is not clear which button has been pressed.
>
> Hidden field cannot works with two submit buttons for I'll have two
values,
> but again cannot cach the user choice in case of ENTER press.

Either explicitly state a "default" action, or analyze the actual data
coming in to decide what the user must have meant.

I *thought* enter was only supposed to work in a text field when there's
only one SUBMIT...  But it wouldn't shock me if some browser broke that.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



-- 
PHP General 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] Re: Submit Form Values To Parent

2005-12-01 Thread DvDmanDT
Like you do it if the target was the same window? PHP doesn't know which 
window is the target..

-- 

// DvDmanDT
mail: dvdmandt¤telia.com
msn: dvdmandt¤hotmail.com
""Shaun"" <[EMAIL PROTECTED]> skrev i meddelandet 
news:[EMAIL PROTECTED]
> Hi,
>
> How can I get the form values submitted from an iframe where the target is 
> the parent window? 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Submit Form Values To Parent

2005-12-02 Thread Matt Monaco
 is valid just as with any other link.



""Shaun"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> How can I get the form values submitted from an iframe where the target is
> the parent window?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php