Hi. I want to use a RTE, but i want to get the data with php and put it in MySQL.
i have the form in demo.php
<form action="target.php" method="post" name="RTEDemo" onSumbit="return submitForm();">
<input type="hidden" name="myVal" value="">
<script...>
<here is the script for submitForm() from RTE, with a small modification inside, to get the value of the rte1 into myVal:
....
updateRTE('rte1');
document.RTEDemo.myVal.value = document.RTEDemo.rte1.value;
</script>
<script....>
<!--
writeRichText('rte1',.....);
-->
</script>
<input type="submit" name="submit">
</form>
then, in target.php, i'm trying to get the value of myVal
$val = $_POST['myval'];
but... i have no value. (or i have the value from the "value" part from the hidden field)
What am i doing wrong?



Reply With Quote


Bookmarks