I need some help with a php script

12 replies
I don't really know how to program in php, but a generous fellow created a script for me for a site. I am trying to edit the script for another site, and am having a little problem.

If someone would be so kind to look at it for me, and tell me what I am doing wrong, or assist me in editing it, I would be eternally grateful. I made a commitment to have this site done by this weekend. That was before I realized I was going to have to do this script editing.

The entry page is here (removed)

I have attached the sendscript for you to look at.

I don't know why the file is not appearing when I up load it. But the URL for it is here click here. Just right click and download to see it. It is retuning to thr order page, thankyou.php, instead of thanks.html which has the final 'you completed your order message.

Any help with this will be greatly appreciated.
#php #script
  • Profile picture of the author Big Squid
    Can see any php...please copy and paste here

    Thx
    {{ DiscussionBoard.errors[6944017].message }}
    • Profile picture of the author timpears
      Originally Posted by Big Squid View Post

      Can see any php...please copy and paste here

      Thx
      I can't get it to post. It just goes to a blank white page and nothing appears no matter how long I wait.

      Download text file for scripts for the page. Hope this will work for you.
      Attachment 14734
      Signature

      Tim Pears

      {{ DiscussionBoard.errors[6944368].message }}
  • Profile picture of the author FirstSocialApps
    Tim, attachment does not work either .. I doubt that this forum will let you attach a file with a .php extension. ZIP it up and then attach it .. would be glad to edit script for you.
    {{ DiscussionBoard.errors[6944642].message }}
  • Profile picture of the author locke815
    Have you referred to w3schools.com or w3fools.com ?
    {{ DiscussionBoard.errors[6944792].message }}
  • Profile picture of the author bluebotbrother
    attachment not working...find another way...
    or refer to w3schools ..
    Thanx
    {{ DiscussionBoard.errors[6947703].message }}
  • Profile picture of the author timpears
    OK, this is the only way I can think to do it. I uploaded it in a text document to my server.

    Untitled Document

    I appreciate you folks trying to help, sorry for all the mistakes in getting it so you could look at it.

    I am lost when I go to w3schools.com and don't even know what I am reading. It looks like gibberish to me. I can look at a script, and have no idea what it does. The only reason I can edit this script I am having trouble with is the author put in some instructions for me. Like, this where 'whatever' goes. And I would edit those parts. It worked pretty well for the web site he built it for, so I figured I wold try to edit it for this current site I am working on. It isn't working so well, and I no longer know how to get hold of the fellow who created it for me.
    Signature

    Tim Pears

    {{ DiscussionBoard.errors[6949952].message }}
  • Profile picture of the author KirkMcD
    "tusendscript.php" does the final processing. It's in there where the redirect to the thank you page occurs. Either check in there or post it here.
    {{ DiscussionBoard.errors[6950724].message }}
    • Profile picture of the author Greg71
      Take a screenshot of the script and upload the image to your server, then put the link in a post here.
      {{ DiscussionBoard.errors[6950848].message }}
  • Profile picture of the author SteveSRS
    it gives a blank page because of several errors (and you have error reporting set to off).

    Some errors I saw (might be more):
    return $errmsg= "Invalid Email Address.<br />";
    should be
    return "Invalid Email Address.<br />";

    else{} is not necessary (just delete that line)

    This is completely useless:
    foreach($_POST as $k=>$v){$$k = $v;}
    and above all wrong ($$k) is incorrect syntax never $$.

    Furthermore I highly recommend AGAINST using http referrer in the way you use it try using indentation (tabs, making your code better readable)

    [/PHP] and [PHP] and non existing tags
    {{ DiscussionBoard.errors[6952751].message }}
  • Profile picture of the author Matten
    are you trying to validate the payment order ?

    what process you are stuck on ?
    {{ DiscussionBoard.errors[6999142].message }}
  • Profile picture of the author phirefast
    An easy way to share this script is by saving it with the .phps file extension on your server. It'll do syntax highlighting too!
    {{ DiscussionBoard.errors[7000519].message }}
  • Profile picture of the author timpears
    I have this working now. Thanks for all your help.
    Signature

    Tim Pears

    {{ DiscussionBoard.errors[7022090].message }}

Trending Topics