Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback: Passing data from one form to another

Feedback on: Passing data from one form to another

Sent by Mikester on March 04, 1999 at 09:59:49: - feedback #99

Worth:
Very worth reading

Comments:
The example is excellent. The only thing I would like to see is how this example works in the following situation: A form which spans over two pages, requiring the data from the first form to be carried over to the second, and when the form is complete, a formatted results page showing what you have entered, with an option to return to the page where you want to make a change.
The working example doesn't seem to go any where when you click on submit - I thought it would pass the data onto another page.
Thanks,
Mike




Sent by Roger Higgins on May 25, 1999 at 02:33:11: - feedback #198

Worth:
Very worth reading

Length:
Just right

Technical:
Just right

Comments:
Great article - exactly what I was looking for......but...

I've copied the code for input and output to c:\temp and I can't get them to work ie nothing gets passed.

I'm running IE4 + Win 95.

What am I doing wrong ?

Thanks in advance

Roger



Sent by Nikola Olic on September 21, 1999 at 15:51:51: - feedback #479

Worth:
Very worth reading

Length:
Just right

Technical:
Just right

Comments:
Hello,

the article is excellent. With a little help from a book and a few hours or planning, I did what I wanted to do. By far, I name this the most well written javascript tutorial.

Cheers,

Nikola Olic
UTA WWW Team






Sent by Tu Nguyen on October 20, 1999 at 13:40:04: - feedback #528

Worth:
Very worth reading

Comments:
How would I be able to pass information from one form to another while posting it to a database at the same time? How would it be done in ASP?





Sent by Scott Null on November 03, 1999 at 10:02:47: - feedback #562

Worth:
Very worth reading

Technical:
Just right

Comments:
is there a limit to how long a parm can be when passed? if u have a long form, will it all be passed?





Sent by Steve McMahon on March 25, 2000 at 23:07:16: - feedback #993

Worth:
Very worth reading

Comments:
Martin,
I could really do with some advise. I tried applying this script to my problem with no luck.
I am wishing to pass a Flash4 form's variables, to a jump html page, then on in turn to the cgi script. These are the instructions in Flash4:
On (Press)
Set Variable: "number" = "lily"
Set Variable: "name" = namefield
Set Variable: "company" = companyfield
Set Variable: "email" = emailfield
Set Variable: "phone" = phonefield
Set Variable: "comment" = commentfield
Set Variable: "recip" = "contact@vidiwell.com"
Get URL ("javascript:launchwin('small.htm' , 'newwindow' , 'height=30,width=500' , 'http://www.vidiwell.com/cgi-bin/sendvidi.cgi')", vars=POST)

I've tested the form in a direct connection to the cgi and it works. Reason for doing it with a jump page is is I can't control the size of the output message window from cgi script.

Any help would be greatly appreciated.

Steve McMahon.




Sent by Tom McClure on September 19, 2000 at 13:40:29: - feedback #1771

Worth:
Very worth reading

Length:
Just right

Technical:
Just right

Comments:
The script availible here for passing values works great. Is there a way to make it pass values for a two-dimensional array. I have a code where I have named one array "a" and the sub array "a[i]". There are 5 elements in "a" and 6 elements in "a[i]". I will take the values from a form one page one and then put them in a table on page two. Questions--e-mail me please


Sent by david abrahams on November 06, 2000 at 08:06:24: - feedback #1956

Worth:
Worth reading

Comments:
this script does not work correctly. if any of the passed text has 2 spaces in it eg "my name" instead of "my name" the plus signs get left in most other fields. this has caused many hours grief. also exhibited in you working (not) example


Sent by Eric on November 07, 2000 at 16:32:53: - feedback #1971

Worth:
Very worth reading

Length:
Just right

Technical:
Just right

Comments:
The article on passing data from one form to another was very interesting. I had just one question. How would you create a form similar to this but have it extend in length over multiple pages by using a hyperlink and then being able submit the entire form as one.


Sent by Kanno on December 29, 2000 at 12:24:38: - feedback #2187

Worth:
Very worth reading

Comments:
Excellent material


Sent by Nigel Powell on July 23, 2001 at 12:13:21: - feedback #2998

Worth:
Very worth reading

Comments:
I tried the imput and the output code and cannot it pass multiple slection option as text.

It's basically telling that my option value cannot be text, it has to be an interger.


Sent by Mark Preston on November 17, 2002 at 06:10:19: - feedback #4280

Worth:
Very worth reading

Comments:
Instead of the replace function to change "+" to " " this below has just worked for me, although more than one space just gets replaced by one space:-

Replace the line
var passed = location.search.substring(1);

with

var pssd = location.search.substring(1), passed = "";
for ( var i = 0; i < pssd.length; i++){
if( pssd.charAt(i)!="+") passed += pssd.charAt(i);
else passed += " ";
}

Regards from Mark


Sent by Dan on Monday April 30, 2007 at 12:00:14 - feedback #4511

Worth:

Length:

Technical:

Comments:
Hi,
I wanna create a simple way to enter my username password into any user account on the web that i want to which will be set up on one main password protected directory on my server of course. I found your form field passing aproach interesting and wondered if you could tweak it a little to perform this process. Or am I missing the scope of this article and thats what this actually does?

I am assuming it does not do this because I do not have access top the second form (ie, site where i have an existing user account)

Thanks for your help.
Dan






Sent by bha123 on Thursday June 07, 2007 at 17:25:32 - feedback #4683

Worth:
Very worth reading

Length:
Just right

Technical:

Comments:
the following code works properly with the IE 7 .. its not working in mozilla FireFox and IE 6 , can u plz let me knwo , how can i make it work in Mozilla

Thank u so much for this useful article

<SCRIPT LANGUAGE="JavaScript"><!--
function getParm(string,parm) {
// returns value of parm from string
var startPos = string.indexOf(parm + "=");
if (startPos > -1) {
startPos = startPos + parm.length + 1;
var endPos = string.indexOf("&",startPos);
if (endPos == -1)
endPos = string.length;
return unescape(string.substring(startPos,endPos));
}
return '';
}

var passed = location.search.substring(1);

document.formname.myfield.value = getParm(passed,'myfield');
document.formname.otherfield.value = getParm(passed,'otherfield');





©2018 Martin Webb