Skip to content

Instantly share code, notes, and snippets.

@Moc
Created April 30, 2016 12:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Moc/ca16e20514db06619d5bda5e34702dec to your computer and use it in GitHub Desktop.
Save Moc/ca16e20514db06619d5bda5e34702dec to your computer and use it in GitHub Desktop.
<?php
require_once("class2.php");
require_once(HEADERF);
$sql = e107::getDb();
$ns = e107::getRender();
$frm = e107::getForm();
$text = '';
if(isset($_POST['CatToDB']))
{
$ns->tablerender(LAN_PLUGIN_KK_VIDEO_01, 'form submitted');
}
else
{
$text .= $frm->open('CatToDB', 'post', e_REQUEST_URI, array('autocomplete' => 'on', 'class' => 'formclass'));
$text .= $frm->text('category', '', 50, array('size' => 'large'));
$text .= $frm->button('CatToDB', LAN_PLUGIN_KK_VIDEO_05);
$text .= $frm->close();
$ns->tablerender(LAN_PLUGIN_KK_VIDEO_02, $text);
}
require_once(FOOTERF);
exit;
@Moc
Copy link
Author

Moc commented Apr 30, 2016

image

@yemiton
Copy link

yemiton commented May 1, 2017

Kindly help with form design that can be linked to Database

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment