Click here to Skip to main content
15,880,469 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
QuestionEquation of the third degree Pin
Member 1496562714-Oct-20 14:50
Member 1496562714-Oct-20 14:50 
AnswerRe: Equation of the third degree Pin
Richard MacCutchan14-Oct-20 22:37
mveRichard MacCutchan14-Oct-20 22:37 
AnswerRe: Equation of the third degree Pin
ZurdoDev15-Oct-20 1:17
professionalZurdoDev15-Oct-20 1:17 
Questionscreen with error in displaying the data, sql code does not work Pin
mynameyugioh21-Aug-20 13:38
mynameyugioh21-Aug-20 13:38 
QuestionAdding uploaded file in email response contact form mail.php Pin
DixieReid21-Jul-20 15:18
DixieReid21-Jul-20 15:18 
AnswerRe: Adding uploaded file in email response contact form mail.php Pin
Richard Deeming21-Jul-20 23:22
mveRichard Deeming21-Jul-20 23:22 
GeneralRe: Adding uploaded file in email response contact form mail.php Pin
DixieReid22-Jul-20 0:09
DixieReid22-Jul-20 0:09 
QuestionHow can I submit with 1 button and 1 form with 2 actions? Pin
amitb221-Jul-20 0:08
amitb221-Jul-20 0:08 
index.php

HTML
<pre><pre><!DOCTYPE html>
 
<html>
<head>
    <title>PHP MySQL Insert Tutorial</title>
        <script src='https://code.jquery.com/jquery-2.1.3.min.js'></script>
</head>
 
<body>
    <form action='insert.php' method='post' id='myform' >
    <p>
    <input type='text' name='username' placeholder='user name' id='username' />
    </p>
 
    <p>
    <input type='text' name='password' placeholder='password' id='password' />
    </p>
    
    <p>
    <input id = "minus" type="text" name="main" value="<?php echo $num1; ?>" autocomplete="off">
    </p>
            
    <button id='insert'>Insert</button>
    
    <p id='result'></p>
    </form>
</body>
</html>



2nd.php

PHP
<pre><?php
session_start();
if(isset($_POST['Submit']))
{
    $num_2    = "";
    $pass_num = $_POST['main'];
}
?>

<h2>minus</h2>
<br>
<form method="post" action="index.php">

<input type="text" name="state" value="<?php echo $num_2;?>" autocomplete="off">
<br>
<input type="hidden" name="rrr" value="<?php echo $pass_num;?>" autocomplete="off">
<br>
<br>
<input nam



js

JavaScript
$('#myform').submit(function(){
    return false;
});
 
$('#insert').click(function(){
    $.post(     
        $('#myform').attr('action'),
        $('#myform :input').serializeArray(),
        function(result){
            $('#result').php(result);
        }
    );
    });

Rant[REPOST] How can I submit with 1 button and 1 form with 2 actions? Pin
Richard Deeming21-Jul-20 1:05
mveRichard Deeming21-Jul-20 1:05 
GeneralRe: [REPOST] How can I submit with 1 button and 1 form with 2 actions? Pin
Richard MacCutchan21-Jul-20 1:17
mveRichard MacCutchan21-Jul-20 1:17 
QuestionSubtraction of sum of 2 different table colums Pin
Mick Chambers17-Jun-20 21:58
Mick Chambers17-Jun-20 21:58 
AnswerRe: Subtraction of sum of 2 different table colums Pin
Richard MacCutchan17-Jun-20 23:43
mveRichard MacCutchan17-Jun-20 23:43 
GeneralRe: Subtraction of sum of 2 different table colums Pin
Mick Chambers18-Jun-20 2:11
Mick Chambers18-Jun-20 2:11 
GeneralRe: Subtraction of sum of 2 different table colums Pin
Richard MacCutchan18-Jun-20 4:39
mveRichard MacCutchan18-Jun-20 4:39 
GeneralRe: Subtraction of sum of 2 different table colums Pin
Mick Chambers18-Jun-20 2:13
Mick Chambers18-Jun-20 2:13 
GeneralRe: Subtraction of sum of 2 different table colums Pin
Richard MacCutchan18-Jun-20 4:40
mveRichard MacCutchan18-Jun-20 4:40 
QuestionHow to handle response after PayPal subscription approval Pin
Petar Vasilev1-May-20 10:27
Petar Vasilev1-May-20 10:27 
Questionhow to add additional in php query or jquery Pin
captan389926-Apr-20 21:57
captan389926-Apr-20 21:57 
AnswerRe: how to add additional in php query or jquery Pin
Richard MacCutchan26-Apr-20 22:35
mveRichard MacCutchan26-Apr-20 22:35 
AnswerRe: how to add additional in php query or jquery Pin
Richard Deeming27-Apr-20 0:33
mveRichard Deeming27-Apr-20 0:33 
Questionsocket_send not working without break or exit Pin
Member 147929365-Apr-20 2:04
Member 147929365-Apr-20 2:04 
QuestionHow to share session cookies from a PHP application with my WordPress website, hosted on the same server and the same domain? Pin
mplusplus29-Dec-19 17:50
mplusplus29-Dec-19 17:50 
AnswerRe: How to share session cookies from a PHP application with my WordPress website, hosted on the same server and the same domain? Pin
who8mypnuts31-Dec-19 16:28
who8mypnuts31-Dec-19 16:28 
QuestionSubmit to view hyperlink using PHP? Pin
Member 829590119-Jul-19 10:11
Member 829590119-Jul-19 10:11 
Questionphp + validation ajax + ISSET() Pin
nelsonpaixaopinto16-May-19 12:51
nelsonpaixaopinto16-May-19 12:51 

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.