php - Method Post in a Cronjob -


i need advice, have multistep wizard form, , in wizard, marketing purposes need save in first step (name, email, address) database, case user dont finish wizard steps. need create email notification administrator case user doesnt finish form. think example in cpanel create cronjob verifies in database records doesnt have completed multistep , send email administrator there emails.

but there issue, need update column in records, in case column called "verified" boolean , when mail sent true every time cronjob fires dont send emails administrator.

but looks cronjob supports method, have advice?

request methods (get, post, put, delete etc) http-specific not cron jobs.

but looks cronjob supports method

this wrong. cron jobs call specific file(s) on specified time interval. can read here: cron jobs

in case, need following things:

  • when form partially completed, saving data in database. so, can save use 2 columns in database, 1 check users have not completed form , 2nd check if email sent them.
  • suppose 2 columns is_incomplete (to check users have not completed form) , is_followup_email_sent (to check if email sent further follow ups).

  • in cron file path, don't need specify param until needed. need call file placed on server , in file, need connect database users is_incomplete = 1 (form not completed) , make function send email list of users , set is_followup_email_sent = 1 (that means email sent)

  • whenever cron file called, need make check @ top users is_incomplete = 1 , is_followup_email_sent = 0 i.e. users have not completed form , admin email not sent them yet.

i hope you! cheers.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -