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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.