Announcement

Collapse
No announcement yet.

Working with URL in an email

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Working with URL in an email

    Is it possible when I send an email (notification) and put an URL in the email message which points directly to record in de form.
    I know I can use the friendly URL to come to the form, but then the last step is go to the record to which the receiver of the email should look to.
    Kind regards, Bert Steinebach

  • #2
    Originally posted by ctmservice View Post
    Is it possible when I send an email (notification) and put an URL in the email message which points directly to record in de form.
    I know I can use the friendly URL to come to the form, but then the last step is go to the record to which the receiver of the email should look to.
    Kind regards, Bert Steinebach
    You need to call the appropiate url with parameters to guide the sql statement. So pass it like myapp.php?myparm=10 Then in your application you can refer to $_GET['myparm']; Next you can assign it to a global var which is used in your sql.
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      Ok Albert, thanks

      This is $_GET['myparm'] is new for me but in this way I learn every day.
      Again it seems for me that there are no limits with sc
      Cannot wait to implement it.

      Met vriendelijke groet, Bert

      Comment


      • #4
        Sorry, one question:

        Ok I have to write a php but how to implement this in sc.
        Should I make an url lik this: 127.0.0.1:98/scriptcase/app/crmdemo/communicatie/myapp.php?myparm=1o
        In this "communicatie" is the friendly URL of the form
        And where to put this php? In an event inside this form or where?

        Regards, Bert

        Comment


        • #5
          It's the regular php to retrieve an url parameter. Don't forget to use isset() to find out if the parameter you expect is there, otherwise you will get errormessages.
          Albert Drent
          aducom software netherlands
          scriptcase partner, reseller, support and (turn-key) development
          www.scriptcase.eu / www.scriptcase.nl

          Comment

          Working...
          X