Click to See Complete Forum and Search --> : purchase and download script


jazzy1028
10-23-2003, 06:40 PM
I am very new to php script...I created my site in notepad with html code. I sell designs for the comuterized embroidery machine I already have shopping cart in place and have been sending computerized embroidery designs via e-mail once purchased. I would like my customers to purchase and download immediately. Can someone tell me the script to do this. I am a fast learner.
Sincerely

eomer
10-24-2003, 09:54 PM
Would be glad to help. However we do need a bit more detail. For example: Do you want to email these pics to the customer (via the server) or do you want them to download them in the browser? Would you like this to work in conjunction with the shopping cart?

Sorry for needing more detail, but I am just a bit confused.

jazzy1028
10-24-2003, 10:51 PM
Would be glad to help. However we do need a bit more detail. For example: Do you want to email these pics to the customer (via the server)>>>>
I am currently emailing the customer's purchase via outlook express as soon as I receive Instant Notification from Paypal>>>
or do you want them to download them in the browser?>>>>Yes!!! That's the ticket!
Would you like this to work in conjunction with the shopping cart? >>>Yes! Yes! Yes!....ggggg..(me smiling estatically)
jeez I'm easy to please...smile
I feel that I don't need to learn ASP...because I just don't have time and only need this one ity bittiy script...and also need to know where to insert it.
Is HTML and ASP really that different? Do I need a special software to input this Active Server Page script that I need...
Bless You!

pyro
10-24-2003, 10:56 PM
ASP? Aren't we talking PHP here?

jazzy1028
10-24-2003, 11:00 PM
forgot to mention/ask
I am assuming that I will need to place all designs in my alloted storage and the script will point to designs when purchased?

jazzy1028
10-24-2003, 11:12 PM
ASP? Aren't we talking PHP here?>>>
ggggggg (me giggling)
whatever works! i'm game....

eomer
10-25-2003, 08:45 AM
Yeah this list is php rather then asp, and it will matter considering serval things. One whether your server is configured for php or asp. Assuming since it sounds as if you have been using asp it very likely is not. Two both are a good bit different then html. html is a markup langauge that simply makes the page look pretty (or ugly in my case:D:eek: ). Php & Asp both are designed to do actual programming of a page for database functionality and things like your talking about.

Yes you will need a space on your server for those pics, and then point the script towards that directory. What is the shopping cart program coded in, because it will make a big difference on which you need to choose as far as asp and php.

jazzy1028
10-25-2003, 09:25 AM
Php & Asp both are designed to do actual programming of a page for database functionality and things like your talking about. >>>
I am currently not using either. I use cedant web hosting and I was over at the control panel and noticed MySQL is available to me....I read a little about it...I know its an open source database...Is this something I can use for the purposes I need?
>>>
Yes you will need a space on your server for those pics, and then point the script towards that directory. What is the shopping cart program coded in, because it will make a big difference on which you need to choose as far as asp and php>>>>>
I just called paypal to ask that question but tech support won't be available until Monday. Could/Should I post a sample of my shopping cart here?

eomer
10-25-2003, 09:43 AM
Ok...well if you have mysql you very likely will have php. So to see if you do and which version you have paste this code into a file and then access it:
<?
phpinfo();
?>

This will simply print out all of the php info and the variables for php. Right at the top it will show which version. IF php is not installed on the server it will spit out the above code in text.

Hmmm, paypal used that once. I think if memory serves that they run the majority of the actual shopping cart from their server. I.e. You link something like 'Buy Now' and it goes to their site. I think. May get somewhat complicated. Let me do some googling and I'll let you know.

EDIT: Mysql can definitely be used for this sort of thing.

eomer
10-25-2003, 09:49 AM
I assume that your shopping cart looks something like this?

<form name="_xclick" target="paypal" action="https://www.paypal.com" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="me@mybusiness.com">
<input type="hidden" name="item_name" value="HTML book">
<input type="hidden" name="amount" value="24.99">
<input type="image" src="http://www.paypal.com/en_US/i/btn/sc-but-01.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="add" value="1"> </form>

This is taken off of the paypal website. It's the technical details of the shopping cart. If it is using the action up there that redirects it to paypal.com then you do not have to worry about if it is coded in php or asp. I'm not really sure if they offer any other services in which they give you more code....but I seriously doubt it.

jazzy1028
10-25-2003, 09:55 AM
paste this code into a file and then access it:
okie...which file? any file? Am I going to create a file, place mentioned code in and place it in so I can access this file from MYSQL???
Can we say illeterate boys and girls...
gggg

jazzy1028
10-25-2003, 10:28 AM
I'm not really sure if they offer any other services in which they give you more code....but I seriously doubt it.>>>
I asked, and no they don't.

I appreciate how you are trying to help me...and I realize that I am silly to think I can cram all the knowledge you took years to master, into one weekend...but such is the nature of this beast....I am begiining to think I should let sleeping dogs lie....smile...When I think of the over 800 designs I would have to tag with ac ode.....even copy/paste does not console me....yet...if It can be done...I shall go forth and do it....