Question: I write the code. Where I am trying to write a form which is having a long list of radio button content inside 'iframe' like below:

```
<form name="iframeform" method="POST" action="http://localhost/cgi-bin/run">
    <tr>
            <td><iframe id="macList" src="http://localhost/macinfo" style="width:1000px;height:160px">
            </iframe></td>
    </tr>
    <tr>
            <input type="hidden" name="macaddr" value="">
            <td><input type="submit" name="macselect" value="Continue" id="stdbtn" onclick="getIframeContent()"></td>
    </tr>
</form>

```

'iframe' is pointing to macinfo page is having code like below:

```
<html>
<body>
<table>
<tr>
<td><input type=radio name=mac value=E8:B7:48:7B:C0:4A>abc.example.com</td>
</tr>
<tr>
<td><input type=radio name=mac value=00:17:08:5A:81:CF>xyz.cisco.com</td>
</tr>
....
</table>
</body>
</html>

```

How can I write "getIframeContent()" function to fetch the value of selected radio button? please help..

Answer: 
Windows [doesn't support `%G` or `%R`](http://msdn.microsoft.com/en-us/library/fe06s4ak.aspx), you should use `%Y` and `%H:%M` respectively.

```
strftime("%d/%b/%Y - %H:%M")

```
From the [`strftime()` documentation](http://www.php.net/manual/en/function.strftime.php):

> 
> As the output is dependent upon the underlying C library, some conversion specifiers are not supported. On Windows, supplying unknown conversion specifiers will result in 5 **E\_WARNING** messages and return **FALSE**. On other operating systems you may not get any **E\_WARNING** messages and the output may contain the conversion specifiers unconverted.
> 
> 
> 

So, you are probably using unsupported format parameters.

Note: by default `time()` is used for a timestamp, so you can use `strftime()` with it if you require this defaul tiemstamp.