Current location: Hot Scripts Forums » General Web Coding » JavaScript » form in form problem


form in form problem

Reply
  #1 (permalink)  
Old 11-24-06, 10:35 PM
dharprog dharprog is offline
Newbie Coder
 
Join Date: Oct 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
form in form problem

Hi,

I got a problem that is it possible to work out in form submission I have a script that uses form inside the form how can i make it work form inside forms are there insided forms are working but not main form can any body help me out how can i do this? Here i'm showning how this is below.

<Form1>

//inside form is
<form2>//this is inside the form1
</form2>
<form3>//this is inside the form1
</form3>
</form1>

Form2 and form3 are working but form1 is not working how can i make it is there any way?

Thank YOu...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 11-24-06, 11:01 PM
nova912's Avatar
nova912 nova912 is offline
Code Guru
 
Join Date: Sep 2004
Location: Traverse City, MI, USA
Posts: 821
Thanks: 0
Thanked 0 Times in 0 Posts
you can do it with a function called by..
Code:
<script language="javascript" type="text/javascript">
function submitForm(object)
{
object.Submit();
}
</script>

<form id="form_1">
<input type="button" value="submit" onclick="submitForm(this)">
<form id="form_2">
<input type="button" value="submit" onclick="submitForm(this)">
</form>
<form id="form_3">
<input type="button" value="submit" onclick="submitForm(this)">
</form>
</form>
__________________
"BTW, I can't program at all the only thing I figured out is how to upload templates to my server."
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 11-25-06, 04:32 AM
Shaffer Shaffer is offline
Wannabe Coder
 
Join Date: Sep 2006
Location: Israel
Posts: 149
Thanks: 0
Thanked 0 Times in 0 Posts
That's a good idea.
btw, why do you need 2 forms in-side a parent form?
__________________
Hello from Israel!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 11-25-06, 11:01 AM
nova912's Avatar
nova912 nova912 is offline
Code Guru
 
Join Date: Sep 2004
Location: Traverse City, MI, USA
Posts: 821
Thanks: 0
Thanked 0 Times in 0 Posts
well i sometimes use a "preview" button where i send the contents of the text box to a preview page (form2 inside of form1), and not the submit page (form1).
__________________
"BTW, I can't program at all the only thing I figured out is how to upload templates to my server."
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I've tried everything, email form problem abul_22 PHP 3 11-22-06 05:12 PM
Form Display Problem neevrap02 Visual Basic 1 09-05-06 06:18 AM
Email form problem slimey PHP 1 03-08-06 03:46 AM
checkCheckboxGroup broken after form consolidation ski_woman JavaScript 0 01-12-05 12:00 PM
Form Submission, PHP Coding Problem kibby67 PHP 3 12-02-04 02:13 PM


All times are GMT -5. The time now is 06:34 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.