Click here to Skip to main content
14,303,709 members

Web Development

 
QuestionInformation about wordpress Pin
Max Power Marketing, LLC10-May-18 21:51
memberMax Power Marketing, LLC10-May-18 21:51 
AnswerRe: Information about wordpress Pin
Richard MacCutchan11-May-18 3:12
protectorRichard MacCutchan11-May-18 3:12 
AnswerRe: Information about wordpress Pin
wyzrahman14-May-18 10:49
memberwyzrahman14-May-18 10:49 
QuestionHow Do I Design This Simple (yet Responsive) Site...??? Pin
Member 1208020110-May-18 12:43
memberMember 1208020110-May-18 12:43 
AnswerRe: How Do I Design This Simple (yet Responsive) Site...??? Pin
Richard Deeming11-May-18 1:37
mveRichard Deeming11-May-18 1:37 
AnswerRe: How Do I Design This Simple (yet Responsive) Site...??? Pin
jkirkerx27-May-18 19:13
professionaljkirkerx27-May-18 19:13 
QuestionFixing a Broken Interceptor Pin
cjb1108-May-18 3:50
membercjb1108-May-18 3:50 
QuestionHow to use $_SERVER['PHP_SELF'] to save record and print simultaneouly Pin
Member 136918611-May-18 21:16
memberMember 136918611-May-18 21:16 
How to use a php $_SERVER['PHP_SELF'] to insert form data into Mysql database and print 
same form data automatically


// check which button was clicked
// perform calculation
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
  $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}

if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
  $insertSQL = sprintf("INSERT INTO reservation (`Class of Room`, `Room Number`, `Customer Name`, `Customer Address`, `Phone number`, Occupation, Amount, `Check in Time`, `Date`, Duration, `Name of Receptionist`) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                       GetSQLValueString($_POST['Class_of_Room'], "text"),
                       GetSQLValueString($_POST['Room_Number'], "text"),
                       GetSQLValueString($_POST['Customer_Name'], "text"),
                       GetSQLValueString($_POST['Customer_Address'], "text"),
                       GetSQLValueString($_POST['Phone_number'], "text"),
                       GetSQLValueString($_POST['Occupation'], "text"),
                       GetSQLValueString($_POST['Amount'], "text"),
                       GetSQLValueString($_POST['Check_in_Time'], "text"),
                       GetSQLValueString($_POST['Date'], "date"),
                       GetSQLValueString($_POST['Duration'], "text"),
                       GetSQLValueString($_POST['Name_of_Receptionist'], "text"));

  mysql_select_db($database_Morrendb, $Morrendb);
  $Result1 = mysql_query($insertSQL, $Morrendb) or die(mysql_error());

  $insertGoTo = "reservation.php";
  if (isset($_SERVER['QUERY_STRING'])) {
    $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
    $insertGoTo .= $_SERVER['QUERY_STRING'];
  }
  header(sprintf("Location: %s", $insertGoTo));
}
?>

AnswerRe: How to use $_SERVER['PHP_SELF'] to save record and print simultaneouly Pin
Richard MacCutchan1-May-18 22:01
protectorRichard MacCutchan1-May-18 22:01 
QuestionHow to run Javascript queries in code (HTML) Pin
Member 1380375629-Apr-18 5:20
memberMember 1380375629-Apr-18 5:20 
AnswerRe: How to run Javascript queries in code (HTML) Pin
Richard Deeming30-Apr-18 1:12
mveRichard Deeming30-Apr-18 1:12 
QuestionCodeIgniter-Search Pin
Jireh Capao24-Apr-18 19:03
memberJireh Capao24-Apr-18 19:03 
QuestionRe-code to get rid of Absolute Positioning? Pin
Member 1208020114-Apr-18 8:16
memberMember 1208020114-Apr-18 8:16 
AnswerRe: Re-code to get rid of Absolute Positioning? Pin
Blikkies17-Apr-18 22:33
professionalBlikkies17-Apr-18 22:33 
AnswerRe: Re-code to get rid of Absolute Positioning? Pin
Richard Deeming19-Apr-18 2:20
mveRichard Deeming19-Apr-18 2:20 
AnswerRe: Re-code to get rid of Absolute Positioning? Pin
W Balboos4-May-18 7:05
mveW Balboos4-May-18 7:05 
QuestionSaving data submitted online as pdf Pin
Deekkris13-Apr-18 9:23
memberDeekkris13-Apr-18 9:23 
AnswerRe: Saving data submitted online as pdf Pin
David Mujica17-Apr-18 3:20
memberDavid Mujica17-Apr-18 3:20 
QuestionNeed to Link to an Image on another Page already containing multiple images Pin
Member 1208020110-Apr-18 8:03
memberMember 1208020110-Apr-18 8:03 
AnswerRe: Need to Link to an Image on another Page already containing multiple images Pin
Richard Deeming19-Apr-18 2:07
mveRichard Deeming19-Apr-18 2:07 
QuestionRe: Need to Link to an Image on another Page already containing multiple images Pin
Sarcastic CA20-Apr-18 7:56
professionalSarcastic CA20-Apr-18 7:56 
QuestionUsing DOM with Selector Values, Assignment Pin
Member 137687478-Apr-18 9:10
memberMember 137687478-Apr-18 9:10 
QuestionHow to perform addition from LineTotal to subtotal using HTML JavaScript Pin
Nikhil Dange21-Mar-18 3:24
memberNikhil Dange21-Mar-18 3:24 
SuggestionQuestion about crud operations Pin
Maniteja Attili20-Mar-18 10:25
memberManiteja Attili20-Mar-18 10:25 
QuestionRe: Question about crud operations Pin
Richard MacCutchan20-Mar-18 12:25
protectorRichard MacCutchan20-Mar-18 12:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.