Thursday, 6 August 2009

PHP-Whats that again?

The host for Solundria does not support Java so I don't have access to Icefaces etc. I had the payment process set up to use Formail but the script on the host uses a default landing page and I need to have another form for uploading images and using PayPal. I have written the pages for the uploads but I need to change the payment process to PHP only. I'm sure there must be a way to send the images by email too, but I don't know it and I really want to be doing other things.
I have been putting off refining the payment process for so long... by documenting it here I might be forced to actually complete it this time!
Here is the workflow of the process:
1: The user arrives on the snap game page where they may try out the free snap games. If they like the idea of sending a Snappy Birthday Game they click the Place Order link.
2:The order form appears. This allows the customer to enter their details. On my last tinkering attempt I managed to break this page so my number one priority is to fix this first!
I used to have a really good PHP editor called PHP2000 or something but it went commercial and I just cant justify the outlay at the moment.
I used SciTE to edit the php and found a really good online syntax checker which allowed me (eventually), to switch the page to just use PHP to send email.
Everything seems to be working correctly now but I need to check the orders are being sent correctly by email!
The orders are getting through ok but I need to find a way of keeping track of which details belong to which images. Also the customers email address is not being sent so this will also require fixing.
3: When the form details are submitted the upload images page is displayed. This allows a customer to upload up to 3 images which can be included in the birthday game. This is working as intended, but I am using a last name input to match images to details and I don't have a last name field on the details page...
Almost there though!

No comments: