NetTalk Central

Author Topic: Displaying 1 or another form depending on condition  (Read 3179 times)

MikeR

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
    • Email
Displaying 1 or another form depending on condition
« on: October 05, 2012, 01:31:24 AM »
I want to send an email to a person with an html link to an update form
ie. www.mywebsite.co.za/yourdetails?id=23
When the user clicks on the link , he should be presented with a form (netwebform  I assume) to udpdate some info.
However the form to display depends on a few things I need to check first based on the paraments passed ?
ie (an error form or something)/
ie I need to get the id value , do some checking in the database and then decide which form with what data to present to the browser.


 

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Displaying 1 or another form depending on condition
« Reply #1 on: October 05, 2012, 02:51:19 AM »
first thing to bear in mind is that emails are not secure. So making the link "everything they need" to edit the record would be very bad security. At the very least you should capture the password of the user on the page if they're not already logged in.

Probably the easiest way to do what you're asking is to make a NetWebPage, with embedded forms (using tags)on it - serving only the form that applies to the situation.

Cheers
Bruce

MikeR

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
    • Email
Re: Displaying 1 or another form depending on condition
« Reply #2 on: October 06, 2012, 03:10:00 AM »
thx Bruce sounds like thats what I need.
Is there any netwebpage proedures I can look at to get a handle on how they work.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Displaying 1 or another form depending on condition
« Reply #3 on: October 07, 2012, 10:04:53 PM »
nothing springs to mind. Just experiment with
<!-- Net:whateverForm -->

Cheers
Bruce