Sign in to follow this  
Followers 0
MrTheDzam

PHP Helps!

2 posts in this topic

Hey guys!

I have a register page. when i click register, it's will insert information to database.

But if i refresh the page, the script just continues and insert the information to database again

 

How can i fix it? :D

 

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Similar Content

    • Jefrey
      By Jefrey
      I've made this HTTP lib to simplify HTTP requests, mainly when dealing about POST data or file uploads.
      Three functions are available:
      string _HTTP_Get ( string $sURL ) string _HTTP_Post ( string $sURL , string $sPostData ) string _HTTP_Upload ( string $sURL , string $sFilePath , string $sFileField , string $sPostData = '' , string $sFilename = Default) Additionaly, two helper functions are also available:
      URLEncode($sStr) URLDecode($sStr) Full documentation: https://github.com/jesobreira/HTTP.au3/blob/master/README.md
      Fork me on Github: https://github.com/jesobreira/HTTP.au3
      Download lib + docs: https://github.com/jesobreira/HTTP.au3/archive/master.zip
    • MrTheDzam
      By MrTheDzam
      Hello guys!

      I changed my website's login page yesterday. In that file, i used header() function to redirect user from login page to error page.
      But now my script (use WinHttpObj library) can't work. But if i change the login page to old page (without redirect) then my script works

      How can i fix that? 
    • James
      By James
      Hey all,
      I've been away for a while, working on one thing or another... Recently it's been StyleCI, The PHP Coding Style Service.
      StyleCI connects to your GitHub repositories and watches for commits or pull requests, with the ability of automatically fixing the code standards if it hasn't matched your settings.
      The likes of Laravel and Graze are using StyleCI now, among many other projects. Yesterday we hit a massive milestone, we analysed the 100,000 commit!
      I'd love to hear your feedback
      Cheers,
      James
    • Skysnake
      By Skysnake
      Hi everyone
      This is not a request for sample code.
      I was looking at one of my AutoIt projects, and my browser was open on a WordPress site we use and a thought occurred: Has anyone tried to use AutoIt as a front end (GUI), with the data read to/from WordPress and the result displayed in the AutoIt GUI?
      Simple example would be a kind of online calendar.  Would require a WordPress plugin. Kind of thing Outlook has.  Except, all the calendaring is done in the background by WordPress, and the result read/modified/written by AutoIt using PHP to the WordPress database (MySQL).
      I suspect in addition to AutoIt, one needs substantial HTML, SQL and PHP skills. 
      Has anyone perhaps attempted this? Am I wasting my time?  If I can get the calendar working, I have the simplicity and speed of AutoIt available immediately, with the online database/calendar capabilities of WordPress.
      All thoughts and comments very welcome.
    • guinness
      By guinness
      Just came across this library on GitHub and just thought how awesome it was that I had to tell the community.
      PHPJS: https://github.com/kvz/phpjs