Jump to content


Photo

if Statement around Form - *help needed*


  • Please log in to reply
1 reply to this topic

#1 ltoto

ltoto
  • Members
  • PipPipPip
  • Advanced Member
  • 162 posts

Posted 21 September 2006 - 09:41 AM

i have an error which says:

Notice: Undefined index: selectType

from this code

<?
$row_rsForm = $_GET['selectType']; 
if ($row_rsForm  == "Golf"){ ?>

the select type is being picked up from another form, with this code, where it says golf changes on each form to what the select type is

  header("Location:index.php?Id=18&type=".$_POST['selectType']);

hope this makes sense...any suggestion....

#2 ltoto

ltoto
  • Members
  • PipPipPip
  • Advanced Member
  • 162 posts

Posted 21 September 2006 - 12:46 PM

i chaged the get bit to post and use $ type

$type = $_POST['selectType'];
if ($type== "Golf"){ ?>

which again i want to be picked up from this

header("Location:index.php?Id=18&type=".$_POST['selectType']);

any suggestions?? help is really needed now Smiley


anyone at all, or do i need to give more info




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users