Jump to content

if Statement around Form - *help needed*


ltoto

Recommended Posts

i have an error which says:

Notice: Undefined index: selectType

from this code

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

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

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

hope this makes sense...any suggestion....
Link to comment
https://forums.phpfreaks.com/topic/21513-if-statement-around-form-help-needed/
Share on other sites

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

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.