I'm trying to create a link which passes variable data to form objects (text), and also submits the form with the onClick method.
In the head I have..
[CODE=javascript]function submitter(one,t wo){
document.forms[0].emailaddress.v alue = one;
document.forms[0].officername.va lue = two;
document.forms[0].submit();
}
[/CODE]
then the link is..
Email: [HTML]<a href="#" onClick = "submitter('non e@none.net', 'Joe Schmoe' ); ">Joe Schmoe</a><br>
[/HTML]
the problem is that the string 'Joe Schmoe' is not being submitted, I only get the 'Joe' part. Any clues?
In the head I have..
[CODE=javascript]function submitter(one,t wo){
document.forms[0].emailaddress.v alue = one;
document.forms[0].officername.va lue = two;
document.forms[0].submit();
}
[/CODE]
then the link is..
Email: [HTML]<a href="#" onClick = "submitter('non e@none.net', 'Joe Schmoe' ); ">Joe Schmoe</a><br>
[/HTML]
the problem is that the string 'Joe Schmoe' is not being submitted, I only get the 'Joe' part. Any clues?
Comment