im working on creating a small survey web form where in the user will come answer the 3 questions and then click submit.
on clicking submit the user is redirected to a page where based on the score from the answers is calculated and as per the score generated some information is loaded on the screen in the same screen (same url).
today i happend to add the feature of an email being shot to the admin + the user filling the information.
so now what is happening is : on clicking submit the user sees the results and as soon as results are viewed the page gets redirected because i have set the action to : action=actionpage.asp?action=sendmail which sends out the mail.
So I have satisfied both the parameters needed.
1) it sends the mail
2) it shows the results
however i need the mail to be sent and the results to display on the screen instead of coming back to the main screen.
submit button :
<input type="Submit" name="Submit" value="Submit"
onClick="Javascript:Scores()">
and form :
<form name="form1" method="post" action="actionpage.asp?Sendmail">
if there is anyway else i can have this done even with redoing the entire form, please let me know.
basic needed :
1) user visits form -
2) submits answers - (radio buttons only)
3) on submit ---> based to the total of all the 'values' of the selected radio button information is shown on the screen.
4) an email is sent with the results and the values selected.
:no: my gut feeling says this has to be restructured from the beginning but due to limited knowledge on this im totally relying on tutorials and information available on google.
on clicking submit the user is redirected to a page where based on the score from the answers is calculated and as per the score generated some information is loaded on the screen in the same screen (same url).
today i happend to add the feature of an email being shot to the admin + the user filling the information.
so now what is happening is : on clicking submit the user sees the results and as soon as results are viewed the page gets redirected because i have set the action to : action=actionpage.asp?action=sendmail which sends out the mail.
So I have satisfied both the parameters needed.
1) it sends the mail
2) it shows the results
however i need the mail to be sent and the results to display on the screen instead of coming back to the main screen.
submit button :
<input type="Submit" name="Submit" value="Submit"
onClick="Javascript:Scores()">
and form :
<form name="form1" method="post" action="actionpage.asp?Sendmail">
if there is anyway else i can have this done even with redoing the entire form, please let me know.
basic needed :
1) user visits form -
2) submits answers - (radio buttons only)
3) on submit ---> based to the total of all the 'values' of the selected radio button information is shown on the screen.
4) an email is sent with the results and the values selected.
:no: my gut feeling says this has to be restructured from the beginning but due to limited knowledge on this im totally relying on tutorials and information available on google.