I need a page of code to be converted from VB.Net to PHP.
The VB code belows simply renders querystring variables in labels within the page.
PHP code must be complete for testing within one day of taking the job.
Many thanks for your time.
<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>PreReg eBadge</title>
<script type="text/VB" runat="server">
Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
If [login to view URL]("bookdet") = "" Then
'And [login to view URL]("totalcost") = "" Then
[login to view URL] = False
Else
[login to view URL] = True
End If
[login to view URL] = [login to view URL]("xinitials")
[login to view URL] = [login to view URL]("custref")
[login to view URL] = [login to view URL]("xinitials")
[login to view URL] = [login to view URL]("xsurname")
End Sub
</script>
</head>
<body>
<div id="background">
<div id="Badge">
<div id="BadgeH">
<img alt="eBadge" src="assets/eBadgeH1.gif" />
</div>
<div id="BadgeM">
<asp:Label ID="LabelInitial" runat="server" Text="Label"></asp:Label>
<asp:Label ID="LabelSurname" runat="server" Text="Label"></asp:Label><br />
<iframe src="[login to view URL];barcode=<%=[login to view URL]("custref")%>&check_char=N"
frameborder="0" height="80px" width="150px" scrolling="no"></iframe>
</div>
<div id="BadgeF">
<img alt="eBadge" src="assets/eBadgeF1.gif" />
</div>
</div>
<div id="Copy">
<p>
Dear
<asp:Label ID="LabelInitials" runat="server" Text="Label"></asp:Label>, <br />Thank you for registering to attend The Show 2007, the event for buyers, users and commissioners for market research. This is your electronic entrance badge to the event, being held on the Tuesday 20th and Wednesday 21st November 2007 </p>
<p>
Your Visitor ID Number is: <b>
<asp:Label ID="LabelCustref" runat="server" Text="Label"></asp:Label></b>
</p>
<asp:Panel ID="Panel1" runat="server">
<p>
If you have pre-booked seminar sessions they will be listed below, please take this email with you to the Box Office for payment and access to the sessions.
</p>
<ul>
<li><%=[login to view URL]("bookdet").Replace(",", "</li><li>")%></li>
</ul>
<p>
Your total cost will be £<%=[login to view URL]("totalcost")%>
</p>
</asp:Panel>
<p>
We look forward to welcoming you to the Show. <br />The Show 2007 Team<br />
</p>
</div>
</div>
</body>
</html>