How can I show this div content from my function [closed] - php

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
<button name="saveV" class="btn highbutton" type="button"
onclick="if(<?php echo $test?>()) {homepage.test2()}">
When I click this button my data is saved in db. All I want to do is to display the contents of a div once data is stored. Please Help

You could call jQuery's toggle() function after saving your data:
$("#mydiv").toggle()

Related

Alert or Confirm before href [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
How to make confirm tab before page redirects to calculation php?
echo '<form action="include/reserve.php?Nr='.$row['Nr'].'" method="post">
<input class="button1" type="submit" name="reserve" value="Reserve" />
</form>';
With some javascript
document.querySelector('.button1').addEventListener('click',function(e){
e.preventDefault();
//Do whatever you want
//Then get your form element with js and call .submit();
});

Any idea on how to pass a a clicked number from an array to another page without using forms in PHP? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
Any idea on how to pass a a clicked number from an array to another page without using forms in PHP?
I want to grab figures from the array and use it for calculations on the second page.
Use $_GET method.
Try, <a href="another_page.php?value=myvalue" class='btn btn-default style-as-button'>My Button</a>,
then on another_page.php check for $_GET['value'].
if (isset($_GET['value'])) {
// do some logic
}

how to change languages on onclick in php? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have input type button and having onclick() functionality,when I click once it shows "en" inside the button and I click again need to show "ml" inside the button
Use the jquery .html() fucntion to change the content

Is there a way to have my webpage automatically load a preselected page once a certain php function is complete [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Essentially the title, please keep it simple, im not accustom with code.
You can use header('Location:yourpage.php') at the end of your function.
Header

How do I get the data the user inputs and insert it correctly? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
How do I get the data the user inputs (SUCID) and insert it correctly with SUCID, SID, CID
$SUCID = clean($_POST['SUCID']);
I suppose your function clean() doesn't works correctly.
I think you need to change the
<button type='submit'>
to
<input type='submit'>

Categories