Google Community
Latest Forums Rules Resources
Custom Search

Go Back   Google Community > Webmaster Forums > Web Design, Coding & Programming Forum

GoogleCommunity Sponsor

Reply
 
LinkBack Thread Tools Display Modes
Old 03-08-2006, 05:12 PM   #1 (permalink)
Noogle
 
Join Date: Mar 2006
Location: Eugene, Oregon USA
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Endante
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?


Endante is offline   Reply With Quote
 
Sponsored Links
Old 03-09-2006, 09:13 AM   #2 (permalink)
Senior Googler
 
Join Date: Jan 2006
Posts: 142
Thanks: 0
Thanked 0 Times in 0 Posts
sheepcentral
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.
sheepcentral is offline   Reply With Quote
Old 03-09-2006, 10:41 AM   #3 (permalink)
Noogle
 
Join Date: Mar 2006
Location: Eugene, Oregon USA
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Endante
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.
Endante is offline   Reply With Quote
Old 03-18-2006, 09:59 AM   #4 (permalink)
Senior Googler
 
Join Date: Feb 2006
Location: IRAQ
Posts: 141
Thanks: 0
Thanked 0 Times in 0 Posts
luni
Send a message via AIM to luni Send a message via MSN to luni Send a message via Yahoo to luni
hey , there goes to show that nobody knows it all, or at least can remember to know it all!! haha , sorry it doesnt pertain to this thread, i just thought it was nifty
luni is offline   Reply With Quote
Old 03-18-2006, 10:14 AM   #5 (permalink)
Google Guru
 
andrew247's Avatar
 
Join Date: Oct 2005
Location: c:\GoogleCommunity
Posts: 3,420
Thanks: 3
Thanked 18 Times in 17 Posts
andrew247 is a glorious beacon of lightandrew247 is a glorious beacon of lightandrew247 is a glorious beacon of lightandrew247 is a glorious beacon of lightandrew247 is a glorious beacon of light
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?
andrew247 is offline   Reply With Quote
Old 03-19-2006, 01:38 PM   #6 (permalink)
Noogle
 
Join Date: Mar 2006
Location: Eugene, Oregon USA
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Endante
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--
Endante is offline   Reply With Quote
Old 03-23-2006, 12:26 PM   #7 (permalink)
Senior Googler
 
Join Date: Jan 2006
Posts: 142
Thanks: 0
Thanked 0 Times in 0 Posts
sheepcentral
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.
sheepcentral is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



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


All times are GMT -8. The time now is 07:33 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004–2007 Google Community