Jun. 11th, 2008

funeralcrasher: (Default)
So -- the script below displays field data from formtwo when the submit button of formone is clicked. I'd like to include the data from formtwo in my formone submission. Can this be done, if so how?

<script language=Javascript>
	function CheckForm(theForm)
	{
	
		f2 = document.formtwo.test.value;
		f1 = document.formone.selectone.value;
		alert('number ' + f1);
	
	}
</script>

<p><form name=formone id=formone action=# method=get>
	<select name=selectone>
		<option value=one>one</option>
		<option value=two>two</option>
	</select>
</form>
<h1>
<p>

<form name=formtwo id=formtwo action=# method=get onSubmit='return CheckForm(this)'>

	<input type=submit name=test value=submit> 

</form>


There are multiple submits on the real page - I don't want to replicate the selectbox for each of them.

finally!

Jun. 11th, 2008 11:13 pm
funeralcrasher: (Default)
Rain is on the way!
funeralcrasher: (Default)
If you read this, if your eyes are passing over this right now, even ifwe don't speak often, please post a comment with a memory of you andme. It can be anything you want -- good or bad. When you'refinished,post this little paragraph on your blog and be surprised (ormortified)about what people remember about you. Or, if you don't wantto post it, but want a memory from me, say so at the end of yourcomment and I'll reply with one. But consider posting. It's fun to seewhat comes up.

(gacked from [livejournal.com profile] c_death)

Profile

funeralcrasher: (Default)
funeralcrasher

June 2020

S M T W T F S
 123456
78910111213
141516 1718 1920
21222324252627
282930    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 23rd, 2025 04:46 am
Powered by Dreamwidth Studios