php - My form won't work -


This form works well in choosing a season and one episode that comes with my php handling script:

  & lt; Form action = "view" method = "find" & gt; & Lt; Font color = "white"> Season: & lt; / Font & gt; & Lt; Select name = "s" & gt; & Lt; Option id = "s" value = "1" & gt; 1 & lt; / Options & gt; & Lt; / Select & gt; & Lt; Font color = "white" & gt; Episode: & lt; / Font & gt; & Lt; Select name = "e" & gt; & Lt; Option id = "e" value = "1" & gt; 1 & lt; / Options & gt; & Lt; Option id = "e" value = "2" & gt; 2 & lt; / Options & gt; & Lt; Option id = "e" value = "3" & gt; 3 & lt; / Options & gt; & Lt; Option id = "e" value = "4" & gt; 4 & lt; / Options & gt; & Lt; Option id = "e" value = "5" & gt; 5 & ​​lt; / Options & gt; & Lt; Option id = "e" value = "6" & gt; 6 & lt; / Options & gt; & Lt; Option id = "e" value = "7" & gt; 7 & lt; / Options & gt; & Lt; Option id = "e" value = "8" & gt; 8 & lt; / Options & gt; & Lt; Option id = "e" value = "9" & gt; 9 & lt; / Options & gt; & Lt; Option id = "e" value = "10" & gt; 10 & lt; / Options & gt; & Lt; Option id = "e" value = "11" & gt; 11 & lt; / Options & gt; & Lt; Option id = "e" value = "12" & gt; 12 & lt; / Options & gt; & Lt; Option id = "e" value = "13" & gt; 13 & lt; / Options & gt; & Lt; Option id = "e" value = "14" & gt; 14 & lt; / Options & gt; & Lt; Option id = "e" value = "15" & gt; 15 & lt; / Options & gt; & Lt; Option id = "e" value = "16" & gt; 16 & lt; / Options & gt; & Lt; Option id = "e" value = "17" & gt; 17 & lt; / Options & gt; & Lt; Option id = "e" value = "18" & gt; 18 & lt; / Options & gt; & Lt; Option id = "e" value = "19" & gt; 19 & lt; / Options & gt; & Lt; Option id = "e" value = "20" & gt; 20 & lt; / Options & gt; & Lt; Option id = "e" value = "21" & gt; 21 & lt; / Options & gt; & Lt; Option id = "e" value = "22" & gt; 22 & lt; / Options & gt; & Lt; Option id = "e" value = "23" & gt; 23 & lt; / Options & gt; & Lt; Option id = "e" value = "24" & gt; 24 & lt; / Options & gt; & Lt; / Select & gt; & Lt; Input type = "submit" value = "go" & gt; & Lt; / Form & gt;  

So, someone can tell me why this form will not work for random event selection?

  & lt; Form action = "view" method = "get" & gt; & Lt; Input type = "hidden" id = "s" value = "1" & gt; & Lt; Input type = "hidden" id = "e" value = "& lt ;? phcho echo (rand (1,24)) ?? & Gt; & Lt; Input type = "submit" value = "see Random Episode" & gt; & Lt; / Form & gt;  

This variable will not attach at the end of the URL, I have to get all this:

  http://127.0.0.1/media/ show / view /?  

Hidden information requires the name attribute, in the same way that the name of the selected elements is named.

  & lt; Input type = "hidden" name = "s" id = "s" value = "1" & gt; & Lt; Input type = "hidden" name = "e" id = "e" value = "& lt ;? phcho echo (rand (1,24)) ?? & Gt;  

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -