Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Senior Member krystof's Avatar
    Join Date
    Jul 2005
    Posts
    155
    Member #
    10668
    Liked
    6 times
    I use a PayPal shopping cart. SPAM robots are evidently reading the email in the <form>. Please note:
    • The PayPal cart uses a <form> for each product.
    • 500 products means 500 <form> codes.
    • I use PHP includes, so each <form> code has its own .inc file.
    • Problem: I am getting spam to the email address listed in the <form>.
    • Can not use filters. Too much risk of filtering out a customer message.
    • Best solution: change the email address periodically.

    In summary, currently I am faced with the task of either (a) bi-annual editing of my email address on 500 .inc files, or (b) weekly sorting and deleting of 500 emails selling Viagra.

    Is there a way to edit just one file, and have this change the email address on all 500 files?

    (I assume it is not feasible to put an include call inside of an included file which is called inside of a <form>.)

    Possibly the solution is this: to create a PHP script that replaces the form. Then, instead of 500 separate include files---only one master file, in which the 500 forms are listed. The PHP script refers to this master file to write one form, as "called" in the script.

    And so...I only need to use the standard Notepad Edit > Replace feature, to change all 500 instances of the email address, because they are all in one file.

    Is this the best way to proceed? And if so, would it be quick work for a PHP programmer? Thank you anyone.

    Example of the <form> code:
    Code:
    <table>
    <tr>
    <td>20472-7</td>
    <td><form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="image" src="../pix//cartadd.gif" border="0" name="submit" align="left"
    class="cartadd" alt="Click to order 1. Can add more or remove at checkout.">
    <input type="hidden" name="add" value="1">
    <input type="hidden" name="cmd" value="_cart">
    <input type="hidden" name="business" value="xxx@VitaminShelf.com">
    <input type="hidden" name="item_name" value="Daily One no-iron 30cap (Twinlab) [40% Discount]">
    <input type="hidden" name="item_number" value="20472-7">
    <input type="hidden" name="amount" value="6.45">
    <input type="hidden" name="no_shipping" value="2">
    <input type="hidden" name="return" value="http://www.vitaminshelf.com/confirmation/">
    <input type="hidden" name="cancel_return" value="http://www.vitaminshelf.com/cancellation/">
    <input type="hidden" name="currency_code" value="USD">
    </form></td>
    <td>Daily One no-iron 30cap (Twinlab) [40% Discount] $6.45</td>
    </tr>
    </table>

  2.  

  3. #2
    Member
    Join Date
    Mar 2006
    Posts
    84
    Member #
    12765
    Well you might be able to put this code in another file that you link to externally, kinda like a SSI file (Server-Side Include) file. Depending on what format you're using, you can use either .shtml, .php

    <input type="image" src="../pix//cartadd.gif" border="0" name="submit" align="left"
    class="cartadd" alt="Click to order 1. Can add more or remove at checkout.">
    <input type="hidden" name="add" value="1">
    <input type="hidden" name="cmd" value="_cart">
    <input type="hidden" name="business" value="xxx@VitaminShelf.com">
    <input type="hidden" name="item_name" value="Daily One no-iron 30cap (Twinlab) [40% Discount]">
    <input type="hidden" name="item_number" value="20472-7">
    <input type="hidden" name="amount" value="6.45">
    <input type="hidden" name="no_shipping" value="2">
    <input type="hidden" name="return" value="http://www.vitaminshelf.com/confirmation/">
    <input type="hidden" name="cancel_return" value="http://www.vitaminshelf.com/cancellation/">
    <input type="hidden" name="currency_code" value="USD">

  4. #3
    Junior Member
    Join Date
    Jun 2004
    Location
    UK
    Posts
    16
    Member #
    6303
    Could you not just use an email address which is only for PayPal and you don't care about actual emails sent to it?
    Web Development blog and freelancer
    http://www.duncanhalley.co.uk/

  5. #4
    Senior Member krystof's Avatar
    Join Date
    Jul 2005
    Posts
    155
    Member #
    10668
    Liked
    6 times
    Quote Originally Posted by NanashiX5
    Well you might be able to put this code in another file that you link to externally, kinda like a SSI file (Server-Side Include) file. Depending on what format you're using, you can use either .shtml, .php
    Errr... that's what I am doing already. The problem is to change the email address in 500 include files for 500 products.
    Quote Originally Posted by dunc85
    Could you not just use an email address which is only for PayPal and you don't care about actual emails sent to it?
    I already do that, too. The problem is that some customers will click "reply" to the PayPal notification--this sends a reply to my PayPal-dedicated email address.

    I could refine this further with the following measures:
    1. Set my filters to accept only mail from PayPal, when my PayPal-dedicated address is used.
    2. All such mail not from PayPal goes to an autoresponder that says, "You used the wrong email address. Due to spam problems, this address only accepts emails from PayPal. Please re-send your email to this address: <special contact address>."

    This "special contact address" then can be changed if it gets spam--and may never get spam, because spammers don't read replies.

    However, asking an impatient customer to "re-send your email" is not the best policy. It would be better to change my PayPal email periodically. So, an easy method of changing this email in 500 forms is what I am hoping for! But, maybe it's too much to hope for...


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:02 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com