I am developing online form that would store values and passed them to another article which would display “results”. I am using Sourcerer extension to blend simple counting JS script and php for passing variables into article. However, I know very little about Joomla and I do not know where to send variables. action=??? . I found tutorial on You Tube suggesting using article alias for this purpose however it does not work in 2.5.
If this is wrong approach towards solving this problem, could you please direct me.
<span id="remain"></span>
<form action="3.php" method="post" id="form1" name="form1">
<input type="radio" name="group2" value="Value1"> Value 1<br/>
<input type="radio" name="group2" value="Value2"> Value 2<br/>
<input type="radio" name="group2" value="Value3" checked> Value 3<br/>
<input type="submit" name="Go" value="submit">
</form>
<script type="text/javascript">
window.onload=counter;
function counter()
{
seconds = 5;
countDown();
}
function countDown(){
document.getElementById("remain").innerHTML=seconds;
setTimeout("countDown()",1000);
if(seconds == 0)
{
document.form1.submit();
}else {
seconds--;
}
}
</script>
Link to the Youtube tutorial:
http://www.youtube.com/watch?v=XgJmUo3BtrQ&feature=related
You can declare something like this in your form action and fetch data on an specific article –
I hope this makes sense to you and let me know if you need more clarification.