[PHP] Rondzwevende echos

Gestart doorSanderc25 reacties24 weergaven

26 berichten · pagina 1 van 2

Sanderc

Lid · Topicstarter

Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
); echo( ); echo(); echo( ); echo( ); ?>

Dit zweeft gewoon rond op de aanmeldpagina, dit staat gewoon op een regel, hoe kan dit?
Ik zie het nergens in de code staan?

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"config.php"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"functions.php"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"oboven.php"[/COLOR][COLOR= #007700]);[/COLOR]
?>
<h2> Aanmelden</h2>
<p> Gewoon een gebruikersnaam en wachtwoord kiezen en je hebt al een account op Extraatjes! Makelijker kan het toch niet zijn?
[COLOR= #0000BB]<?php[/COLOR]

[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700](([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REQUEST_METHOD[/COLOR][COLOR= #007700]]==[/COLOR][COLOR= #DD0000]"POST"[/COLOR][COLOR= #007700])&&([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]signup[/COLOR][COLOR= #007700]])) {[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]captcha[/COLOR][COLOR= #007700]]==[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]captcha[/COLOR][COLOR= #007700]]&&![/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]captcha[/COLOR][COLOR= #007700]])){[/COLOR]
[COLOR= #0000BB]$signup_sql[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO leden VALUES(,"[/COLOR][COLOR= #007700].[/COLOR]sqlsafe[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]username[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700].[/COLOR]sqlsafe[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/md5"]md5[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]password[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]", "[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_CONFIG[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]rang[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #DD0000]normaal[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]", "[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_CONFIG[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]punten[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #DD0000]bij_aanmelding[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]")"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$signup_sql[/COLOR] [COLOR= #007700]==[/COLOR] TRUE[COLOR= #007700]) {[/COLOR]
                          [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<br/><b>Je bent succesvol aangemeld! Je kan nu inloggen!<b>"[/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]"Error: "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]();
                          }
                }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
                    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Foute Captcha code"[/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]"<form method="POST" action="">
<table border="0" cellpadding="0" cellspacing="0" width="32%" id="table1">
        <tr>
                <td width="139">Gebruikersnaam:</td>
                <td>
                        <p><input type="text" name="username" size="26"></p>
                </td>
        </tr>
<tr>
                <td width="139">E-mail:</td>
                <td><input type="text" name="email" size="26"></td>
        </tr>
        <tr>
                <td width="139">Wachtwoord:</td>
                <td><input type="password" name="password" size="26"></td>
        </tr>
<?php
echo(<tr>);
              echo(  <td width="139">&nbsp;</td>);
echo(<td><img src="/admin/captcha.php" /></td>);
              echo(  <td><input type="text" name="captcha" /></td>);
      echo(  </tr>);
?>
        <tr>
                <td width="139">&nbsp;</td>
                <td><input type="submit" value="Aanmelden" name="signup"></td>
        </tr>
</table>
</form>"[/COLOR][COLOR= #007700];
        }[/COLOR]

?><br/>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"oonder.php"[/COLOR][COLOR= #007700]);[/COLOR]
?>
0
Berichten
8.649
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Wat staat er dan in al die includes?

toevoeging op 16 april 2012, 19:33:15:
Haha, multisess emo
0
Thom

Lid

Berichten
10.654
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Vriendje schreef:
Wat staat er dan in al die includes?
Het staat onder die

.. dus dat heeft er niet veel mee te maken denk ik
0
Sanderc

Lid · Topicstarter

Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Vriendje schreef:
Wat staat er dan in al die includes?
toevoeging op 16 april 2012, 19:33:15:
Haha, multisess emo
Probleem ermee ofz? Jij gebruikt dat ook op iClip hoor emo
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Haha, multisess emo[/quote]
Vriendje schreef:
Wat staat er dan in al die includes?
toevoeging op 16 april 2012, 19:33:15:
Haha, multisess emo
Leuk joh, mijn producten bashen thumbsup emoJe wist toch wel dat ik het niet meer doorontwikkel?
De werkwijze wordt ook op Fok, Got (Tweakers.net) en zelfs one2xs gebruikt yummie
Even terug naar je probleem. Blijkbaar zal je ergens een PHP-tag missen?
0
Sanderc

Lid · Topicstarter

Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Het is een goed systeem, het is ook leuk om om te bouwen. Het is niet super uitgebreid, end at is goed, zo kan ik leren.
0
Berichten
13.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Regel 22 t/m 50 is al je tekst in 1 echo, daar zitten ook
0
Sanderc

Lid · Topicstarter

Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Sjoerd schreef:
Regel 22 t/m 50 is al je tekst in 1 echo, daar zitten ook
Dus daar moeten de PHP tags er uit?
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
dus even die echos weghalen. Je zit al in een echo namelijk. Kijk maar even goed.
0
Berichten
13.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik snap trouwens niet waarom je dat echot.. Er staat helemaal geen PHP in verder.. puh2
0
Sanderc

Lid · Topicstarter

Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik weet niet, Sevvlor deed dat voor mij ivm de captcha. Alleen heb ik zon rot editor, weet iemand een goede online editor, directadmin is niet goed sadley
toevoeging op 16 april 2012, 19:43:24:
Oooh bedankt trouwens, het werkt.

Maar weet iemand nu een goede online editor?
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Online editor? Waarom online?
Developpen doe je toch altijd offline om het op een lokale of online testlocatie uit te testen?

Duh, DirectAdmin is ook geen echte editor. Zie het meer als een online notepad/kladblok. Leuk om even een configuratie aan te passen.
0
Thom

Lid

Berichten
10.654
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"config.php"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"functions.php"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"oboven.php"[/COLOR][COLOR= #007700]);[/COLOR]
?>
<h2> Aanmelden</h2>
<p> Gewoon een gebruikersnaam en wachtwoord kiezen en je hebt al een account op Extraatjes! Makelijker kan het toch niet zijn?
[COLOR= #0000BB]<?php[/COLOR]

[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700](([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REQUEST_METHOD[/COLOR][COLOR= #007700]]==[/COLOR][COLOR= #DD0000]"POST"[/COLOR][COLOR= #007700])&&([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]signup[/COLOR][COLOR= #007700]])) {[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]captcha[/COLOR][COLOR= #007700]]==[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]captcha[/COLOR][COLOR= #007700]]&&![/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]captcha[/COLOR][COLOR= #007700]])){[/COLOR]
[COLOR= #0000BB]$signup_sql[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO leden VALUES(,"[/COLOR][COLOR= #007700].[/COLOR]sqlsafe[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]username[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700].[/COLOR]sqlsafe[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/md5"]md5[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]password[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]", "[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_CONFIG[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]rang[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #DD0000]normaal[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]", "[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_CONFIG[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]punten[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #DD0000]bij_aanmelding[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]")"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$signup_sql[/COLOR] [COLOR= #007700]==[/COLOR] TRUE[COLOR= #007700]) {[/COLOR]
                          [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<br/><b>Je bent succesvol aangemeld! Je kan nu inloggen!<b>"[/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]"Error: "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]();
                          }
                }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
                    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Foute Captcha code"[/COLOR][COLOR= #007700];
                }
        }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
?>
<form method="POST" action="">
<table border="0" cellpadding="0" cellspacing="0" width="32%" id="table1">
        <tr>
                <td width="139">Gebruikersnaam:</td>
                <td>
                        <p><input type="text" name="username" size="26"></p>
                </td>
        </tr>
<tr>
                <td width="139">E-mail:</td>
                <td><input type="text" name="email" size="26"></td>
        </tr>
        <tr>
                <td width="139">Wachtwoord:</td>
                <td><input type="password" name="password" size="26"></td>
        </tr>
        <tr>
                <td width="139">&nbsp;</td>
                <td><img src="/admin/captcha.php" /></td>
                <td><input type="text" name="captcha" /></td>
        </tr>
        <tr>
                <td width="139">&nbsp;</td>
                <td><input type="submit" value="Aanmelden" name="signup"></td>
        </tr>
</table>
</form>
[COLOR= #0000BB]<?php[/COLOR]
        [COLOR= #007700]}[/COLOR]

?><br/>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"oonder.php"[/COLOR][COLOR= #007700]);[/COLOR]
?>


Zo is het wat mooier yummieDie stomme echos q
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
waarom halverwege opeens weer HTML in PHP frotten?

Mijna dvies voor een goede editor:

- Notepad++
- Netbeans IDE for PHP (aanrader)
- Eclipse kan ook wel goed zijn.
0
Sanderc

Lid · Topicstarter

Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Aarclay schreef:
waarom halverwege opeens weer HTML in PHP frotten?

Mijna dvies voor een goede editor:

- Notepad++
- Netbeans IDE for PHP (aanrader)
Hbe je het over mij of Thom?
Aarclay schreef:
waarom halverwege opeens weer HTML in PHP frotten?

Mijna dvies voor een goede editor:

- Notepad++
- Netbeans IDE for PHP (aanrader)
- Eclipse kan ook wel goed zijn.
Online?
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