problem with index.html .(page is automatically gettin redirected to index.html)

K

karthikeyavenkat

hi,

i hav a web template which has pictures,Js files used for that
template...
suppose ther are 4 buttons in the page... when i click the first
button,it is automaticaly getting redirected to index.html behaving
differently where that page should go to someother page as given in
the form action Tag..
<BODY >
<h3>some Question</h3>

<form name="input" action="check.jsp" method="get">
<INPUT TYPE="radio" NAME="answer" value="yes" checked><b>Yes</b>
<INPUT TYPE="radio" NAME="answer" value="no"><b>No</b>
<br>
<br>

<INPUT TYPE="submit"value ="GO">
</form>

</BODY>

wen i click on the GO button . it is going to index.html...
 
K

kaeli

suppose ther are 4 buttons in the page... when i click the first
button,it is automaticaly getting redirected to index.html behaving
differently where that page should go to someother page as given in
the form action Tag..

But there aren't 4 buttons, at least not here.
<form name="input" action="check.jsp" method="get">
Are you sure check.jsp is in the SAME DIRECTORY as this page? With that exact
spelling?
<INPUT TYPE="radio" NAME="answer" value="yes" checked><b>Yes</b>
<INPUT TYPE="radio" NAME="answer" value="no"><b>No</b>
<INPUT TYPE="submit"value ="GO">

Is that a typo or...?
Because if that's a direct copy/paste, you need a space in there before the
word 'value'.
wen i click on the GO button . it is going to index.html...

Do you have any .htaccess files set up?
Are you using Apache and/or Tomcat?

--
 
B

Bryce

hi,

i hav a web template which has pictures,Js files used for that
template...
suppose ther are 4 buttons in the page... when i click the first
button,it is automaticaly getting redirected to index.html behaving
differently where that page should go to someother page as given in
the form action Tag..
<BODY >
<h3>some Question</h3>

<form name="input" action="check.jsp" method="get">
<INPUT TYPE="radio" NAME="answer" value="yes" checked><b>Yes</b>
<INPUT TYPE="radio" NAME="answer" value="no"><b>No</b>
<br>
<br>

<INPUT TYPE="submit"value ="GO">
</form>

</BODY>

wen i click on the GO button . it is going to index.html...

I don't see 4 buttons on that page.

What does check.jsp look like?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top