Home | Registrieren | Einloggen | Suchen | Aktuelles


Forum » Auszeichnungssprachen » 2 Frames: In einem das Formular im anderen der subm... Antworten
2 Frames: In einem das Formular im anderen der submit-Button??

rene007
Pixelschubser


Beiträge: 1


Will mal dieses alte Thema neu aufrollen, da ich selber im Moment mit diesem Problem zu kämpfen habe. Habe ebenfalls 2 Frames. Frame 1 mit Submit Button und Frame 2 mit nem Formular. Bin auf dem Thema nicht so fit. Habe es also trotz diesem Beitrag noch nicht hinbekommen.
Könntet ihr mir das ganze nochmal ausführlich erklären??

Danke Ré

  Profil   Editieren   Zitieren

LazyJeff
Pixelschubser


Beiträge: 1


Hier ist noch mal der Quellcode funzt zu 100% have fun.

button.php FrameSet
1: 
2: 
3: 
4: 
5: 
6: 
7: 
8: 
9: 
10: 
11: 
12: 
13: 
14:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset rows="500,*"  frameborder="YES" border="1" > 
  <frame name="mainFrame" src="main.php">
  <frame name="bottomFrame" scrolling="yes" noresize src="buttom.php">
</frameset>
<noframes>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</noframes> 
</html>


main.php
1: 
2: 
3: 
4: 
5: 
6: 
7: 
8: 
9: 
10: 
11: 
12: 
13: 
14: 
15: 
16: 
17: 
18: 
19: 
20: 
21: 
22: 
23:
<html>
<head>
<title>Testinger</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php

if ($submit=="test") 
{
  print"funzt";

}
print "<form action=\"$_SERVER[PHP_SELF]\" method=\"post\" enctype=\"multipart/form-data\" name=\"formular\">";

echo "<textarea name='text' rows='6' cols=\"50\">mainframe</TEXTAREA>";

print"<br \><input type=\"submit\" name=\"submit\" value=\"test\" />";

print "</form>";
?>
</body>
</html>


buttom.php
1: 
2: 
3: 
4: 
5: 
6: 
7: 
8: 
9: 
10: 
11: 
12: 
13: 
14: 
15:
<html>
<head>
<title>Testinger</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>

<body topmargin="0">

<form>
<INPUT type="submit" value="verschicken" onClick="parent.mainFrame.document.formular.submit.click();" name="SubmitNOw">
</form>

</body>
</html>



  Profil   E-Mail   Editieren   Zitieren
Seite 1 | 2  

Antworten
Nach oben