I have recently moved my domain from PlusMail to cPanel. Everything works fine ... except. On the PlusMail format, I had a page which (1) allowed visitors to sign in and (2) then, on Submit, automatically sent an email to me with the data, comments, etc. which visitors left behind, and (3) redirected the visitor to a "Thank You" page . It was not a "guest book" as such, because the data was not accessible by other visitors.
Here is the code I used at PlusMail:
At cPanel, I found this code for a Guest Book:Code:<form method="POST" action="http://mydomain.com/cgi-bin/formmail.cgi" onSubmit="if (this.email_address.value == this.confirm_email.value) { return true; } else { alert('Email addresses do not match!'); this.confirm_email.focus(); return false; }"> <input type="hidden" name="recipient" value="webmaster@mydomain.com"> <input type="hidden" name="subject" value="Guest Register"> <input type="hidden" name="redirect" value="http://mydomain.com/thanks.html"> <input type="hidden" name="env_report" value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT"> <input type="hidden" name="style" value="1"> <input type="hidden" name="sort" value="order:realname,url,email_address,confirm_email,country,else,comments"> <input type="hidden" name="print_config" value="realname,email_address,confirm_email"> <div align="center"> <table> <tr> <td><p class="text0em" align="left">Full Name:</p></td> <td><input type="text" name="realname" size="20"></td> </tr> <tr> <td><p class="text0em" align="left">Your URL (if any):</p></td> <td><input type="text" name="url" value="http://" size="20"></td> </tr> <tr> <td><p class="text0em" align="left">Email Address:</p></td> <td><input type="text" name="email_address" size="20"></td> </tr> <tr> <td><p class="text0em" align="left">Confirm Email Address:</p></td> <td><input type="text" name="confirm_email" size="20"></td> </tr> <tr> <td><p class="text0em" align="left">Country:</p></td> <td><input type="text" name="country" size="20"></td> </tr> <tr> <td><p class="text0em" align="left">Anything else?:</p></td> <td><input type="text" name="else" size="20"></td> </tr> </table> </div> <p align="center">Comments, Suggestions, Whatever<br> <textarea name="thetext" rows="20" cols="80"> (Please delete this sentence and replace it with your comments.) </textarea> </p> <p align="center"> <input type="SUBMIT" value="Send It"> <input type="RESET" value="Erase It"> </p> </form>
I tried adapting the cPanel code to the old PlusMail code, but I can't get it to work right (it is over my head).Code:<form action="/cgi-sys/guestbook.cgi" target=guestwindow> <input type="hidden" name="user" value="mydomain"> <input type="hidden" name="action" value="addguest"> <input type="hidden" name="basehref" value="http://mydomain.com"> <input type="hidden" name="template" value="default"> Name: <input type="text" name="name"><br> Email: <input type="text" name="email"><br> Url: <input type="text" name="url"><br> Comments: <textarea name="comments"></textarea><br> <input type="submit" value="Sign Guestbook"> </form>
My question: Is there a way to make the old PlusMail FORM code work in cPanel? Thank you.



LinkBack URL
About LinkBacks
Reply With Quote










