- Joined
- Nov 15, 2009
- Messages
- 106
- Reaction score
- 1
Hey guys, I have two questions.
First:
Thats my code to change language on my page. I wanna make it work without having to press the confirm button every single time. So when you change in menu it automaticly change on the whole page.
Second: I have made a page with a php script inside it. The php script is inside a div and when something goes wrong, like weird characters when you click submit, i use die(""); to kill the script but it also kills the stuff under the div, like the footer and stuff. how do i bypass that so its only the php part that stop and not the footer aswell.
Thanks alot for answers! Merci!
First:
Code:
<?php if ($lang_change=="sessioncookie"){?>
<form action='' method='post'><table border='0'>
<tr><td><?php echo "$lang_language:";?>
<select name="lang">
<option value="english" <?php if ($_SESSION['language']=="english") {echo "selected='selected'";}?>>English</option>
<option value="svenska" <?php if ($_SESSION['language']=="svenska") {echo "selected='selected'";}?>>Svenska</option>
</select>
Second: I have made a page with a php script inside it. The php script is inside a div and when something goes wrong, like weird characters when you click submit, i use die(""); to kill the script but it also kills the stuff under the div, like the footer and stuff. how do i bypass that so its only the php part that stop and not the footer aswell.
Thanks alot for answers! Merci!

