NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: MikeR on October 05, 2012, 01:31:24 AM

Title: Displaying 1 or another form depending on condition
Post by: MikeR 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.


 
Title: Re: Displaying 1 or another form depending on condition
Post by: Bruce 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
Title: Re: Displaying 1 or another form depending on condition
Post by: MikeR 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.
Title: Re: Displaying 1 or another form depending on condition
Post by: Bruce on October 07, 2012, 10:04:53 PM
nothing springs to mind. Just experiment with
<!-- Net:whateverForm -->

Cheers
Bruce