Forum Moderators: phranque

Message Too Old, No Replies

PHP Form Complications

Unable to work php form specifics

         

matrym

2:33 am on Sep 2, 2002 (gmt 0)

10+ Year Member



Hey guys :).

I've run into a problem... let me describe what I have so far:

A person fills out a field on page1, and hits enter, thus taking the information he filled out into the field on page2, ready to be processed on the next form (clicking page2's submit button will now process the information submitted).

What I want to achieve, is to have page 2's submit button automatically detect that the information was brought from page1, and if so, click the submit button for the person. (not everyone will get to this page by page1, so those who dont, need not have submit clicked).

I'm hoping for a solution in PHP, or javascript... preferably not in asp or cgi.

Thanks a lot guys!

-- Brett

The_Warden

3:16 am on Sep 2, 2002 (gmt 0)

10+ Year Member



I'm not sure I totally understand you. Why would you have two pages? Sounds like the second page is there for just to finish to submission process. If page two does not require any input then why not have it just detect the first page field being filled in and then finish the form. If I'm not getting what you mean please let me know. I work with PHP everyday and FORMS alot so I should be able to help you out.

Using PHP have it pass to another function that finishes the form off when the require variables are set to true. Say for instance a page that says thanks for your submission or submission successful.

matrym

4:02 am on Sep 2, 2002 (gmt 0)

10+ Year Member


To be exact:

http://dev.princetonunited.com/mynuke/mpn188_final_7/html/index.php

In the upper right hand corner, you have the option to search the business directory. This is really a function of another page, but I want to make everything as quick and convenient as possible... so I have it up there. Now do you see what I'm talking about?

-- Brett

jatar_k

4:43 am on Sep 2, 2002 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld [webmasterworld.com] matrym

Have you thought about setting the same script as the form action for both of your forms. You can then handle the info depending on which form it came from.

matrym

5:25 am on Sep 2, 2002 (gmt 0)

10+ Year Member



Wow, that was a really simple and obvious resolution. Sorry to waste your time with such a dumb question. Thanks so much though, I woulda spent hours trying to figure it out had you not pointed it out!

Regards,
Brett