Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more

Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Web Programming > PHP Development
User Name
Password

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 06-23-2007, 12:52 PM   #1 (permalink)
Brian07002
Junior Member
 
Join Date: Jun 2007
Posts: 2
Default Photo-Graffix -> Checkout Page

Hi all,

I need to write up a simple checkout page in php. But this will need to be 'connected' in a 'variable sense' with photo-graffix gallery.

I have some code but very little, that's why I am here for some help.

Ok, first I would download a demo of the program (unless you that good, and don't need it)...

I have a demo of Photo-Graffix 3.3

Code:
http://www.photo-graffix.com/trial.php

Ok, to begin...

To get a variable to be echoed out to the 'checkout.php' page using photo-graffix is like such:

Where ever you put this code in the checkout.php page:
Code:
<?php $name = $_GET['photoname']; echo $name ?>

It will display the name of the image name that you specify on the url string such as 'YourPic' (without the quotes) as specified in the url below.

Code:
http://www.yourdomain.com/graffix/checkout.php?photoname=YourPic

Note: YourPic (as specified in the above url) can be anything, I will use it for the item number for each image in the gallery. Also, if anyone has another suggestion for the url above that will substitute 'YourPic' for a variable based on the image clicked on in the gallery (not sure if photo-graffix works like that), but that would be awesome if you found out, so I don't have to type in each item number for each url. But if need be, I will do it.

Now I also would need the description to be echoed out onto the checkout page as well, keep in mind this is only a basic checkout page, so not to be technical. Now I haven't tested the code below so I don't know if it works, but I will need the description as well to be echoed to the checkout page. This code was emailed to me from photo-graffix, they said it works. I haven't tested it yet though.

Code:
http://www.yourdomain.com/gallery/checkout.php?item=photoname&description=photodescr


Now that you know that, a basic checkout page may look like this:

[HTML]<!-- CONTENT STARTS -->
<p align="center"><font face="Verdana">Checkout Page</font></p>
<table border="0">
<tr>
<td><font face="Verdana" size="2">&nbsp;Item Name:&nbsp; <?php $name = $_GET['photoname']; echo $name ?> </font></td>
</tr>
</table>
<table border="0">
<tr>
<td><font face="Verdana" size="2">Quantity: </font>
<input type="text" name="T1" size="2"> </td>
</tr>
</table>
<br>
<table border="0" cellspacing="0" cellpadding="0" height="240" width="596">
<tr>
<td height="20"><font face="Verdana" size="2">&nbsp;First Name: </font>
<font face="Verdana"><font size="1"><input type="text" name="fname" size="17">
</font>
<font color="#FF0000" size="1">*</font></font></td>
</tr>
<tr>
<td height="20"><font face="Verdana" size="2">&nbsp;Last Name: </font>
<font face="Verdana"><font size="1"><input type="text" name="lname" size="29">
</font>
<font color="#FF0000" size="1">*</font></font></td>
</tr>
<tr>
<td height="20"><font face="Verdana"><font size="2">&nbsp;Street Address:
</font><font size="1"><input type="text" name="address" size="31"> </font>
<font size="1" color="#FF0000">*</font><font size="1"> (Please Include Apt #,
Suite #, Floor Etc.)</font></font></td>
</tr>
<tr>
<td height="20"><font face="Verdana"><font size="2">&nbsp;City: </font>
<font size="1">
<input type="text" name="city" size="24">
<font color="#FF0000">*</font></font></font></td>
</tr>
<tr>
<td height="20"><font face="Verdana"><font size="2">&nbsp;State: </font>
<font size="1">
<input type="text" name="State" size="2" value="NJ">
<font color="#FF0000">*</font></font></font></td>
</tr>
<tr>
<td height="20"><font face="Verdana"><font size="2">&nbsp;Zip Code:
</font><font size="1"><input type="text" name="address5" size="9">
<font color="#FF0000">* </font>(Zip+4 Ok)</font></font></td>
</tr>
</table>
<!-- CONTENT ENDS -->
<p align="left"><font color="#FF0000" size="1" face="Verdana">*</font><font face="Verdana" size="2">
</font><font size="1" face="Verdana">Denotes Required Field</font></p>
<a href="print.php">Print Order</a>[/HTML]

Ok..Now for the 'tough' part it's making me Been try so hard to get this, need help bad here.

I want to add a simple checkout.php page that can do the following:

1. Save sessions (very simple shopping cart) so more than one item can be added to the checkout.php page
2. Make Printer Friendly (so the page can be printed on paper without problems)

Here's a page where php session help with refresh your memory if need be.

Code:
http://www.thewatchmakerproject.com/journal/276/building-a-simple-php-shopping-cart

I Thank all who help with this project!
Brian07002 is offline   Reply With Quote
Sponsored Links
Old 07-03-2007, 12:47 PM   #2 (permalink)
Brian07002
Junior Member
 
Join Date: Jun 2007
Posts: 2
Default Re: Photo-Graffix -> Checkout Page

I just checked back on my post, hoping for a reply...Guess no one is up for this? Anyone?
Brian07002 is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Points Per Thread View: 1.00
Points Per Thread: 11.00
Points Per Reply: 5.00



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare
Dedicated Servers

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 11:17 PM.



LinkBacks Enabled by vBSEO 3.0.0 RC8
Webmaster Forums