Jump to content

[SOLVED] Simple POST Problem


eddy556

Recommended Posts

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  :D

Link to comment
https://forums.phpfreaks.com/topic/145297-solved-simple-post-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.