Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 686 Vote(s) - 3.44 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with Updating database from PHP?

#21
Quote:(07-28-2016, 05:52 AM)mudrig Wrote:

[To see links please register here]

That worked. Looks like I just had the parameters backwards on that.

Now one more question since you have been so helpful. How would I make this form after submitted go back to same page and Display above form the result from the action of the form submit.

Awww yeah :biggrin: That's great...

In order to do that you'll have to submit the page via Ajax, I haven't tested the code but here it is according to your form

Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


Paste this code after your </body> tag and tell me if any error comes or it works
Reply

#22
I added it after body tags and tried it but the page still refreshes and goes to blank page with the results
Reply

#23
Did you add the Jquery to your document?

Put this inside head tag

Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.

Reply

#24
Typo detected :tongue: OMG I hate these mistakes

Replace this line in the Jquery code

Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


with this


Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


The d was to be uppercase D, Yikes
Reply

#25
It's working but still goes to blank page with results after it shows pop-up
Reply

#26
Quote:(07-28-2016, 01:36 PM)Ex094 Wrote:

[To see links please register here]

Typo detected :tongue: OMG I hate these mistakes

Replace this line in the Jquery code

Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


with this


Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


The d was to be uppercase D, Yikes

Thanks Bud, You have taught me a lot since I am new to PHP that helps more then you think. Is there a way to style the pop-up window? Or is that the only way it will show up?
Reply

#27
Quote:(07-28-2016, 05:30 PM)mudrig Wrote:

[To see links please register here]

Thanks Bud, You have taught me a lot since I am new to PHP that helps more then you think. Is there a way to style the pop-up window? Or is that the only way it will show up?

That alert is Javascripts default prompt but you can make a custom popup using Jquery, HTML and CSS. Lemme show you a simple way to displaying that response on the HTML document via DOM (In simple words, It allows you to easily manipulate HTML components)

In your body tag, paste this any where:

Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


Now edit the following line in your Jquery

Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


By

Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


Now your response from the PHP Script will be displayed on the HTML document inside the div tags, You won't see a popup. Now use CSS and more Jquery to give that div some eye candy factor.

There are plugins available for this task in case you wanna get some ideas:

[To see links please register here]

Reply

#28
Quote:(07-28-2016, 05:56 PM)Ex094 Wrote:

[To see links please register here]

Quote: (07-28-2016, 05:30 PM)mudrig Wrote:

[To see links please register here]

Thanks Bud, You have taught me a lot since I am new to PHP that helps more then you think. Is there a way to style the pop-up window? Or is that the only way it will show up?

That alert is Javascripts default prompt but you can make a custom popup using Jquery, HTML and CSS. Lemme show you a simple way to displaying that response on the HTML document via DOM (In simple words, It allows you to easily manipulate HTML components)

In your body tag, paste this any where:

Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


Now edit the following line in your Jquery

Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


By

Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


Now your response from the PHP Script will be displayed on the HTML document inside the div tags, You won't see a popup. Now use CSS and more Jquery to give that div some eye candy factor.

There are plugins available for this task in case you wanna get some ideas:

[To see links please register here]


You have helped me once again thanks. If I run into anymore questions I cant figure out do you mind if I PM you on here?
Reply

#29
I've got the form and the result working just the way I want it now and styled just right now
Reply

#30
I'm glad you are learning, Yes you can PM me any time you want
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through