zwei Formulare in einer .htm Seite
Naaamd.....
es gibt doch im persönlichen Bereich im Kit einmal den Link "Benutzerprofil" und einmal "Option". In beidern dieser Links gibt es unten einen Speichern&Abbrechen Button. Ich habe mir nun die "Benutzerprofil" -Einstellungen etwas übersichtlicher gestaltet. (abgeguckt bei www.blutrausch-gilde.com)
unter dem Reiter "Optionen" habe ich nun den Teil der extoption.htm eingefügt bei dem man seine Optionen aktivieren/Inhalte deaktivieren kann.
Das Problem ist aber, das ja nun alles in der usereditprofilde.htm steht. Diese beinhaltet nun aber auch ein formular zu speichern...Ich habe also die Speichern&Abbrechen Buttons in jedem Reiter mit eingebaut, da ja der Speichern&Abbrechen Button der usereditprofile.htm nicht auch den Inhalt der extoption.htm speichert. D.h jeder Reiter hat seinen eigenen Button bekommen. So auch der "Option" Reiter mit entsprechend der extoption.htm angepassten code.
Wenn ich aber den "Option" Reiter öffne, sind die Radiobutton Punkte je nach Einstellung nicht zu sehen nicht zu sehen...Auch wenn ich auf den speicher button klicke, sagt er zwar das gespeichert wurde...aber es wurde nichts gespeichert.
Wie kann ich zwei Formulare in einer .htm Datei verwenden??? Ich poste hier auch mal den code meiner usereditprofile.htm zu besseren Ansicht.
Hier klicken für weitere Informationen
die betreffenden Formularstellen lauten:
Zeile:1
und Zeile 230
es gibt doch im persönlichen Bereich im Kit einmal den Link "Benutzerprofil" und einmal "Option". In beidern dieser Links gibt es unten einen Speichern&Abbrechen Button. Ich habe mir nun die "Benutzerprofil" -Einstellungen etwas übersichtlicher gestaltet. (abgeguckt bei www.blutrausch-gilde.com)
unter dem Reiter "Optionen" habe ich nun den Teil der extoption.htm eingefügt bei dem man seine Optionen aktivieren/Inhalte deaktivieren kann.
Das Problem ist aber, das ja nun alles in der usereditprofilde.htm steht. Diese beinhaltet nun aber auch ein formular zu speichern...Ich habe also die Speichern&Abbrechen Buttons in jedem Reiter mit eingebaut, da ja der Speichern&Abbrechen Button der usereditprofile.htm nicht auch den Inhalt der extoption.htm speichert. D.h jeder Reiter hat seinen eigenen Button bekommen. So auch der "Option" Reiter mit entsprechend der extoption.htm angepassten code.
Wenn ich aber den "Option" Reiter öffne, sind die Radiobutton Punkte je nach Einstellung nicht zu sehen nicht zu sehen...Auch wenn ich auf den speicher button klicke, sagt er zwar das gespeichert wurde...aber es wurde nichts gespeichert.
Wie kann ich zwei Formulare in einer .htm Datei verwenden??? Ich poste hier auch mal den code meiner usereditprofile.htm zu besseren Ansicht.
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 |
<form name="updateprofil" method="post" action="$action_target">
<table class="userbody" border="0" cellspacing="1" cellpadding="4" width="100%">
<tr>
<td class="heads" colspan="2">$user_navigation $L_editprofile_edit_profile</td>
</tr>
<tr>
<td class="left" width="50%">$L_editprofile_username<br />
<span class="small">$L_editprofile_username_description</span></td>
<td class="right" width="50%"><b>$user_name</b></td>
</tr>
<tr>
<td class="left">$L_editprofile_userstatus<br />
<span class="small">$L_editprofile_userstatus_description</span></td>
<td class="right"><b>$user_status</b></td>
</tr>
<tr>
<td class="left">$L_editprofile_member_since</td>
<td class="right">$user_signin</td>
</tr>
</table>
<table class="userbody" border="0" cellspacing="1" cellpadding="4" width="100%">
<tr>
<td class="left"> </td>
</tr>
</table>
<table border="0" cellspacing="4" cellpadding="1" width="100%">
<tr>
<td class="heads" colspan="2"><ul id="countrytabs" class="shadetabs">
<li><a href="#" rel="country1" class="selected">Benutzerkontodaten</a></li>
<li><a href="#" rel="country2">Kontaktdaten</a></li>
<li><a href="#" rel="country3">Signaturen</a></li>
<li><a href="#" rel="country4">Sonstiges</a></li>
<li><a href="#" rel="country5">Optionen</a></li>
<!--<a href="http://www.dynamicdrive.com">Dynamic Drive</a></li> -->
</ul>
<div style="border:0px solid gray; width:720px; margin-bottom: 1em; padding: 10px">
<div id="country1" class="tabcontent">
<table class="userbody" border="0" cellspacing="1" cellpadding="4" width="100%">
<tr>
<td class="left">$L_editprofile_current_password<br />
<span class="small">$L_editprofile_current_password_description</span></td>
<td class="right">
<input type="password" name="cur_password" size="15" maxlength="50" style="width:90%;" /></td>
</tr>
<tr>
<td class="left">$L_editprofile_nickname<br />
<span class="small">$L_editprofile_nickname_description</span></td>
<td class="right">
<input type="text" name="ud_nick" size="15" value="$user_nick" maxlength="50" style="width:90%;" /></td>
</tr>
<tr>
<td class="left">$L_editprofile_password<br />
<span class="small">$L_editprofile_password_description</span></td>
<td class="right">
<input type="password" name="ud_newpw1" size="15" maxlength="50" style="width:90%;" /></td>
</tr>
<tr>
<td class="left">$L_editprofile_confirm_password<br />
<span class="small">$L_editprofile_confirm_password_description</span></td>
<td class="right">
<input type="password" name="ud_newpw2" size="15" maxlength="50" style="width:90%;" /></td>
</tr>
<tr>
<td class="left">$L_email_address<br />
<span class="small">$L_editprofile_email_description</span></td>
<td class="right">
<input type="text" name="ud_email" size="15" value="$user_email" maxlength="75" style="width:90%;" /></td>
</tr>
<tr>
<td class="left"><br />
<span class="small"></span></td>
<td class="right"></td>
</tr>
<tr>
<td class="heads" colspan="2" align="center">
<input type="submit" name="action" value="$L_save" />
<input type="hidden" name="save" value="$L_save" />
<input type="reset" value="$L_reset" />
</td>
</tr>
</table>
</div>
<div id="country2" class="tabcontent">
<table class="userbody" border="0" cellspacing="1" cellpadding="4" width="100%">
<tr>
<td class="left">$L_editprofile_show_email<br />
<span class="small">$L_editprofile_show_email_description</span></td>
<td class="right">
<input class="radio" type="radio" name="ud_emailshow" value="1" $user_email_option_1 /> <span class="small">anzeigen</span>
<input class="radio" type="radio" name="ud_emailshow" value="0" $user_email_option_0 /> <span class="small">verbergen</span></td>
</tr>
<tr>
<td class="left">$L_editprofile_sex<span style="color:#d70007;">*</span><br />
<span class="small">$L_editprofile_sex_description</span></td>
<td class="right">
<select name="ud_sex" size="1">
<option $user_sex_option_0 value="d">$L_editprofile_sex_not_specified</option>
<option $user_sex_option_1 value="w">$L_editprofile_sex_female</option>
<option $user_sex_option_2 value="m">$L_editprofile_sex_male</option>
</select></td>
</tr>
<tr>
<td class="left">$L_editprofile_dateofbirth<span style="color:#d70007;">*</span><br />
<span class="small">$L_editprofile_dateofbirth_description</span></td>
<td class="right">
<select name="user_bd_day" size="1">
<option value="0">$L_editprofile_dateofbirth_day</option>
$bd_option_day
</select>
<select name="user_bd_month" size="1">
<option value="0">$L_editprofile_dateofbirth_month</option>
$bd_option_month
</select>
<select name="user_bd_year" size="1">
<option value="0">$L_editprofile_dateofbirth_year</option>
$bd_option_year
</select>
</td>
</tr>
<tr>
<td class="left">$L_editprofile_origin<span style="color:#d70007;">*</span><br />
<span class="small">$L_editprofile_origin_description</span></td>
<td class="right">
<select name="ud_country" size="1" style="width:90%;">
$user_country
</select></td>
</tr>
<tr>
<td class="left">$L_editprofile_homepage<br />
<span class="small">$L_editprofile_homepage_description</span></td>
<td class="right">
<input type="text" name="ud_hpage" size="15" value="$user_hpage" maxlength="75" style="width:90%;" /></td>
</tr>
<tr>
<td class="left">$L_editprofile_aim_screenname<br />
<span class="small">$L_editprofile_aim_screenname_description</span></td>
<td class="right">
<input type="text" name="ud_aimid" size="15" value="$user_aimid" maxlength="30" style="width:90%;" /></td>
</tr>
<tr>
<td class="left">$L_editprofile_yim<br />
<span class="small">$L_editprofile_yim_description</span></td>
<td class="right">
<input type="text" name="ud_yim" size="15" value="$user_yim" maxlength="50" style="width:90%;" /></td>
</tr>
<tr>
<td class="left">$L_editprofile_icq<br />
<span class="small">$L_editprofile_icq_description</span></td>
<td class="right">
<input type="text" name="ud_icqid" size="20" value="$user_icqid" maxlength="15" /></td>
</tr>
<tr>
<td class="left"><br />
<span class="small"></span></td>
<td class="right"></td>
</tr>
<tr>
<td class="heads" colspan="2" align="center">
<input type="submit" name="action" value="$L_save" />
<input type="hidden" name="save" value="$L_save" />
<input type="reset" value="$L_reset" />
</td>
</tr>
</table>
</div>
<div id="country3" class="tabcontent">
<table class="userbody" border="0" cellspacing="1" cellpadding="4" width="100%">
<tr>
<td class="left" valign="top">$L_editprofile_signature<br />
<span class="small">$L_editprofile_signature_description</span></td>
<td class="right">
<textarea rows="8" name="ud_usersig" cols="15" style="width:90%;">$user_sig</textarea></td>
</tr>
<tr>
<td class="left" valign="top">$L_editprofile_quotation<br />
<span class="small">$L_editprofile_quotation_description</span></td>
<td class="right">
<textarea rows="5" name="ud_userqou" cols="15" style="width:90%;">$user_qou</textarea></td>
</tr>
<tr>
<td class="left"><br />
<span class="small"></span></td>
<td class="right"></td>
</tr>
<tr>
<td class="heads" colspan="2" align="center">
<input type="submit" name="action" value="$L_save" />
<input type="hidden" name="save" value="$L_save" />
<input type="reset" value="$L_reset" />
</td>
</tr>
</table>
</div>
<div id="country4" class="tabcontent">
<table class="userbody" border="0" cellspacing="1" cellpadding="4" width="100%">
<tr>
<td class="left" valign="top">$L_editprofile_hobbies<br />
<span class="small">$L_editprofile_hobbies_description</span></td>
<td class="right">
<textarea rows="5" name="ud_userhobby" cols="15" style="width:90%;">$user_hobby</textarea></td>
</tr>
$editprofile_userfield
<tr>
</tr>
<tr>
<td class="left"><br />
<span class="small"></span></td>
<td class="right"></td>
</tr>
<tr>
<td class="heads" colspan="2" align="center">
<input type="submit" name="action" value="$L_save" />
<input type="hidden" name="save" value="$L_save" />
<input type="reset" value="$L_reset" />
</td>
</tr>
</table>
</form>
</div>
<div id="country5" class="tabcontent">
<form method="post" action="include.php?path=userprofile&mode=options">
<table class="userbody" border="0" cellspacing="1" cellpadding="4" width="100%">
<tr>
<td class="left" width="50%">Foto-Nutzung<br />
<font class="small">Wenn Sie das Avatar statt das Foto im Forum anzeigen wollen, schalten Sie diese Option ab.</font></td>
<td class="right" width="50%">
<input type="radio" name="new_picoption" value="1" $picoption1 /> <font class="small">angeschaltet</font>
<input type="radio" name="new_picoption" value="0" $picoption0 /> <font class="small">abgeschaltet</font></td>
</tr>
<tr>
<td class="left" width="50%">PN-Nutzung<br />
<font class="small">Wenn Sie keine privaten Nachrichten (PN) wünschen, schalten Sie diese Option ab.</font></td>
<td class="right" width="50%">
<input type="radio" name="new_imoption" value="1" $im_option1 /> <font class="small">angeschaltet</font>
<input type="radio" name="new_imoption" value="0" $im_option0 /> <font class="small">abgeschaltet</font></td>
</tr>
<tr>
<td class="left">PN-Benachrichtigung<br />
<font class="small">E-Mail-Benachrichtigung, wenn eine neue private Nachricht für Sie vorliegt.</font></td>
<td class="right">
<input class="radio" type="radio" name="new_imnotify" value="1" $im_imnotify1 /> <font class="small">angeschaltet</font>
<input class="radio" type="radio" name="new_imnotify" value="0" $im_imnotify0 /> <font class="small">abgeschaltet</font></td>
</tr>
<tr>
<td class="left">Mitgliederinformation<br />
<font class="small">Legt fest, ob Mitgliederinformationen erwünscht sind.</font></td>
<td class="right">
<input class="radio" type="radio" name="new_nloption" value="1" $nl_option1 /> <font class="small">angeschaltet</font>
<input class="radio" type="radio" name="new_nloption" value="0" $nl_option0 /> <font class="small">abgeschaltet</font></td>
</tr>
<tr>
<td class="left">Signaturen<br />
<font class="small">Signaturen aller User anzeigen.</font></td>
<td class="right">
<input class="radio" type="radio" name="new_sigoption" value="1" $im_sigoption1> <font class="small">angeschaltet</font>
<input class="radio" type="radio" name="new_sigoption" value="0" $im_sigoption0> <font class="small">abgeschaltet</font></td>
</tr>
<tr>
<td class="left">Geschenke Viewer<br />
<font class="small">Geschenkefunktion aktivieren?</font></td>
<td class="right">
<input class="radio" type="radio" name="new_geschenk" value="1" $geschenk1 /> <font class="small">angeschaltet</font>
<input class="radio" type="radio" name="new_geschenk" value="0" $geschenk0 /> <font class="small">abgeschaltet</font></td>
</tr>
<tr>
<td class="left"><br />
<span class="small"></span></td>
<td class="right"></td>
</tr>
<tr>
<td class="heads" colspan="2" align="center">
<input type="submit" name="action" value="$lang[save]" />
<input type="hidden" name="save" value="$lang[save]" />
<input type="reset" value="$lang[reset]" /></td>
</tr>
</table>
</form>
</div>
</div>
<script type="text/javascript">
var countries=new ddtabcontent("countrytabs")
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()
</script>
</td>
</tr>
</table>
|
die betreffenden Formularstellen lauten:
Zeile:1
|
|
Quellcode |
1 |
<form name="updateprofil" method="post" action="$action_target"> |
und Zeile 230
|
|
Quellcode |
1 |
<form method="post" action="include.php?path=userprofile&mode=options"> |
OffTopic


Wäre es nicht sinnvoll den Speichern Button in jeden Tab einzufügen, das du die Tabs so aufteilst, dass die ersten 3 für die eine .html zuständig sind und die anderen 2 für die folgende .html.
Immer wenn der User speichern klickt, werden die Daten, die in dem Tab zusehen sind gespeichert.
Voraussetzung ist, dass die Inhalte der beiden .html Dateien nicht in den Tabs untereinander gemischt sind.
Beispiel:
Tab1 und Tab2 haben den Inhalt der extoption.htm und auch deren Speicher Button unter jedem der genannten Tabs.
Tab 3,4 und 5 haben den Inhalt der usereditprofile.htm und auch deren Speicher Button unter jedem der genannten Tabs.
Oder hab ich nun einen Denkfehler?!
Ich geh pennen
Immer wenn der User speichern klickt, werden die Daten, die in dem Tab zusehen sind gespeichert.
Voraussetzung ist, dass die Inhalte der beiden .html Dateien nicht in den Tabs untereinander gemischt sind.
Beispiel:
Tab1 und Tab2 haben den Inhalt der extoption.htm und auch deren Speicher Button unter jedem der genannten Tabs.
Tab 3,4 und 5 haben den Inhalt der usereditprofile.htm und auch deren Speicher Button unter jedem der genannten Tabs.
Oder hab ich nun einen Denkfehler?!
Ich geh pennen
Sämtliche Rechtschreibfehler sind beabsichtigt und dienen der allgemeinen Belustigung.
Wenn ich das richtig verstanden habe möchtest Du den switch von profile & extoption auch vereinen, dies musst Du nicht nur von der User Seite (HTML/Template) machen, sondern auch in der PHP-Datei.
Es geht nicht darum zu haben was man will, sondern zu schätzen was man hat!
Blutrausch HP
Mauern sind auch nur Steine & Wassertropen können auch mal Wassermengen werden!
Blutrausch HP
Mauern sind auch nur Steine & Wassertropen können auch mal Wassermengen werden!
Die Extoption liegt ja in der Userprofile.php mit drin, aber wenn es in einem "Fenster" ist, müsste man ja "nur" den SWITCH der für userprofile-> Edit erweitern mit userprofile-> extoption.
Es geht nicht darum zu haben was man will, sondern zu schätzen was man hat!
Blutrausch HP
Mauern sind auch nur Steine & Wassertropen können auch mal Wassermengen werden!
Blutrausch HP
Mauern sind auch nur Steine & Wassertropen können auch mal Wassermengen werden!
Ähnliche Themen
-
Web | Programmierung »-
Zeilenumbruch
(29. Juni 2008, 23:15)
-
Web | Allgemein »-
Bannerwechsel auf Knopfdruck
(14. Juli 2008, 22:07)
-
alte Versionen [1.6.03|1.6.1|1.6.4] »-
format_smilies_im.htm in imcenter aufrufen lassen
(21. Mai 2008, 21:26)
-
Web | Allgemein »-
ein button mit html befehl
(26. Januar 2008, 20:26)


