eddy556 Posted February 15, 2009 Share Posted February 15, 2009 I have two scripts predictionfiltering.php and result.php, prediction filtering has a form on it, which I'm trying to read in result.php. Here is the source of predictionfiltering: <html> <head><title>Realtime Collaborative Filtering</title> <form name="myform" action="result.php" method="POST"> <table border="1"> <tr><td><u>Movie</u></td><td>Rating</td><td>Prediction</td><td>Error</td></tr> <tr><td>Dragon Ball - Fortun Teller Baba Saga</td><td>1<input type="radio" name="Dragon Ball - Fortun Teller Baba Saga1" value="1" />2<input type='radio' name='Dragon Ball - Fortun Teller Baba Saga' value='2' />3<input type='radio' name='Dragon Ball - Fortun Teller Baba Saga' value='3' />4<input type='radio' name='Dragon Ball - Fortun Teller Baba Saga'value='4' />5<input type='radio' name='Dragon Ball - Fortun Teller Baba Saga'value='5' /></td><td>hello</td><td>hello</td></tr><tr><td>Dune</td><td>1<input type="radio" name="Dune1" value="1" />2<input type='radio' name='Dune' value='2' />3<input type='radio' name='Dune' value='3' />4<input type='radio' name='Dune'value='4' />5<input type='radio' name='Dune'value='5' /></td><td>hello</td><td>hello</td></tr><tr><td>Felicity - Season 2</td><td>1<input type="radio" name="Felicity - Season 21" value="1" />2<input type='radio' name='Felicity - Season 2' value='2' />3<input type='radio' name='Felicity - Season 2' value='3' />4<input type='radio' name='Felicity - Season 2'value='4' />5<input type='radio' name='Felicity - Season 2'value='5' /></td><td>hello</td><td>hello</td></tr><tr><td>Freddy Got Fingered</td><td>1<input type="radio" name="Freddy Got Fingered1" value="1" />2<input type='radio' name='Freddy Got Fingered' value='2' />3<input type='radio' name='Freddy Got Fingered' value='3' />4<input type='radio' name='Freddy Got Fingered'value='4' />5<input type='radio' name='Freddy Got Fingered'value='5' /></td><td>hello</td><td>hello</td></tr><tr><td>I Heart Huckabees</td><td>1<input type="radio" name="I Heart Huckabees1" value="1" />2<input type='radio' name='I Heart Huckabees' value='2' />3<input type='radio' name='I Heart Huckabees' value='3' />4<input type='radio' name='I Heart Huckabees'value='4' />5<input type='radio' name='I Heart Huckabees'value='5' /></td><td>hello</td><td>hello</td></tr><tr><td>Lost in Translation</td><td>1<input type="radio" name="Lost in Translation1" value="1" />2<input type='radio' name='Lost in Translation' value='2' />3<input type='radio' name='Lost in Translation' value='3' />4<input type='radio' name='Lost in Translation'value='4' />5<input type='radio' name='Lost in Translation'value='5' /></td><td>hello</td><td>hello</td></tr><tr><td>Pearl Harbor</td><td>1<input type="radio" name="Pearl Harbor1" value="1" />2<input type='radio' name='Pearl Harbor' value='2' />3<input type='radio' name='Pearl Harbor' value='3' />4<input type='radio' name='Pearl Harbor'value='4' />5<input type='radio' name='Pearl Harbor'value='5' /></td><td>hello</td><td>hello</td></tr><tr><td>The Royal Tenenbaums</td><td>1<input type="radio" name="The Royal Tenenbaums1" value="1" />2<input type='radio' name='The Royal Tenenbaums' value='2' />3<input type='radio' name='The Royal Tenenbaums' value='3' />4<input type='radio' name='The Royal Tenenbaums'value='4' />5<input type='radio' name='The Royal Tenenbaums'value='5' /></td><td>hello</td><td>hello</td></tr><tr><td>The Wedding Planner</td><td>1<input type="radio" name="The Wedding Planner1" value="1" />2<input type='radio' name='The Wedding Planner' value='2' />3<input type='radio' name='The Wedding Planner' value='3' />4<input type='radio' name='The Wedding Planner'value='4' />5<input type='radio' name='The Wedding Planner'value='5' /></td><td>hello</td><td>hello</td></tr><tr><td>VeggieTales - Heroes of the Bible</td><td>1<input type="radio" name="VeggieTales - Heroes of the Bible1" value="1" />2<input type='radio' name='VeggieTales - Heroes of the Bible' value='2' />3<input type='radio' name='VeggieTales - Heroes of the Bible' value='3' />4<input type='radio' name='VeggieTales - Heroes of the Bible'value='4' />5<input type='radio' name='VeggieTales - Heroes of the Bible'value='5' /></td><td>hello</td><td>hello</td></tr><input type="submit"> </form> </html> however I'm getting the error: Notice: Undefined index: Dragon Ball - Fortun Teller Baba Saga1 in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\rentacoder\result.php on line 1 on result.php when submitting the form. <? echo $_POST["Dragon Ball - Fortun Teller Baba Saga1"];?> I know this is something very simple! Thanks for looking Quote Link to comment Share on other sites More sharing options...
dtyson2000 Posted February 15, 2009 Share Posted February 15, 2009 Might it have something to do with all of the spaces in "Dragon Ball - Fortun Teller Baba Saga1"? I'd remove the spaces and shorten that up (DBFTBS1?). Run it without the spaces and see if that helps. Quote Link to comment Share on other sites More sharing options...
eddy556 Posted February 15, 2009 Author Share Posted February 15, 2009 Ah yes, spot on! Argh hate it when its an obvious answer. Many thanks :-) Quote Link to comment Share on other sites More sharing options...
dtyson2000 Posted February 15, 2009 Share Posted February 15, 2009 No problem. Happens to me all the time. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.