Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Form with Multiple Actions

    This script it hopefully to be able to send all forms to there diffrent locations.

    Code:
    <body>
    <script language=javascript>
    <!--
    function OnButton1()
    {
    	document.Form1.action = "http://www.pixel2life.com/submit/process/" // First target
    	document.Form1.target = "iframe1";	 // Open in a iframe
    	document.Form1.submit();			 // Submit the page
    	document.Form2.action = "http://www.good-tutorials.com/add_tutorial.php" // Second target
    	document.Form2.target = "iframe2";	 // Open in a iframe
    	document.Form2.submit();			 // Submit the page
    	document.Form3.action = "http://pslover.com/add.php" // Second target
    	document.Form3.target = "iframe2";	 // Open in a iframe
    	document.Form3.submit();			 // Submit the page
    	document.Form4.action = "http://www.tutorialman.com/process.php" // Second target
    	document.Form4.target = "iframe2";	 // Open in a iframe
    	document.Form4.submit();			 // Submit the page
    	return true;
    }
    -->
    </script>
    <div align="center">
    
    
    <table width="714" border="0" align="center" cellpadding="0" cellspacing="0" class="border">
    <tr>
      <td align="center" valign="top" class="nopad">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    		<tr>
    		<td align="left" valign="top" width="226" height="126" class="nopad"><img src="hdr_ls.gif" width="226" 
    
    height="126" alt="" style="vertical-align:top" /></td>
    
    		<td align="left" valign="top" width="50%" height="126" style="background-image:url(hdr_ls_x.gif)" 
    
    class="nopad"><img src="hdr_ls_x.gif" width="1" height="126" alt="" style="vertical-align:top" /></td>
    		<td align="left" valign="top" width="350" height="126" class="nopad"><a 
    
    href="http://www.tutorialfx.com/forums/index.php?act=idx"><img src="hdr_logo_tfx.gif" width="350" height="126" border="0" 
    
    alt="" style="vertical-align:top" /></a></td>
    		<td align="left" valign="top" width="50%" height="126" style="background-image:url(hdr_rs_x.gif)" 
    
    class="nopad"><img src="hdr_rs_x.jpg" width="1" height="126" alt="" style="vertical-align:top" /></td>
    		<td align="left" valign="top" width="229" height="126" class="nopad"><img src="hdr_rs.gif" width="229" 
    
    height="126" alt="" style="vertical-align:top" /></td>
    	</tr>
    	</table
    <font size="5" face="Verdana, Arial, Helvetica, sans-serif;">Pixel2Life</font>
    <table border=1><tr><td align="right" valign="top">
    <font face="Franklin Gothic Medium">
    Name<br /><br />
    Description<br /><br />
    40x40 Icon<br /><br />
    Tutorial Site<br /><br />
    Tutorial Link
    </td>
    	<td>
    <form name="form1" action="http://www.pixel2life.com/submit/process/" method="post" enctype="multipart/form-data">
    <input type="text" name="tut_name[1]" size="40"><br />
    <input type="text" name="tut_name[1]" size="40"><br />
    <input type="file" name="1" size="40"><br />
    <input type="text" name="site_homepage" size="40"><br />
    <input type="text" name="tut_url[1]" size="40"><br />
    <input type="submit" value="Submit">
    <input type="hidden" name="MAX_FILE_SIZE" value="5000">
    <input type="hidden" name="subnum" value="1">
    <input type="hidden" name="tut_category" value="4">&nbsp;</td>
    
    </form>
    </td>
    
    
    <table border=1><tr>
    <font size="5" face="Verdana, Arial, Helvetica, sans-serif;">Good-Tutorials</font>
    <br></tr>
    <tr><td align="right" valign="top">		
    <font face="Franklin Gothic Medium">
    Name<br /><br />
    Description<br /><br />
    40x40 Icon<br /><br />
    Category<br /><br />
    Tutorial Site<br /><br />
    Tutorial Link
    </td>
    	<td>
    <form name="form2" action="http://www.good-tutorials.com/add_tutorial.php" method="post" enctype="multipart/form-data">
    <input type="text" name="title" size="40"><br />
    <input type="text" name="blurb" size="40"><br />
    <input type="file" name="icon" size="40"><br />
    <select name="category">
              <option value="1">Drawing</option>
              <option value="2">Photo Effects</option>
              <option value="3">Text Effects</option>
    
              <option value="4">Textures and Patterns</option>
              <option value="5">Web Layouts</option>
              <option value="6">Effects</option>
              <option value="7">Web Graphics</option>
              <option value="8">Basics</option>
    		  <option value="9">Photo Retouch</option>
    
    		  <option value="10">Color</option>
    		  <option value="11">Buttons</option>
    		  <option value="12">Animation</option>
    		  <option value="13">Designing</option>
    		</select>	<br />
    <input type="text" name="site" size="40"><br />
    <input type="text" name="url" size="40"><br />
    <input type="submit" name="submit" value="Submit">
    <input type="hidden" name="MAX_FILE_SIZE" value="5000">
    <input type="hidden" name="subnum" value="1">
    <input type="hidden" name="tut_category" value="4">&nbsp;</td>
    
    </form>
    </td>
    
    
    
    <table border=1><tr>
    <font size="5" face="Verdana, Arial, Helvetica, sans-serif;">PSLover</font>
    <br></tr>
    <tr><td align="right" valign="top">		
    <font face="Franklin Gothic Medium">
    Name<br /><br />
    Description<br /><br />
    40x40 Icon<br /><br />
    Category<br /><br />
    Level<br /><br />
    Tutorial Link
    </td>
    	<td>
    <form name="form3" action="http://pslover.com/add.php" method="post" enctype="multipart/form-data">
    <input type="text" name="formTitle" size="40"><br />
    <input type="text" name="formDescription" size="40"><br />
    <input type="file" name="file" size="40"><br />
    <select name="formCategory">
                          <option value="Basics">Basics</option>
                          <option value="SpecialFX">SpecialFX</option>
                          <option value="TextFX">TextFX</option>
                          <option value="Color">Color</option>
    
                          <option value="Interface">Interface</option>
                          <option value="Textures">Textures</option>
                          <option value="Others">Others</option>
                        </select><br />
    <select name="formLevel">                     
    		      <option value="Beginner">Beginner</option>
                          <option value="Intermediate">Intermediate</option>
                          <option value="Advanced">Advanced</option>
                        </select><br />
    <input type="text" name="formUrl" size="40"><br />
    <input type="submit" value="Submit">
    <input type="hidden" name="MAX_FILE_SIZE" value="5000">
    <input type="hidden" name="subnum" value="1">
    <input type="hidden" name="tut_category" value="4">&nbsp;</td>
    
    </form>
    </td>
    
    
    <table border=1><tr>
    <font size="5" face="Verdana, Arial, Helvetica, sans-serif;">TutorialMan</font>
    <br></tr>
    <tr><td align="right" valign="top">		
    <font face="Franklin Gothic Medium">
    Name<br /><br />
    Description<br /><br />
    50x50 Icon<br /><br />
    Tutorial Site<br /><br />
    Tutorial Link<br /><br />
    Your Nickname<br /><br />
    </td>
    	<td>
    <form name="form4" action="http://www.tutorialman.com/process.php" method="post" enctype="multipart/form-data">
    <input type="text" name="tutname" size="40"><br />
    <input type="text" name="description" size="40"><br />
    <input type="file" name="image" size="40"><br />
    <input type="text" name="website" size="40"><br />
    <input type="text" name="tuturl" size="40"><br />
    <input type="text" name="nickname" size="40"><br />
    <input type="submit" value="Submit">
    <input type="hidden" name="MAX_FILE_SIZE" value="5000">
    <input type="hidden" name="subnum" value="1">
    <input type="hidden" name="tut_category" value="4">&nbsp;</td>
    </form>
    <div style="visibility:hidden">
    <IFRAME NAME="iframe1" WIDTH="40" HEIGHT="40"></IFRAME>
    <IFRAME NAME="iframe2" WIDTH="40" HEIGHT="40"></IFRAME>
    </div>
    </td>
    </table>
    <form action= "index2.html" method=post>
    <INPUT type="submit" value="Send All" name="button1" onclick="return OnButton1();">
    </form>
    </body>
    </html>
    Now would the bottom part
    Code:
    <form action= "index2.html" method=post>
    <INPUT type="submit" value="Send All" name="button1" onclick="return OnButton1();">
    redirect back up and send all the other 4 forms to their locations?

  • #2
    Regular Coder
    Join Date
    Aug 2005
    Location
    Toronto, ON, Canada
    Posts
    231
    Thanks
    0
    Thanked 0 Times in 0 Posts
    use xmlHttpRequest (if possible)
    rm -f /

  • #3
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Eh i dont really know how to use XML. or Dynamic HTML.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •