|
||||||||||
|
|
#1 (permalink) |
|
Noogle
![]() Join Date: Mar 2006
Location: Eugene, Oregon USA
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
Web programming question.
I have a client that needs a web page created that has6 different <textarea> form fields that are sent to seperate scripts (hosted on another server as part of a paid service) when the submit button is pressed.
My original thought was to havethe entireform sent to a scripted page (PHP by my choice) where I could break the data into6 smaller pieces and then send it out. My problem is that I do not know how to write a form that will automatically be sent on page creation. Does anyone know how to create a form that will send without a submit button being pressed? Or know of a resource I could dig through that might have that answer? |
|
|
|
|
Sponsored Links
|
|
|
|
#2 (permalink) |
|
Senior Googler
![]() Join Date: Jan 2006
Posts: 142
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
In Javascript there is something like document.THE NAME OF YOUR FORM.submit and I think that would work but it would probably also change the page. You could just use PHP like you said, using the fsock commands might work but sockets scare me, so I can't help.
|
|
|
|
|
|
#3 (permalink) |
|
Noogle
![]() Join Date: Mar 2006
Location: Eugene, Oregon USA
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
Thank you! I dont know enough about the socket commands, so like you I am heistant to use them. I will check out the Javascripting though. I aprreciate the input.
|
|
|
|
|
|
#5 (permalink) |
|
Google Guru
![]() Join Date: Oct 2005
Location: c:\GoogleCommunity
Posts: 3,420
Thanks: 3
Thanked 18 Times in 17 Posts
![]() ![]() ![]() ![]() ![]() |
A better question would be, why would you want to send a form on page creation? How's anyone going to fill in data, if a blank form is sent as soon as they load the page?
|
|
|
|
|
|
#6 (permalink) |
|
Noogle
![]() Join Date: Mar 2006
Location: Eugene, Oregon USA
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
That is a good question (why would anyone want to send a blank form?)
In this case I dont neccessarily need to send it on page creation, that was just one idea I was toying with, and the form would not be blank.... (read on for the intriguing -or boring- details) My clients has a page that asks 8 different questions (fill in the blank type survey) the answers to these questions need to go to 8 different scripts for proccessing. The site visitor, is not likely to stay around to fill out 8 seperate forms, with 8 seperate submit buttons, and most will only fill out about half of the forms in the firstplace. (no way to determine which forms will be answered prior to the sbmit button being hit) So my thought on the "send-on-page-creation" was actually to be an invisible step 2 to the proccess.BRstep one would be for the visitor to fill out one form with 8 fields and one submit button.BRstep two would be a PHP script to parse the answers of the 8 questions and cynamically create the forms (pre filled in) for the answered questions and submit those forms individually to the appropriate scripts. This is a very ungracefull solution, but the best that I have been able to devise.....with the exception that I have not found how to do the auto-submit of my forms after they have been processed. --go figure-- ![]() |
|
|
|
|
|
#7 (permalink) |
|
Senior Googler
![]() Join Date: Jan 2006
Posts: 142
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
I was thinking why don't you try and combine all of the separate scripts into one. Another is that you could again use Javascript but put 8 iframes on the page and some how make the targets as them or something like that.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Game Programming | JoeSSJ4 | General Discussion | 8 | 04-30-2005 11:07 AM |
| Simple programming question from a non-programmer | BMAN1448 | Web Design, Coding & Programming Forum | 1 | 03-12-2005 02:37 PM |
| Pocket pc programming help!!! | Paul123 | General Computer Forum | 0 | 01-22-2005 10:57 AM |