TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 728
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 522
  • Total: 523
  • @rjen

Feed Back Visual Confirm?

Started by JCphotog, September 14, 2006, 03:31:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

akulion


immaturity

JPDeni's code is wonderful. I'm waiting to see if it worked for me, but in the meantime.. did anyone every figure out how to get it to redirect a user to a "thank you" page after submission instead of to the front page?

actually I've had this reply box open for about 5 minutes and no email. I must have read this thread wrong. Were you saying it doesn't work at all if it's as a separate php article?

immaturity

Hey all. I just wanted to share that I got an ARTICLE with a captcha form working through Tinyportal in case anyone else needs it still.

You can see the example here: http://esa-soccer.com/forum/index.php?page=summertryoutform

I downloaded the free version of tectite.com 's FormMail (http://www.tectite.com) and followed their instructions for installing the script.

Create a PHP article (I'm deleting most of my form just so you can see the basics):

echo '<form method="post" action="/formmail.php" name="Summer Academy">
    <input type="hidden" value="YOU@YOUREMAIL.com" name="recipients" />     <input type="hidden" value="EMAIL SUBJECT" name="subject" /><input type="hidden" name="good_url" value="/forum/index.php?page=thanks" /> <input type="hidden" name="bad_url" value="/forum/index.php?page=error" /> <input type="hidden" name="required" value="Parent First,Phone,email,imgverify" />
     <h2>     PARENT INFORMATION:</h2>
    First Name: <input type="text" maxlength="30" size="20" name="Parent First" />      Last Name: <input type="text" maxlength="30" size="20" name="Parent Last" /><br />
    <br />
    Address: <input type="text" maxlength="50" size="40" name="Address" /><br />
    <br />
    City: <input type="text" maxlength="30" size="20" name="City" />   State: <input type="text" maxlength="2" size="2" name="State" />     Zip Code: <input type="text" maxlength="5" size="5" name="Zip" /><br />
    <br />
    Home Phone: (<input type="text" maxlength="3" size="3" name="phonecode" />)  <input type="text" maxlength="7" size="7" name="Phone" />   Email Address: <input type="text" maxlength="40" size="20" name="email" /><br />

    <br />
    Would you like to be on our email mailing list?<br />
    <input type="radio" name="Mailing List" value="Yes" />Yes, sign me up for email updates!<br />
    <input type="radio" value="No" name="Mailing List" />No, thanks.<br />
    <br />
    <span style="font-weight: bold;">SECURITY QUESTION:</span><br />
    Please fill in the text you see in the image below to prove you are human.<br />
    <img name="vimg" alt="Image verification" src="/verifyimg.php" /> <input type="text" name="imgverify" size="12" />     <br />
    <br />
    <input type="submit" value="Submit Registration" name="Submit" />
</form>';



For good_url and bad_url I just made 2 HTML articles in TP; good_url is a general "thank you page" the user is redirected to after successfully filling out the form. bad_url is a general error page they are redirected to if they forget to fill in a required item (such as the imgverify).

the trick is to read the installation instructions at Tectite very carefully to get the imgverify working properly.

Hope this helps!

JPDeni

I'm sorry that I missed your earlier post. You asked
QuoteWere you saying it doesn't work at all if it's as a separate php article?

I don't know what you mean. I'm not sure what the second "it" is referring to.

immaturity

I figured it out. The code you had posted - I had read it wrong and misunderstood the part where you said it works on the frontpage but if it is used on other pages it redirects to the front page. I was referring to your post here: http://www.tinyportal.net/index.php/topic,8562.msg71544.html#msg71544

I thought you meant ithat particular code would work on other pages, just redirect afterwards. I figured out afterwards you meant it would only work on the frontpage... and as a block.

:)

JPDeni

Okay. :-) It's been so long since I've looked at this topic, that I'd have to read the whole thing again to even know what it's about. But as long as you've got it, that's all that matters.

immaturity

:D

just trying to find all my answers via forum search instead of making people repeat themselves, so I've been all over some old topics the past week.

JPDeni

We definitely appreciate your looking through the old stuff. If you have questions, understand that we may have to dust off some long-unused brain cells to come up with the answers, though. ;-)

This website is proudly hosted on Crocweb Cloud Website Hosting.