Re: Trouble with [Math]

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 19656
interpreted = N
texte = On 8/27/98 12:57 PM, Raymond Hatch so noted...>Here is where I am having the problem > >[math]error=0[/math] >[hideif [password1]=[password2]][math]error+1[/math][/hideif] >[showif [math]error[/math]=1][redirect >signup.html?name=[name]&username=[username]&paymethod=[paymethod]][/showif] >[showif [math]error[/math]=0] > >[sendmail to=rhatch@mindinfo.com&from=[username]@mindinfo.com&subject=Dpec >Online Training Course Signup] > >NAME = [name] >USERNAME = [username] >PASSWORD = [password1] >PAYMENT METHOD = [paymethod] > >[ipaddress] [date] [time] >[/sendmail] > >[redirect http://online.mindinfo.com] >[/showif] > >It always sends mail, and always executes the second redirect, even if the >password fields don't match.Try changing it to:[math show=F]error=0[/math] [hideif [password1]=[password2]][math show=F]error=1[/math][/hideif]Note the addition of the show=F as well to keep you page from getting scatterred with 0s : )Actually, now that I think of it, the code could be simplified as:[showif [password1]=[password2]] [redirect signup.html?name=[name]&username=[username]&paymethod=[paymethod]] [/showif][sendmail to=rhatch@mindinfo.com&from=[username]@mindinfo.com&subject=Dpec Online Training Course Signup](etc, etc...)Since if [password1]=[password2], the [redirect] will prevent the [sendmail] (and anything else on the page, for that matter) from being executed.Rob Marquardt Designer/Resident Wirehead Toast Design300 First Avenue North, Suite 150 Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com Associated Messages, from the most recent to the oldest:

    
  1. Re: Trouble with [Math] (Raymond Hatch 1998)
  2. Re: Trouble with [Math] (Rob Marquardt 1998)
  3. Re: Trouble with [Math] (Sandra L. Pitner 1998)
  4. Trouble with [Math] (Raymond Hatch 1998)
On 8/27/98 12:57 PM, Raymond Hatch so noted...>Here is where I am having the problem > >[math]error=0[/math] >[hideif [password1]=[password2]][math]error+1[/math][/hideif] >[showif [math]error[/math]=1][redirect >signup.html?name=[name]&username=[username]&paymethod=[paymethod]][/showif] >[showif [math]error[/math]=0] > >[sendmail to=rhatch@mindinfo.com&from=[username]@mindinfo.com&subject=Dpec >Online Training Course Signup] > >NAME = [name] >USERNAME = [username] >PASSWORD = [password1] >PAYMENT METHOD = [paymethod] > >[ipaddress] [date] [time] >[/sendmail] > >[redirect http://online.mindinfo.com] >[/showif] > >It always sends mail, and always executes the second redirect, even if the >password fields don't match.Try changing it to:[math show=F]error=0[/math] [hideif [password1]=[password2]][math show=F]error=1[/math][/hideif]Note the addition of the show=F as well to keep you page from getting scatterred with 0s : )Actually, now that I think of it, the code could be simplified as:[showif [password1]=[password2]] [redirect signup.html?name=[name]&username=[username]&paymethod=[paymethod]] [/showif][sendmail to=rhatch@mindinfo.com&from=[username]@mindinfo.com&subject=Dpec Online Training Course Signup](etc, etc...)Since if [password1]=[password2], the [redirect] will prevent the [sendmail] (and anything else on the page, for that matter) from being executed.Rob Marquardt Designer/Resident Wirehead Toast Design300 First Avenue North, Suite 150 Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com Rob Marquardt

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Dashes and dots in credit card (1998) Decimal point in search.... (2004) dos performance (1998) any suggestions for creating a multi-lingual site? (1999) OBDC Support (1997) Further tests with the infamous shipCost (1997) Removing [showif] makes a big difference in speed (1997) WebCat2: multiple currency support (1997) Three new problems ... (1997) protect tag on NT IIS (1997) How About Credit Card Transactions (1998) Can you do this??? and other stuff (1997) WebCatalog (1998) Setting up shop (1997) Switching to Linux (2000) success - serial numbers and webmerch (1997) [FoundItems] solved - thanks (1997) Nested search (1997) Webcatalog/Butler (1998) Spamming this list! (2000)