[php] & en/of css

Gestart doorPropje16 reacties35 weergaven

17 berichten · pagina 1 van 2

Propje

Lid · Topicstarter

Berichten
2.517
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hallo one2xserz,

ik heb even een vraagje aanjullie,bij one2xs heb je zeg maar een loginscript de meldingen komen in het midden te staan in de div content:
Afbeelding
dus mijn vraag is weet iemand hoe ik dat dus kan doen ?

Met vriendelijke groet,
Propje
0
Berichten
5.957
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Laat nu eens heel je code zien ...
0
Propje

Lid · Topicstarter

Berichten
2.517
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
heb je een pb gestuurd met de code.
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Met if en else werken biggrin
0
Berichten
3.314
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hij bedoelt waarschijnlijk , je logt links fout in en krijgt dan rechts die waarschuwing?

Propje, je moet dan de pagina aanroepen, bijvoorbeeld ?p=wwisfout

of gewoon wwisfout.php
0
Propje

Lid · Topicstarter

Berichten
2.517
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
@Kyran

ja dat bedoel ik maar wil het niet met ?p=wwisfout doen
0
Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
dan kun je de url aanpassen met .htaccess
dan krijg je gewoon domein.nl/wwisfout
0
Berichten
325
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
probeer jQuery eens zou ik zeggen.
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Loginvak door laten sturen naar login.php en die pagina het af laten handelen. Foute gegevens? Error geven
0
Propje

Lid · Topicstarter

Berichten
2.517
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
De form van login komt in het vakje div login

<form action="" method="post">
    Gebruikersnaam: <input type="text" name="gebruikersnaam" /><br />
    Wachwoord: <input type="password" name="wachtwoord" /><br />
    <input type="submit" name="login" value="login"/><br />
    </form>


maar meestal moet je de error boven de form laten zetten maar de andere div container
zit heel ver naar onder dus hoe kan ik het in 1 pagina de foutmelding in andere div zetten ? Dat het systeem toch goed werkt.
0
Propje

Lid · Topicstarter

Berichten
2.517
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Heb nu dit maar dit werkt ook niet

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/require_once"]require_once[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]config.php[/COLOR][COLOR= #007700]);[/COLOR]
?>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="slider.js"></script>
<script src="nieuws.js"></script>
<title>vpshostingbedrijf</title>
<link rel="stylesheet" type="text/css" href="style.css" />

</head>

<body>

    <div id="loginbg">
    
                [COLOR= #0000BB]<?php

$fout[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$fouten[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$form[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"
<div id="login1">
                <form action="" method="post">
                <input style="border: 0px none; background-color: #F2F2F2; font-family: Verdana, Geneva, sans-serif; font-size: 9px; color: #5FA43A;" name="gebruikersnaam" value="Naam" size="[/COLOR][COLOR= #0000BB]20[/COLOR][COLOR= #DD0000]" type="text" /></div>
                <div id="login2">
                <input style="border: 0px none; background-color: #F2F2F2; font-family: Verdana, Geneva, sans-serif; font-size: 9px; color: #5FA43A" name="wachtwoord" value="Wachtwoord" size="20" type="password" /></div>
            <input type="submit" name="login" value="login"/>
            </form>
              
                <input type="image" src="images/login.png" style="margin-left: 20px; margin-top: 10px; color: #000;" name="image" width="50" height="30">      
                
                       </div>
    <a href="wachtwoordvergeten.php">Wachtwoord vergeten?</a>"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"gebruikersnaam"[/COLOR][COLOR= #007700]]) &&[/COLOR] [URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"wachtwoord"[/COLOR][COLOR= #007700]])) {[/COLOR]
    [COLOR= #0000BB]$gebruikersQuery[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT gebruikersnaam,wachtwoord,actief FROM leden WHERE gebruikersnaam="[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"gebruikersnaam"[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]" AND wachtwoord="[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/sha1"]sha1[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"wachtwoord"[/COLOR][COLOR= #007700]])).[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Er is een fout opgetreden in : "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"PHP_SELF"[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"<br />De volgende fout werd geretourneerd: "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
    [COLOR= #0000BB]$gebruikersFetch[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_array"]mysql_fetch_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$gebruikersQuery[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"gebruikersnaam"[/COLOR][COLOR= #007700]])) {[/COLOR]
        [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]++;[/COLOR]
        [COLOR= #0000BB]$fouten[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Geen gebruikersnaam ingevoerd!<br />"[/COLOR][COLOR= #007700];
    }[/COLOR]
    [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"wachtwoord"[/COLOR][COLOR= #007700]])) {[/COLOR]
        [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]++;[/COLOR]
        [COLOR= #0000BB]$fouten[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Geen wachtwoord ingevoerd!<br />"[/COLOR][COLOR= #007700];
    }[/COLOR]
    [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$gebruikersQuery[/COLOR][COLOR= #007700]) ==[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]) {[/COLOR]
        [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]++;[/COLOR]
        [COLOR= #0000BB]$fouten[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Gebruikersnaam en/of wachtwoord klopt niet!<br />"[/COLOR][COLOR= #007700];
    }[/COLOR]
    [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$gebruikersFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"actief"[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]) {[/COLOR]
        [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]++;[/COLOR]
        [COLOR= #0000BB]$fouten[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Uw account is nog niet geactiveerd!<br />"[/COLOR][COLOR= #007700];
    }[/COLOR]
    [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"gebruikersnaam"[/COLOR][COLOR= #007700]]) &&[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"hash"[/COLOR][COLOR= #007700]] ==[/COLOR] [URL="http://www.php.net/sha1"]sha1[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"gebruikersnaam"[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"REMOTE_ADDR"[/COLOR][COLOR= #007700]])) {[/COLOR]
        [COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]++;[/COLOR]
        [COLOR= #0000BB]$fouten[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"U bent al ingelogd!<br />"[/COLOR][COLOR= #007700];
    }
    
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$form[/COLOR][COLOR= #007700];
}[/COLOR]
?>
                
                <div id="container">
                <div id="logo"></div>
            <div id="menu">
                <div id=navigatie>
                <ul>
                    <li><a href="url">HOME</a></li>
                    <li><a href="url">OVER ONS</a></li>
                    <li><a href="url">VPS SERVERS</a></li>
                    <li><a href="url">DETICATED SERVER</a></li>
                    <li><a href="url">PAGINA 5</a></li>
                    <li><a href="url">CONTACT</a></li>
                </ul>
                        </div>
                                   </div>
                <div id="content">
                <div id="left">
                <div id="server"><img src="images/server.png" alt="Server" /> </div>
                <div id="gegevens">
                VPS WEBHOSTING<br />
        Postbus 1020<br />
        7801BA Emmen<br />
        E: info@webhost.nl<br />
        </div>
                <div id="promo">
               [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/file_get_contents"]file_get_contents[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"http://zubein.webuda.com/getbericht.php?get=1"[/COLOR][COLOR= #007700]);[/COLOR] ?>
                </div>
                <div id="domein">
                <strong>DOMEIN NOG VRIJ?</strong><br /><br />
                Lorem ipsum dolor sit amet, consectetur adipiscing elit. In tincidunt fringilla orci, sit amet<br /><br />
                <div id="form"><input style="border: 0px none ;" name="naam" value="VPSwebhosting.nl" size="20" type="text" /></div>
                <input type="image" src="images/check.png" style="margin-left: 97px; margin-top: 7px; color: #000;" name="image" width="81" height="23">
                </div>
                </div>
                <div id="right">
                <div id="tekst">
                <p class="ttt">Zorgen voor werkende en snelle VPS server is ons kwaliteit!</p>
                Lorem ipsum dolor sit amet, consectetur adipiscing elit. In tincidunt fringilla orci, sit amet sagittis leo rhoncus sed. Nunc fermentum ultricies vestibulum. Cras eu odio ut lorem auctor adipiscing id nec lorem. Duis tempor lectus nec tellus ullamcorper suscipit. Ut id molestie enim. Cras ut lectus nec libero condimentum laoreet mollis vitae urna. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris et mi non urna venenatis eleifend in a tellus. Praesent lacinia auctor orci, sed elementum urna pulvinar eget. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nunc tellus nisi, cursus a rutrum nec, sollicitudin in nulla. Aliquam neque libero, rhoncus ut pulvinar ut, placerat sit amet ipsum. Donec dignissim vestibulum magna pretium malesuada. Etiam id neque quis metus commodo gravida at ac elit.<br /><br />
                <p class="ttt">Welkomstbericht</p>
                [COLOR= #0000BB]<?php[/COLOR]
                    [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$fout[/COLOR] [COLOR= #007700]>[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]) {[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$form[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"<br /><br /><b>Er zijn "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$fout[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" fouten opgetreden: </b><br />"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$fouten[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"<br />"[/COLOR][COLOR= #007700];
    }[/COLOR]
    [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
       [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"hoi"[/COLOR][COLOR= #007700];
    }[/COLOR]
    ?>
                 Lorem ipsum dolor sit amet, consectetur adipiscing elit. In tincidunt fringilla orci, sit amet sagittis leo rhoncus sed. Nunc fermentum ultricies vestibulum. Cras eu odio ut lorem auctor adipiscing id nec lorem. Duis tempor lectus nec tellus ullamcorper suscipit. Ut id molestie enim. Cras ut lectus nec libero condimentum laoreet mollis vitae urna. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris et mi non urna venenatis eleifend in a tellus. Praesent lacinia auctor orci, sed elementum urna pulvinar eget. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nunc tellus nisi, cursus a rutrum nec, sollicitudin in nulla. Aliquam neque libero, rhoncus ut pulvinar ut, placerat sit amet ipsum. Donec dignissim vestibulum magna pretium malesuada. Etiam id neque quis metus commodo gravida at ac elit.<br /><br />
                Ut hendrerit nisi ac urna dignissim eleifend viverra justo commodo. Cras arcu metus, vehicula sed lacinia id, interdum a sapien. Donec sed nunc mauris, vel facilisis lacus. Nulla facilisi. Proin tempus, augue tristique cursus blandit, arcu nisi tempor justo, sed pretium felis lacus nec arcu. Morbi rutrum tellus in risus ultricies vehicula. Nunc vehicula tellus vitae eros consequat id consequat nisl porta. Vivamus eget sem odio, ac varius magna. Mauris in sem quam. Quisque lorem massa, faucibus vulputate pulvinar at, feugiat quis urna. Nunc ullamcorper erat vitae tellus pretium ac varius velit laoreet. Etiam vel nisi enim. Cras congue velit ut velit accumsan in accumsan quam dapibus. Proin at augue metus. Fusce in quam nisi, ut tempor erat.<br /><br />
                Sed ornare placerat gravida. Sed pellentesque arcu non leo gravida malesuada. Etiam nec velit tortor. Fusce sit amet quam velit. Suspendisse pharetra interdum erat, a condimentum est venenatis eu. Maecenas at consectetur nunc. Praesent porttitor, leo placerat lobortis tempor, metus leo tristique velit, id sagittis arcu arcu dignissim orci. Duis vel erat a mi varius lobortis. Duis odio felis, posuere vel convallis tempor, imperdiet quis libero. In hac habitasse platea dictumst. Nullam accumsan, ipsum et bibendum consectetur, nunc quam pulvinar odio, eu sodales metus nisi eget nunc. Nunc et enim in nibh blandit dignissim quis sed magna.

  
  <br /><br /><br />
                
                <form>
        
            <div id="slider_target" class="left"></div> &nbsp;
            <input type="text" name="mhz" size="3" value="200" class="left1"> MHZ<br /><br /><br /><br />
            

            <div id="slider_target2" class="left"></div> &nbsp;
            <input type="text" name="mb" size="3" value="128" class="left1"> MB<br /><br /><br /><br />
            
            <div id="slider_target3" class="left"></div> &nbsp;
            <input type="text" name="gb" size="3" value="10" class="left1"> GB<br /><br />    <br /><br />
</form>


<script type="text/javascript">
// Javascript for example 1
form_widget_amount_slider(slider_target,document.forms[0].mhz,405,0,2800,"setColorByHSB()");
form_widget_amount_slider(slider_target2,document.forms[0].mb,405,0,2048,"setColorByHSB()");
form_widget_amount_slider(slider_target3,document.forms[0].gb,405,0,300,"setColorByHSB()");
</script>
 <input name="" type="button" style="background:url(images/bestel.png); width:143px; height:32px; border:0;"/> </div><br /><br />

                <div id="mark"></div>
                </div>
                <div style="clear: both;"></div>
                </div>
                <div id="footer">Copyright  2011 VPSWebhosting.nl. All Rights Reserved | Design door ShahiemSeymor Webdesign</div>                            
             </div>
        </body>
  </html>


error: Parse error: syntax error, unexpected T_LNUMBER in /home/a2829566/public_html/index.php on line 26
0
Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Regel 23 moet je dubbel "" hebben. Jij hebt er 1
0
Berichten
2.692
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Freestyle schreef:
Regel 23 moet je dubbel "" hebben. Jij hebt er 1
Nee dat heeft hij goed winkHij heeft er HTML in staan smile
0
Propje

Lid · Topicstarter

Berichten
2.517
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
@Superb

hoe moet ik het wel doen ?
0
Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php        $form[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"        <input style="border: 0px none; background-color: #F2F2F2; font-family: Verdana, Geneva, sans-serif; font-size: 9px; color: #5FA43A;" name="gebruikersnaam" value="Naam" size=20 type="text" /></div>
"[/COLOR][COLOR= #007700];[/COLOR]
?>


Probeer dit is.

Bij size was het getal 20 blauw. Je kan anders ook nog "20" neer zettenwink
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren