Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
  • Unusual script request (In: Coding & Databases - PHP, ASP, Perl, etc.)
  • Chinese E-mail Scam from Beijing ALG Network Infor (In: Google)
  • Parsing of any sites in convenient form (grab, inf (In: Professionals Corner)
  • Featured Web Site Template

    Hundreds More at Free Site Templates.com!

    Web Site Partners
    Sponsored Links
    Jet City Software
     
    Whos Here ?
    Reflects user activity within the last 5 minutes
    Moderator(s): Prowler, jcokos
    Member Message

    eskus_123
    Joined: Jul 01, 2007
    # Posts: 3

    View the profile for eskus_123 Send eskus_123 a private message

    Posted: 2007-Jul-01 09:50
    Edit Message Delete Message Reply to this message

    Hi

    I use the following script for my contact form. I currently have to define the email it gets sent to on that page which I dont like because it makes it easy to harvest. I know nothing about perl but I think it would be pretty easy to modify the script to send it to a chosen email address. Could anyone help me out? Here's the code:



    Code: [copy]





    [ Message was edited by: JimBot 10/15/2008 04:34 pm ]





    leelee700
    Joined: Oct 09, 2006
    # Posts: 50

    View the profile for leelee700 Send leelee700 a private message

    Posted: 2007-Jul-01 16:17
    Edit Message Delete Message Reply to this message

    hi eskus_123

    you can have the form call a php script or some other script, which in turn contains the email address to send to. since the script can't be seen by visitors (the form will only call it) your email is safe.





    david68
    Joined: May 16, 2005
    # Posts: 144

    View the profile for david68 Send david68 a private message

    Posted: 2007-Jul-01 23:30
    Edit Message Delete Message Reply to this message

    Are you referring to the "[ inquiry e-mail ]" part of the page? It's javascript so bots probably won't see it. I don't even see it in the script so I assume it's not. If this isn't what you mean, then you don't have any worries as people can't get your email as the script won't tell them - that's the whole point of using a form script.




    eskus_123
    Joined: Jul 01, 2007
    # Posts: 3

    View the profile for eskus_123 Send eskus_123 a private message

    Posted: 2007-Jul-02 03:55
    Edit Message Delete Message Reply to this message

    David,

    What I mean is I have to define where the form gets sent in the actual form, for example:
    <input name="recipient" type="hidden" value="fake-email@visionwebsites.com.au">

    I would like to remove that from the form and define where it gets sent in the script. Sorry if I didn't explain it very well but scripts aren't my thing smile



    david68
    Joined: May 16, 2005
    # Posts: 144

    View the profile for david68 Send david68 a private message

    Posted: 2007-Jul-02 17:47
    Edit Message Delete Message Reply to this message

    Ok, I see. I don't know much about perl (I prefer PHP) but try this...

    Remove that "recipient" line from your form page and add towards the top (under the comments) of your SCRIPT:

    $Config{'recipient'} = "youremail@addy.tld";

    This would hard-code the address. The author did a poor job of writing this script as it's a dumb way to do it. He obviously did it so you don't edit the script. Try this on a dummy page to test it. Good luck, let me know if it works smile



    eskus_123
    Joined: Jul 01, 2007
    # Posts: 3

    View the profile for eskus_123 Send eskus_123 a private message

    Posted: 2007-Jul-03 01:25
    Edit Message Delete Message Reply to this message

    Thanks David. Yeah that worked, I just had to put it halfway down the script after the script calls the email address from the form. Thanks for the help everyone!


    You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
    1. You have not yet logged in, or registered properly as a member
    2. You are a member, but no longer have posting rights.
    3. This is a private forum, for which you do not have permissions.

    If you are a recent member, it's possible that you simply have not yet confirmed your account. Please check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions contained within.

    If you cannot find this message, click here to Re-Send it.

    If you are still experiencing problem, please read the Login Assistance Article for some advice on what may be causing your login not to work properly.

    Switch to Advanced Editor and ... Create a New Topic or Reply to this Thread

    New posts Forum is locked
    © 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions