OBS Downtime

Yesterday the Online Bible Study (OBS) emails were not sent due to a bug in the mailing form. We used a checkbox to flag whether an entry should be sent or not, and with checkboxes it’s a little tricky in that, in that it only ever has a value if the box is ticked and this value is specified as an attribute.

Example:

<input type=“checkbox” name=“send” value=“checked”>

So when we want to check if the checkbox is ticked you would do something like this in PHP:

$send = $_POST[‘send’];
if ($sendnow == “checked”)
sendMessage();

Note that the attribute value=”checked” is the crucial element here as it allows you to distinguish between the two states. Without it there would be no value assigned when the form is processed through the PHP script, i.e., it will always be seen as false or unchecked. The problem I found was that, my script was not checking the correct value, so even though your values are there, make sure that you have the right conditional set up.

Everything should be fixed now and OBS emails should be back as per normal. If you would like to know more about OBS or subscribe to the mailing list visit the OBS page.

I’m currently working on getting the new Hope Mission Centre website up and running, so hopefully we will have that up soon. The launch date will be in May 2007. Not long to go now, I will post a few prototype screenshots in the coming week.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: