Query String Parameters --- the checker wont accept my URL Why?

Back to Problem Solutions forum

LotvinSergey     2016-01-20 21:10:59
User avatar

Hi! I can't understand why I have - WRONG! second url should start http:// Could you check ny URL? http://caqsp-sergeylotvin.rhcloud.com/horoscope.html

A=22, B=50, C=17

the second URL is, for ex., - http://caqsp-sergeylotvin.rhcloud.com/response.jsp?name=testName&year=2011&month=3&day=31

What is the problem with URLs?

Vladimir_V     2016-01-21 11:38:31

HI! I have the same problem. this my url: http://vanceavladimir.atwebpages.com/SimpleForm.html

LotvinSergey     2016-01-21 11:58:44
User avatar

It's pity. But do you have the solution? :) SOS, colleagues!

Vladimir_V     2016-01-21 12:18:23

Oleg! What hosting did you use ? openShift ?

LotvinSergey     2016-01-21 13:05:47
User avatar

Yes! it's openShift. I use JAVA (JSP) and openShift is free as JAVA host.

LotvinSergey     2016-01-21 19:25:33
User avatar

Vladimir_V, but you have this task done, haven't you? I've seen it, because I've figure the issue out. The was exactly in the SECOND URL. My, not mistake I think, was that I use

 <form action="response.jsp" method="get">:          

instead of

 <form action="http://caqsp-sergeylotvin.rhcloud.com/response.jsp" method="get">:      

inside the code of the first page

<html>
<head>
    <title>QueryStringParameters</title>
</head>



<body>
    <h1>Personal Horoscope</h1>
    <form action="http://caqsp-sergeylotvin.rhcloud.com/response.jsp" method="get">
    <p align="center">Name: <input type="text" name="name" value="" size="24" />
    <p align="center">Birth Year: <input type="text" name="year" value="" size="6" /> and Month: <input type="text" name="month" value="" size="3" /> and Day:  <input type="text" name="day" value="" size="3" /></p>
     <p align="center"><button type="submit" >Send data</button></p>

    </form>
</body></html>        
Please login and solve 5 problems to be able to post at forum