# Problem confirming if bids removed?

**URL:** <https://forum.phpvms.net/t/problem-confirming-if-bids-removed/4078>\
**Category:** phpVMS Legacy Support (v2/v5)\
**Created:** [February 14, 2011, 12:49pm UTC](https://forum.phpvms.net/t/problem-confirming-if-bids-removed/4078 "2011-02-14T12:49:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![homer09001](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/h/bbe5ce/32.png) [@homer09001](https://forum.phpvms.net/u/homer09001)\
**Post date:** [February 14, 2011, 12:49pm UTC](https://forum.phpvms.net/t/problem-confirming-if-bids-removed/4078/1 "2011-02-14T12:49:44Z")

</div>

im writing a standalone script to work with phpvms, currently im trying to get it to return an error message if a bid can’t be removed, but for some reason its not working correctly:

```
if(SchedulesData::removeBid($bidid))
{
	echo "Bid Succesfully Removed";
}
else
{
	echo '<font color="red">Failed to Remove Bid, Error Code: RB001</font>';
}

```

The problem im having is that its returning the error message when the bid is removed or when its not, where as i use a identical check when adding bids:

```
if(SchedulesData::addBid($pilotid, $brief_id))
{
	echo "Bid Added!";
}
else
{
	echo '<center><font Color="red">Failed to Add Bid, Error Code: AB001</font></center>';
}

```

and that works as it should?

any ideas why my remove bid check isn’t working?

---

<div class="post-metadata">

**Author:** ![homer09001](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/h/bbe5ce/32.png) [@homer09001](https://forum.phpvms.net/u/homer09001)\
**Post date:** [February 14, 2011, 2:09pm UTC](https://forum.phpvms.net/t/problem-confirming-if-bids-removed/4078/2 "2011-02-14T14:09:00Z")

</div>

Im also trying to call the pirep form externally, i can call it up but i can’t populate it with a bid?

```
MainController::Run('pireps', 'Filepirep', $_GET['bidid']);

```

any ideas on how i can populate the form with the given bid id?

---

<div class="post-metadata">

**Author:** ![nabeel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/nabeel/32/2971_2.png) [@nabeel](https://forum.phpvms.net/u/nabeel)\
**Post date:** [February 14, 2011, 2:56pm UTC](https://forum.phpvms.net/t/problem-confirming-if-bids-removed/4078/3 "2011-02-14T14:56:08Z")

</div>

Might have to do Template::Set(), I’m not 100% sure without looking at it

---

<div class="post-metadata">

**Author:** ![homer09001](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/h/bbe5ce/32.png) [@homer09001](https://forum.phpvms.net/u/homer09001)\
**Post date:** [February 15, 2011, 1:16am UTC](https://forum.phpvms.net/t/problem-confirming-if-bids-removed/4078/4 "2011-02-15T01:16:30Z")

</div>

i’ve tried looking at template::set but im not getting anywhere with either problem
