|
#1
|
||||
|
||||
|
ich möchte auf meine hauptseite ein registrierungsformular script einbinden welches auf hauptseite/ordner/register.php fertig liegt und funktioniert
und wenn ich das mit <php include nun einbinde ( error! die seite lädt nicht mehr richtig .... Wie bekomme ich das formular in meindomain.de meinedomain.de/order/register.php läuft ! so sieht die datei aus ( das formular möchte ich so (iframe ähnlich)) einbinden Code für meinedomain.de/order/register.php Code:
<?php
require "includes/registration.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<title><?php echo outputLan("regPage","page title"); ?></title>
<!-- CSS files -->
<link rel="stylesheet" type="text/css" media="all" href="css/global.css"/>
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="css/ie.css">
<![endif]-->
<!-- Java Script Includes -->
<script type="text/javascript" src="js/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="js/cufon-yui.js"></script>
<script type="text/javascript" src="js/font_400.font.js"></script>
<script type="text/javascript" src="http://connect.facebook.net/en_US/all.js"></script>
<script type="text/javascript" src="js/registration.js"></script>
</head>
<body>
<div class="container_12">
<div class="grid_12">
<h1><?php echo outputLan("regPage","Register an Account"); ?></h1>
<br/>
</div>
<div class="grid_6"><?php echo $output; ?></div>
<div class="clear"></div>
<div class="grid_6">
<div class="reg_box">
<img src="http://www.webmasterwelt.net/images/signup.png" alt="Sign Up!" title="Sign Up!" class="float_outside">
<h3><?php echo outputLan("regPage","Register directly"); ?></h3>
<hr>
<p><?php echo outputLan("regPage","register directly text"); ?></p>
<form method="post" action="register.php" id="regForm">
<label for="username"><?php echo outputLan("regPage","username"); ?></label>
<input type="text" name="username" id="username" class="input_field" size="47"
onkeyup="checkInput('username');" value="<?php echo $username; ?>"><img id="usernameIMG"
src="http://www.webmasterwelt.net/images/loader.gif"
alt="output"
class="hidden">
<div id="form_hidden">
<label for="firstname"><?php echo outputLan("regPage","first name"); ?></label>
<input type="text" name="firstname" id="firstname" class="input_field" size="47"
onkeyup="checkInput('firstname');" value="<?php echo $fname; ?>"><img id="firstnameIMG"
src="http://www.webmasterwelt.net/images/loader.gif"
alt="output"
class="hidden">
<label for="lastname"><?php echo outputLan("regPage","last name"); ?></label>
<input type="text" name="lastname" id="lastname" class="input_field" size="47"
onkeyup="checkInput('lastname');" value="<?php echo $lname; ?>"><img id="lastnameIMG"
src="http://www.webmasterwelt.net/images/loader.gif"
alt="output"
class="hidden">
<label for="email"><?php echo outputLan("regPage","email"); ?></label>
<input type="text" name="email" id="email" class="input_field" size="47"
onkeyup="checkInput('email');" value="<?php echo $email; ?>"><img id="emailIMG"
src="http://www.webmasterwelt.net/images/loader.gif"
alt="output"
class="hidden">
<label for="password"><?php echo outputLan("regPage","password"); ?></label>
<input type="password" name="password" id="password" class="input_field" size="47"
onkeyup="checkInput('password');" value="<?php echo $pass; ?>"><img id="passwordIMG"
src="http://www.webmasterwelt.net/images/loader.gif"
alt="output"
class="hidden">
<label for="password2"><?php echo outputLan("regPage","password2"); ?></label>
<input type="password" name="password2" id="password2" class="input_field" size="47"
onkeyup="checkInput('password2');" value="<?php echo $pass2; ?>"><img id="password2IMG"
src="http://www.webmasterwelt.net/images/loader.gif"
alt="output"
class="hidden">
<label for="gender"><?php echo outputLan("regPage","gender"); ?></label>
<select name="gender" id="gender" class="input_field" style="height:30px;">
<option value="select" <?php echo $dSel; ?>>Select</option>
<option value="male" <?php echo $mSel; ?>><?php echo outputLan("regPage","male"); ?></option>
<option value="female" <?php echo $fSel; ?>><?php echo outputLan("regPage","female"); ?></option>
</select>
<label for="contact"><?php echo outputLan("regPage","contact"); ?></label>
<select name="contact" id="contact" class="input_field" style="height:30px;">
<option value="yes">Yes</option>
<option value="no">No</option>
</select>
<input type="hidden" name="cap1" id="cap1" value="<?php echo $cap1; ?>">
<input type="hidden" name="cap2" id="cap2" value="<?php echo $cap2; ?>">
<label for="captcha"><?php echo outputLan("regPage","captcha"); ?><?php echo $capString; ?></label>
<input type="text" name="captcha" id="captcha" class="input_field" size="10"
onkeyup="checkInput('captcha');"><img id="captchaIMG" src="http://www.webmasterwelt.net/images/loader.gif" alt="output"
class="hidden">
<br/>
<input type="submit" name="register" id="subBut" value="<?php echo outputLan("regPage","register button"); ?>" class="input_field submit">
</div>
<!-- end of hidden form element -->
</form>
</div>
</div>
</div>
<div id="fb-root"></div>
<script type="text/javascript">
FB.init({appId: '<?php echo $fb_app_id; ?>', status: true,
cookie: true, xfbml: true});
<?php
if ($errors == 0) {
?>
$('#form_hidden').hide();
<?php } else { ?>
checkInput('username');
checkInput('email');
checkInput('lastname');
checkInput('firstname');
checkInput('password');
checkInput('password2');
<?php } ?>
</script>
</body>
</html>
<?php ob_flush(); ?>
|
|
#2
|
||||
|
||||
|
Warum machst du es denn nicht über ein IFrame?
Denn, was da ausgegeben wird, ist ja eine fertige Seite. Schon vom PHP her, ist es ungünstig eine Seite mit Ausgabe-Kontrollfunktionen in ein anderes Script einzubinden. Vom fertigen HTML-Code ganz zu schweigen ![]() Gruß Broken Sword
__________________
I keep staring at the chromed .45, lying on the living room table
A moment of silence... www.freesoft-board.to |
|
#3
|
||||
|
||||
|
IFrames werden von den meisten Suchmaschinen aber nicht indiziert.
Es sollte aber möglich sein diese Seite mit PHP einzubinden, leider reichen meine Kenntnisse aber nicht aus um dir eine Hilfe zu sein. Vielleicht wendest du dich erst an ein Forum zum Thema PHP, falls es doch nicht geht musst du dir doch etwas überlegen. |
|
#4
|
||||
|
||||
|
Ach, das kann man mit einer JS-Lösung (noscript-> ein einfacher Link) doch prima umgehen
![]() Solange man nicht alle Dateien kennt, kann man eh nur spekulieren. Gruß Broken Sword
__________________
I keep staring at the chromed .45, lying on the living room table
A moment of silence... www.freesoft-board.to Geändert von Broken Sword (11.02.2011 um 07:36 Uhr) |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | |
|
|