Feedback on: Passing data from one form to another
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
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
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
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?
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?
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.
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
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
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.
Worth:
Very worth reading
Comments:
Excellent material
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.
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
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
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');