html - PHP GET submission error -


OK, I'm trying to program a php page that gives the user a season and an episode with a form Will allow you to choose. Then it sends it to a page that plays them all.

Here's a form:

  & lt; Form action = "view" method = "get" & gt; & Lt; Gt selection and; & Lt; Option name = "s" id = "s" value = "1" & gt; 1 & lt; / Options & gt; & Lt; / Select & gt; & Lt; Gt selection and; & Lt; Option name = "e" id = "e" value = "1"> 1 < / Options & gt; & Lt; / Select & gt; & Lt; Input type = "submit" value = "go" & gt; & Lt; / Form & gt;   

I will add other weather and episodes later when submitting the form to page VIEW, it is sent to the URL and adds the question mark, but they do not define the variable Does

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

I have never met this issue before, how do I get to define the variable using the GET in the URL? I'm sure I'm missing something simple ... Besides, I have manually define the variable in the URL and play my video just fine.

As I said in the comments, you do not have a name attribute on an option You may want to create your own select elements like this:

  & lt; select name = "s">  Option Id = "s" value = "1"> 1  gt; select / gt; select name = "e" & gt; & lt; option id = " E "value =" 1 "> 1 & lt; / option & gt; & lt; / select & gt;   

This will append your URL correctly.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -