I'm working with a chatclient called Magmachat. It's old and not very good on customizing so i have built a PHP based entery to the chat to make it more flexible but i have run into a bit of a problem. I can solve this with making like 4 identical php documents but i wish to use just one for this.. So i tured to you guys and girls π And i wish you can solve this...
The main thing is that i need to have it autoloading, so when you reach valid.php it should selfload right away to enter into the chat taking with some variables named $name, $age, $location.
These variables is inserted into a variable named USER.
right now i use a javascript to do the submitting but it doesn't work in Browsers like Opera couse when you use a OnLoad it works differently in Opera then in IE. In Opera the variables ain't with when you reach the chat but it works great in IE i hope some clever PHP code solve this to... This is the code for one entery to the chat but i need it to work with several. I used 127.0.0.1 as and exaple IP it's not the real IP to the chat π
<script>
function doSubmit() {
document.all['form2'].USER.value='<? echo "$name($age$yslash$location)";?>';
document.all['form2'].submit();
return false;
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" onLoad="doSubmit()">
<form name="form2" method="post" action="http://127.0.0.1:6671">
</form>
I have some code that convert characters like Γ₯Àâ to HTML code that is above that code i posed.
I hope i'm making any sens? Couse i think i'm not π
//Johan