unexpected T_ELSE

Gestart doorOne2xs42 reacties71 weergaven

43 berichten · pagina 1 van 3

One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Hallo,

Ik krijg de volgende foutmelding:

Parse error: syntax error, unexpected T_ELSE in /home/*****/domains/*****/public_html/*****/post.php on line 44


Dit is het script wat erbij hoort:
Spoiler tonen
<h1>Post an idea</h1>
[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/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]verzenden[/COLOR][COLOR= #007700]]))
{[/COLOR]
 
[COLOR= #0000BB]$name[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/addslashes"]addslashes[/URL][COLOR= #007700]([/COLOR]htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]name[/COLOR][COLOR= #007700]]));[/COLOR] 
[COLOR= #0000BB]$email[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/addslashes"]addslashes[/URL][COLOR= #007700]([/COLOR]htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]]));[/COLOR] 
[COLOR= #0000BB]$picture[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/addslashes"]addslashes[/URL][COLOR= #007700]([/COLOR]htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]picture[/COLOR][COLOR= #007700]]));[/COLOR] 
[COLOR= #0000BB]$idea[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/addslashes"]addslashes[/URL][COLOR= #007700]([/COLOR]htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]idea[/COLOR][COLOR= #007700]]));[/COLOR] 

[COLOR= #0000BB]$errors[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/strlen"]strlen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$name[/COLOR][COLOR= #007700]) <[/COLOR] [COLOR= #0000BB]5[/COLOR][COLOR= #007700]){[/COLOR]

[COLOR= #0000BB]$errors[/COLOR] [COLOR= #007700].=[/COLOR]  [COLOR= #DD0000]Your name is too short.<br />[/COLOR][COLOR= #007700];

}[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/strlen"]strlen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700]) <[/COLOR] [COLOR= #0000BB]5[/COLOR][COLOR= #007700]){[/COLOR]

[COLOR= #0000BB]$errors[/COLOR] [COLOR= #007700].=[/COLOR]  [COLOR= #DD0000]Your email is too short.<br />[/COLOR][COLOR= #007700];

}[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700](![/COLOR][URL="http://www.php.net/strstr"]strstr[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]@[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$email[/COLOR][COLOR= #007700])[/COLOR] or [COLOR= #007700]![/COLOR][URL="http://www.php.net/strstr"]strstr[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000].[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$email[/COLOR][COLOR= #007700])){[/COLOR]

[COLOR= #0000BB]$errors[/COLOR] [COLOR= #007700].=[/COLOR]  [COLOR= #DD0000]Fill in a valid email.<br />[/COLOR][COLOR= #007700];

}[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/strlen"]strlen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$idea[/COLOR][COLOR= #007700]) <[/COLOR] [COLOR= #0000BB]50[/COLOR][COLOR= #007700]){[/COLOR]

[COLOR= #0000BB]$errors[/COLOR] [COLOR= #007700].=[/COLOR]  [COLOR= #DD0000]Your idea must be at least 50 characters long.<br />[/COLOR][COLOR= #007700];

}[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$errors[/COLOR] [COLOR= #007700]!=[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700]){[/COLOR]

[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000][/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$errors[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];

}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
 
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO idea (name, email, picture, idea) VALUES ("[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$name[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]", "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$picture[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]", "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$idea[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]")"[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR] 
 
[URL="http://www.php.net/print"]print[/URL] [COLOR= #DD0000]"Your idea has been successfully posted."[/COLOR][COLOR= #007700]; 
  }[/COLOR] 
[URL="http://www.php.net/else"]else[/URL] 
  [COLOR= #007700]{[/COLOR]
  ?>
<form action=" <?=$_SERVER[PHP_SELF]?> " method="POST">
Name: <br><input type="text" name="name"><br /> 
Email: <br><input type="text" name="email"><br /> 
Link to image: <a href="http://*****/" target="_blank"><small>Upload image</small></a> <br><input type="text" name="picture"><br />
Idea: <br><textarea name="idea" rows="10" cols="60"></textarea><br /> 
<input type="submit" name="verzenden" value="Post idea"> 
</form>
[COLOR= #0000BB]<?[/COLOR] 
  [COLOR= #007700]}[/COLOR] 
?>
0
Berichten
13.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Als je het script goed uitlijnt, zie je zo dat je een accolade mist.
Nu zie ik je maar random een paar spaties gebruiken voor je accolades.. Je script ziet er niet goed leesbaar uit.

De fout betekent dat je 2x een else achter elkaar gebruikt:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR]true[COLOR= #007700])
{[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]een[/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]twee[/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]drie[/COLOR][COLOR= #007700];
}[/COLOR]
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Sjoerd schreef:
Als je het script goed uitlijnt, zie je zo dat je een accolade mist.
Nu zie ik je maar random een paar spaties gebruiken voor je accolades.. Je script ziet er niet goed leesbaar uit.

De fout betekent dat je 2x een else achter elkaar gebruikt:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR]true[COLOR= #007700])
{[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]een[/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]twee[/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]drie[/COLOR][COLOR= #007700];
}[/COLOR]
oke bedankt voor de tips, ik gebruik inderdaad 2x echo na elkaar, heb jij enig idee waar ik die 2e echo door kan vervangen dan?
0
Berichten
788
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Jellesch schreef:
Eerdere citaten tonen
Sjoerd schreef:
Als je het script goed uitlijnt, zie je zo dat je een accolade mist.
Nu zie ik je maar random een paar spaties gebruiken voor je accolades.. Je script ziet er niet goed leesbaar uit.

De fout betekent dat je 2x een else achter elkaar gebruikt:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR]true[COLOR= #007700])
{[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]een[/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]twee[/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]drie[/COLOR][COLOR= #007700];
}[/COLOR]

oke bedankt voor de tips, ik gebruik inderdaad 2x echo na elkaar, heb jij enig idee waar ik die 2e echo door kan vervangen dan?

Probeer dit is

<h1>Post an idea</h1>
[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/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]verzenden[/COLOR][COLOR= #007700]]))
{[/COLOR]
 
[COLOR= #0000BB]$name[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/addslashes"]addslashes[/URL][COLOR= #007700]([/COLOR]htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]name[/COLOR][COLOR= #007700]]));[/COLOR] 
[COLOR= #0000BB]$email[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/addslashes"]addslashes[/URL][COLOR= #007700]([/COLOR]htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]]));[/COLOR] 
[COLOR= #0000BB]$picture[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/addslashes"]addslashes[/URL][COLOR= #007700]([/COLOR]htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]picture[/COLOR][COLOR= #007700]]));[/COLOR] 
[COLOR= #0000BB]$idea[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/addslashes"]addslashes[/URL][COLOR= #007700]([/COLOR]htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]idea[/COLOR][COLOR= #007700]]));[/COLOR] 

[COLOR= #0000BB]$errors[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/strlen"]strlen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$name[/COLOR][COLOR= #007700]) <[/COLOR] [COLOR= #0000BB]5[/COLOR][COLOR= #007700]){[/COLOR]

[COLOR= #0000BB]$errors[/COLOR] [COLOR= #007700].=[/COLOR]  [COLOR= #DD0000]Your name is too short.<br />[/COLOR][COLOR= #007700];

}[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/strlen"]strlen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700]) <[/COLOR] [COLOR= #0000BB]5[/COLOR][COLOR= #007700]){[/COLOR]

[COLOR= #0000BB]$errors[/COLOR] [COLOR= #007700].=[/COLOR]  [COLOR= #DD0000]Your email is too short.<br />[/COLOR][COLOR= #007700];

}[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700](![/COLOR][URL="http://www.php.net/strstr"]strstr[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]@[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$email[/COLOR][COLOR= #007700])[/COLOR] or [COLOR= #007700]![/COLOR][URL="http://www.php.net/strstr"]strstr[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000].[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$email[/COLOR][COLOR= #007700])){[/COLOR]

[COLOR= #0000BB]$errors[/COLOR] [COLOR= #007700].=[/COLOR]  [COLOR= #DD0000]Fill in a valid email.<br />[/COLOR][COLOR= #007700];

}[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/strlen"]strlen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$idea[/COLOR][COLOR= #007700]) <[/COLOR] [COLOR= #0000BB]50[/COLOR][COLOR= #007700]){[/COLOR]

[COLOR= #0000BB]$errors[/COLOR] [COLOR= #007700].=[/COLOR]  [COLOR= #DD0000]Your idea must be at least 50 characters long.<br />[/COLOR][COLOR= #007700];

}[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$errors[/COLOR] [COLOR= #007700]!=[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700]){[/COLOR]

[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000][/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$errors[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];

}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
 
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO idea (name, email, picture, idea) VALUES ("[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$name[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]", "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$picture[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]", "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$idea[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]")"[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR] 
 
[URL="http://www.php.net/print"]print[/URL] [COLOR= #DD0000]"Your idea has been successfully posted."[/COLOR][COLOR= #007700]; 
  } 
}[/COLOR]
  ?>
<form action="[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]]);[/COLOR] ?>" method="POST">
Name: <br><input type="text" name="name"><br /> 
Email: <br><input type="text" name="email"><br /> 
Link to image: <a href="http://*****/" target="_blank"><small>Upload image</small></a> <br><input type="text" name="picture"><br />
Idea: <br><textarea name="idea" rows="10" cols="60"></textarea><br /> 
<input type="submit" name="verzenden" value="Post idea"> 
</form>
[COLOR= #0000BB]<?[/COLOR]
[COLOR= #007700]}[/COLOR] 
?>


// Nu ook al de SQL Injection beveiligd
0
Berichten
14.025
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien
SQL Injection mogelijk.
0
Berichten
788
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dylanh schreef:
SQL Injection mogelijk.
Dat weet ik, maar ik moest alleen de else fixen ik fix niet ook al de SQL Injections.

// SQL Injection gefixt "htmlspecialchars" is de beste Functie daarvoor.
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Mrdylan schreef:
Eerdere citaten tonen
Dylanh schreef:
SQL Injection mogelijk.
Dat weet ik, maar ik moest alleen de else fixen ik fix niet ook al de SQL Injections.

// SQL Injection gefixt "htmlspecialchars" is de beste Functie daarvoor.
$name = addslashes(htmlspecialchars($_POST[name])); 
$email = addslashes(htmlspecialchars($_POST[email])); 
$picture = addslashes(htmlspecialchars($_POST[picture])); 
$idea = addslashes(htmlspecialchars($_POST[idea]));


had ik zelf al gedaan hoor ??

toevoeging op 7 januari 2013, 19:39:04:
Nog steeds niks gevonden , iemand die het kan oplossen?
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Fout: De enige en beste manier om SQL injection tegen te gaan is mysql(i)_real_escape_string. Of gebruik prepared statements, zie ook Google die je meer kan vertellen.
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Eens met Aar; en die htmlspecialchars() of htmlentities() moet je pas gebruiken als je data weergeeft, niet als je het in de database doet.
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
En hier ben ik het eens met Lennard wink
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Oke, bedankt voor jullie tips hier ga ik mee aan de slag. Maar ik heb nog steeds geen oplossing voor mijn probleem.
0
Berichten
788
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Lennard schreef:
Eens met Aar; en die htmlspecialchars() of htmlentities() moet je pas gebruiken als je data weergeeft, niet als je het in de database doet.
Oh haha, ik gebruikte zelf ook altijd htmlspecialchars() functie maar dat is dus voor data en niet voor MySQL? dus voor MySQL altijd mysql_real_escape_string() gebruiken? zoja, dan ga ik even wat aan mijn Post editen.
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Mrdylan schreef:
Eerdere citaten tonen
Lennard schreef:
Eens met Aar; en die htmlspecialchars() of htmlentities() moet je pas gebruiken als je data weergeeft, niet als je het in de database doet.
Oh haha, ik gebruikte zelf ook altijd htmlspecialchars() functie maar dat is dus voor data en niet voor MySQL? dus voor MySQL altijd mysql_real_escape_string() gebruiken? zoja, dan ga ik even wat aan mijn Post editen.
Jouw code werkte niet sadley
Jellesch schreef:
Oke, bedankt voor jullie tips hier ga ik mee aan de slag. Maar ik heb nog steeds geen oplossing voor mijn probleem.
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Welk probleem dan? Ik geloof dat alles al beantwoord is, of ik zie iets over het hoofd?
0
Berichten
788
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Jellesch schreef:
Eerdere citaten tonen
Mrdylan schreef:
Eerdere citaten tonen
Lennard schreef:
Eens met Aar; en die htmlspecialchars() of htmlentities() moet je pas gebruiken als je data weergeeft, niet als je het in de database doet.
Oh haha, ik gebruikte zelf ook altijd htmlspecialchars() functie maar dat is dus voor data en niet voor MySQL? dus voor MySQL altijd mysql_real_escape_string() gebruiken? zoja, dan ga ik even wat aan mijn Post editen.
Jouw code werkte niet sadley
Eerdere citaten tonen
Jellesch schreef:
Oke, bedankt voor jullie tips hier ga ik mee aan de slag. Maar ik heb nog steeds geen oplossing voor mijn probleem.
Wat doet die dan? Verzend hij het script niet?
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