Skip to content

Instantly share code, notes, and snippets.

@ajtroxell
ajtroxell / contact.html
Last active February 10, 2025 17:29
Build a simple PHP, jQuery, and AJAX Powered Contact Form, from: http://ajtroxell.com/build-a-simple-php-jquery-and-ajax-powered-contact-form/
<form id="contact" name="contact" method="post">
<fieldset>
<label for="name" id="name">Name<span class="required">*</span></label>
<input type="text" name="name" id="name" size="30" value="" required/>
<label for="email" id="email">Email<span class="required">*</span></label>
<input type="text" name="email" id="email" size="30" value="" required/>
<label for="phone" id="phone">Phone</label>
<input type="text" name="phone" id="phone" size="30" value="" />
@ajtroxell
ajtroxell / latest.cshtml
Created March 4, 2014 16:26
RazorScript for "x" amount of items from Form and List
@using System.Data;
@using DotNetNuke.Entities.Modules;
@using DotNetNuke.Entities.Portals;
@using DotNetNuke.Modules.UserDefinedTable;
@using DotNetNuke.Entities.Users;
@{
var mc = new ModuleController();
var tc = new DotNetNuke.Entities.Tabs.TabController();
int portalId = PortalController.GetCurrentPortalSettings().PortalId;