OnClick set Var Function..
Posted 11 August 2006 - 02:46 AM
Essentially it is for the manager of the site, he can click on a button which adds like a linebreak '<BR>' or something
into the news report he is making...
Have tried looking around for solutions but cant find any, help much appreciated!
Posted 11 August 2006 - 02:53 AM
Perhaps you want the user to click and send stuff to the server without having to reload your page. To do that, you can set upa hidden frame that holds forms with hidden inputs that are sumitted when the user clicks photos in the visible frame.
Posted 11 August 2006 - 03:03 AM
<form enctype="multipart/form-data" method="post">
<input type="hidden" name="click" value="<img src="pictobeclicked.jpg">">
$vartobeset = $_POST["clickme"];
Posted 14 August 2006 - 02:49 AM
<form enctype="multipart/form-data" method="post"> <input type="hidden" name="click" value=""></form>
and then in the HTML of your page, the image will look like this:
<img src="pictobeclicked.jpg" onClick="document.forms.click.value=1;document.forms.submit();">
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users