I need some help with a php script

by 12 replies
14
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 . 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.
#programming #php #script
  • Can see any php...please copy and paste here

    Thx
    • [1] reply
    • 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
  • 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.
  • Have you referred to w3schools.com or w3fools.com ?
  • attachment not working...find another way...
    or refer to w3schools ..
    Thanx
  • 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.
  • "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.
    • [1] reply
    • Take a screenshot of the script and upload the image to your server, then put the link in a post here.
  • 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
  • Banned
    [DELETED]
  • are you trying to validate the payment order ?

    what process you are stuck on ?
  • 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!
  • I have this working now. Thanks for all your help.

Next Topics on Trending Feed

  • 14

    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.