Want to add online store into my pre-designed PHP website template

Hi guys,
I have designed my website in PHP and need to add an online store to my site.
In the past I've used the WebAssist PayPal extension but ideally I am after something a bit more versatile and something that displays the user's shopping basket within my website template, instead of opening a new window with the cart contents.
Does anyone know of any shopping carts out there that I can insert into my template? Or, is there a way to manipulate the WebAssist buttons to have the shopping cart display within my website template - without using iFrames or unsatisfactory fixes like that?
Thank you and I hope to hear from you.
SM

Hi John,
Thanks for the reply! Ideally free but if not, I wouldn't really want to spend any more than $100 on it really.
SM

Similar Messages

  • Considerations should be taken into account when designing an RTF Template

    What overall considerations should be taken into account when designing an RTF template?.
    For example, how the tables should be set. When the report is running, I don't want to happen to the fields leaving the position defined during design.

    Hi,
    from my point of view, so general questions are not answered there...
    One note,
    I'm trying to get the data first, "load it" (for example) into Word and only then generate the tables using the wizards. This will give the effect.
    Eldar A.

  • IMac from tomorrow will Apple UK online store have Leopard pre-installed on

    If I order a new iMac 20" from tomorrow after Leopared is released (6pm UK time) will it come with Leopard pre-installed on it.
    I will be ordering from Apple UK online as I cn get discounts then
    If not how long will it be before it does
    Theres an offer online at mo that you get a free 4Gb Nano (via rebate) before Oct 30th
    ps my sister is a Teacher (qualifies for the educarional discount) so can I order it for her using my Credit card, nd using me as getting the rebate? or does it have to be in her name, her crdeit card etc?
    cheers

    Hello, 
    I wouldn't say the iMacs are perfect yet (not nearly as slick as my last iMac G4 or iMac G3) but a whole lot less buggy then the PCs I use at work! Apple has released two updates (iMac 1.3 and iMac 1.2.1 for Leopard and Tiger respectively) to improve stability. If these aren't installed when you get the machine you'll be offered them in +Software Update+.
    I purposefully bought my iMac with Tiger knowing I would upgrade. It's very very easy to upgrade OS X so don't worry about whether Leopard is in the box or installed. Macs always have all the software on optical disc so you can completely erase the hard disk and still return it to it's factory state. Apple doesn't put disk images on the hard disk.
    The upgrade process is so slick that my new iMac has all the software from my iMac G4 and even the web-history is there from before the machine arrived. (Migration Assistant can copy a whole user profile across).
    I wouldn't hold your breath for offers on the iMac though. The only ones I've seen in the past are free inkjet printers or discounts on iPods for students.
    kind regards
    mrtotes

  • How do I insert a photo into a pre-designed template?

    Help!  I downloaded a 30 day trial of Photoshop to design our Christmas family newsletter. Christmas is over and my trial will expire by the time I figure out how to insert a photo!!! This is not very intuitive and I'm exhausted!  Can someone please walk me through step by step?  Thank you!!!

    We don't know what your template looks like and how it is structured, so nobody can advise specifically. the rest are reayl PS basics/ fundamentals - copy & paste the image as a layer or drag & drop it into the other document.
    Mylenium

  • Are there pre-designed Purchase Order Templates available?

    Is anyone aware of a third-party provider of PO templates?

    Microsoft has a nice one: http://office.microsoft.com/en-us/templates/purchase-order-TC010173387.aspx
    It's a Word template. My suggestion would be to open it in Pages 4.3 and use it from there.
    It's a very good looking, professional design.
    I would not recommend doing this in Numbers 3.2 or Pages 5.2. If you use iWork '09, you can take advantage of Mail Merge to fill the address fields.
    Jerry

  • I want to ask a question. I have an iphone 4.and I need to add thousands words into user dictionary.I means the general keyboard user dictionary.

    I want to add thousands words into user dictionary on MAC operate system .then sync it to iphone.
    is it possible?

    AFAIK, the system dictionary is not one of the items syncronized between the two devices when using iTumes for that purpose.

  • How to add text vertically into a Word margin with C# (using namespace: Microsoft.Office.Interop.Word)

    I need to add text vertically in a word document outside the margins.  How can I do this with Microsoft.Office.Interop.Word and C#?
    Leonard Swarczinski Software Developer Postal Center International

    Hi Leonard,
    According to your description, do you want to add text vertically into Page Header/Footer? I wrote a sample  for you.
    using Microsoft.Office.Core;
    using Microsoft.Office.Interop.Word;
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    namespace AddTextToWord
    class Program
    static void Main(string[] args)
    CreateNewDocument();
    Console.ReadLine();
    private static void CreateNewDocument()
    Object oMissing = System.Reflection.Missing.Value;
    Microsoft.Office.Interop.Word.Application oWord;
    Microsoft.Office.Interop.Word.Document oDoc;
    oWord = new Microsoft.Office.Interop.Word.Application();
    oWord.Visible = true;
    oDoc = oWord.Documents.Add(ref oMissing, ref oMissing, ref oMissing, ref oMissing);
    String HeaderText = "Hello everyone!";
    WdParagraphAlignment wdAlign = WdParagraphAlignment.wdAlignParagraphCenter;
    AddHeader1(oWord, HeaderText, wdAlign);
    private static void AddHeader1(Application WordApp, string HeaderText, WdParagraphAlignment wdAlign)
    Object oMissing = System.Reflection.Missing.Value;
    WordApp.ActiveWindow.View.Type = WdViewType.wdOutlineView;
    WordApp.ActiveWindow.View.SeekView = WdSeekView.wdSeekPrimaryHeader;
    Microsoft.Office.Interop.Word.Shape textBox = WordApp.ActiveDocument.Shapes.AddTextbox(MsoTextOrientation.msoTextOrientationVertical, 150, 10, 40, 40);
    textBox.TextFrame.TextRange.Text = HeaderText;
    WordApp.ActiveWindow.View.SeekView = WdSeekView.wdSeekMainDocument;
    If I misunderstood or anything wrong, please let me know and you can get more information from below articles.
    Office development in Visual Studio
    http://msdn.microsoft.com/en-us/office/hh133430.aspx
    Abhout: AddTextbox Method
    http://msdn.microsoft.com/en-us/library/office/aa171543(v=office.11).aspx
    How to: Programmatically Insert Text into Word Documents
    http://msdn.microsoft.com/en-us/library/vstudio/6b9478cs.aspx

  • How to add one column into the t.code: cat2

    Hi
    I am userexits
    here i want to add one column into the t.code: cat2 at particular location, and that added field have to display the data what i am selcting in that transaction.
    how to do this...
    thankx

    hi,
        CATS0005           
        CATS0007           
        CATS0009        
        CATS0010        
        CATS0012.
        Go through the documentations of above Enhancements to solve ur problem. I am not able to understand ur exact requirement. that is y i gave some more Enhancements.

  • Add combo box into table pagination

    I want to add combo box into JavaFX table with pagination. Something like that:
    import javafx.application.Application;
    import javafx.beans.property.SimpleStringProperty;
    import javafx.collections.FXCollections;
    import javafx.collections.ObservableList;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.control.Pagination;
    import javafx.scene.control.TableColumn;
    import javafx.scene.control.TableView;
    import javafx.scene.control.cell.PropertyValueFactory;
    import javafx.scene.layout.AnchorPane;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    import javafx.util.Callback;
    public class MainApp extends Application
       final ObservableList<Person> data = FXCollections.observableArrayList(
       new Person("1", "Joe", "Pesci"),
       new Person("2", "Audrey", "Hepburn"),
       new Person("3", "Gregory", "Peck")
       private Pagination pagination;
       public static void main(String[] args) throws Exception
      launch(args);
       public int itemsPerPage()
       return 1;
       public int rowsPerPage()
       return 5;
       public VBox createPage(int pageIndex)
       int lastIndex = 0;
       int displace = data.size() % rowsPerPage();
       if (displace > 0)
      lastIndex = data.size() / rowsPerPage();
       else
      lastIndex = data.size() / rowsPerPage() - 1;
       VBox box = new VBox(5);
       int page = pageIndex * itemsPerPage();
       for (int i = page; i < page + itemsPerPage(); i++)
       TableView<Person> table = new TableView<>();
       TableColumn numCol = new TableColumn("ID");
      numCol.setCellValueFactory(
       new PropertyValueFactory<Person, String>("num"));
      numCol.setMinWidth(20);
       TableColumn firstNameCol = new TableColumn("First Name");
      firstNameCol.setCellValueFactory(
       new PropertyValueFactory<Person, String>("firstName"));
      firstNameCol.setMinWidth(160);
       TableColumn lastNameCol = new TableColumn("Last Name");
      lastNameCol.setCellValueFactory(
       new PropertyValueFactory<Person, String>("lastName"));
      lastNameCol.setMinWidth(160);
      table.getColumns().addAll(numCol, firstNameCol, lastNameCol);
       if (lastIndex == pageIndex)
      table.setItems(FXCollections.observableArrayList(data.subList(pageIndex * rowsPerPage(), pageIndex * rowsPerPage() + displace)));
       else
      table.setItems(FXCollections.observableArrayList(data.subList(pageIndex * rowsPerPage(), pageIndex * rowsPerPage() + rowsPerPage())));
      box.getChildren().add(table);
       return box;
       @Override
       public void start(final Stage stage) throws Exception
      pagination = new Pagination((data.size() / rowsPerPage() + 1), 0);
       // pagination = new Pagination(20 , 0);
       //pagination.setStyle("-fx-border-color:red;");
      pagination.setPageFactory(new Callback<Integer, Node>()
       @Override
       public Node call(Integer pageIndex)
       if (pageIndex > data.size() / rowsPerPage() + 1)
       return null;
       else
       return createPage(pageIndex);
       public static class Person
       private final SimpleStringProperty num;
       private final SimpleStringProperty firstName;
       private final SimpleStringProperty lastName;
       private Person(String id, String fName, String lName)
       this.firstName = new SimpleStringProperty(fName);
       this.lastName = new SimpleStringProperty(lName);
       this.num = new SimpleStringProperty(id);
       public String getFirstName()
       return firstName.get();
       public void setFirstName(String fName)
      firstName.set(fName);
       public String getLastName()
       return lastName.get();
       public void setLastName(String fName)
      lastName.set(fName);
       public String getNum()
       return num.get();
       public void setNum(String id)
      num.set(id);
    I suppose that this can be done with StackPane but I need some other more universal way to do this because I want to expand the table size. I need to place there the combo box always in a fix position.
    Ref http://stackoverflow.com/questions/21147261/add-combo-box-into-table-pagination

    Hi. You can do it using an AnchorPane:
    AnchorPane.setBottomAnchor(comboBox, 40.0);
    AnchorPane.setLeftAnchor(comboBox, 12.0);
    The complete  example :
    import java.util.List;
    import javafx.application.Application;
    import javafx.beans.property.SimpleStringProperty;
    import javafx.collections.FXCollections;
    import javafx.collections.ListChangeListener;
    import javafx.collections.ListChangeListener.Change;
    import javafx.collections.ObservableList;
    import javafx.scene.Scene;
    import javafx.scene.control.Pagination;
    import javafx.scene.Node;
    import javafx.scene.control.ComboBox;
    import javafx.scene.control.TableColumn;
    import javafx.scene.control.TableView;
    import javafx.scene.control.TextArea;
    import javafx.scene.control.cell.PropertyValueFactory;
    import javafx.scene.layout.AnchorPane;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    import javafx.util.Callback;
    public class TablePager extends Application {
        final ObservableList<Person> data = FXCollections.observableArrayList(
                new Person("1", "Joe", "Pesci"),
                new Person("2", "Audrey", "Hepburn"),
                new Person("3", "Gregory", "Peck"),
                new Person("4", "Cary", "Grant"),
                new Person("5", "De", "Niro"),
                new Person("6", "Katharine", "Hepburn"),
                new Person("7", "Jack", "Nicholson"),
                new Person("8", "Morgan", "Freeman"),
                new Person("9", "Elizabeth", "Taylor"),
                new Person("10", "Marcello", "Mastroianni"),
                new Person("11", "Innokenty", "Smoktunovsky"),
                new Person("12", "Sophia", "Loren"),
                new Person("13", "Alexander", "Kalyagin"),
                new Person("14", "Peter", "OToole"),
                new Person("15", "Gene", "Wilder"),
                new Person("16", "Evgeny", "Evstegneev"),
                new Person("17", "Michael", "Caine"),
                new Person("18", "Jean-Paul", "Belmondo"),
                new Person("19", " Julia", "Roberts"),
                new Person("20", "James", "Stewart"),
                new Person("21", "Sandra", "Bullock"),
                new Person("22", "Paul", "Newman"),
                new Person("23", "Oleg", "Tabakov"),
                new Person("24", "Mary", "Steenburgen"),
                new Person("25", "Jackie", "Chan"),
                new Person("26", "Rodney", "Dangerfield"),
                new Person("27", "Betty", "White"),
                new Person("28", "Eddie", "Murphy"),
                new Person("29", "Amitabh", "Bachchan"),
                new Person("30", "Nicole", "Kidman"),
                new Person("31", "Adriano", "Celentano"),
                new Person("32", "Rhonda", " Fleming's"),
                new Person("32", "Humphrey", "Bogart"));
        private Pagination pagination;
        public static void main(String[] args) throws Exception {
            launch(args);
        public int itemsPerPage() {
            return 1;
        public int rowsPerPage() {
            return 5;
        public VBox createPage(int pageIndex) {
            int lastIndex = 0;
            int displace = data.size() % rowsPerPage();
            if (displace > 0) {
                lastIndex = data.size() / rowsPerPage();
            } else {
                lastIndex = data.size() / rowsPerPage() - 1;
            VBox box = new VBox();
            int page = pageIndex * itemsPerPage();
            for (int i = page; i < page + itemsPerPage(); i++) {
                TableView<Person> table = new TableView<Person>();
                TableColumn numCol = new TableColumn("ID");
                numCol.setCellValueFactory(
                        new PropertyValueFactory<Person, String>("num"));
                numCol.setMinWidth(20);
                TableColumn firstNameCol = new TableColumn("First Name");
                firstNameCol.setCellValueFactory(
                        new PropertyValueFactory<Person, String>("firstName"));
                firstNameCol.setMinWidth(160);
                TableColumn lastNameCol = new TableColumn("Last Name");
                lastNameCol.setCellValueFactory(
                        new PropertyValueFactory<Person, String>("lastName"));
                lastNameCol.setMinWidth(160);
                table.getColumns().addAll(numCol, firstNameCol, lastNameCol);
                if (lastIndex == pageIndex) {
                    table.setItems(FXCollections.observableArrayList(data.subList(pageIndex * rowsPerPage(), pageIndex * rowsPerPage() + displace)));
                } else {
                    table.setItems(FXCollections.observableArrayList(data.subList(pageIndex * rowsPerPage(), pageIndex * rowsPerPage() + rowsPerPage())));
                box.getChildren().addAll(table);
            return box;
        @Override
        public void start(final Stage stage) throws Exception {
            ObservableList<String> options =
                    FXCollections.observableArrayList(
                    "Opt1",
                    "Opt2",
                    "Opt3");
            final ComboBox comboBox = new ComboBox(options);
            pagination = new Pagination((data.size() / rowsPerPage() + 1), 0);
            //   pagination = new Pagination(20 , 0);
            pagination.setStyle("-fx-border-color:red;");
            pagination.setPageFactory(new Callback<Integer, Node>() {
                @Override
                public Node call(Integer pageIndex) {
                    if (pageIndex > data.size() / rowsPerPage() + 1) {
                        return null;
                    } else {
                        return createPage(pageIndex);
            AnchorPane anchor = new AnchorPane();
            AnchorPane.setTopAnchor(pagination, 10.0);
            AnchorPane.setRightAnchor(pagination, 10.0);
            AnchorPane.setBottomAnchor(pagination, 10.0);
            AnchorPane.setLeftAnchor(pagination, 10.0);
            Scene scene = new Scene(anchor, 400, 250);
            AnchorPane.setBottomAnchor(comboBox, 40.0);
            AnchorPane.setLeftAnchor(comboBox, 12.0);
            anchor.getChildren().addAll(pagination, comboBox);
            stage.setScene(scene);
            stage.setTitle("Table pager");
            stage.show();
        public static class Person {
            private final SimpleStringProperty num;
            private final SimpleStringProperty firstName;
            private final SimpleStringProperty lastName;
            private Person(String id, String fName, String lName) {
                this.firstName = new SimpleStringProperty(fName);
                this.lastName = new SimpleStringProperty(lName);
                this.num = new SimpleStringProperty(id);
            public String getFirstName() {
                return firstName.get();
            public void setFirstName(String fName) {
                firstName.set(fName);
            public String getLastName() {
                return lastName.get();
            public void setLastName(String fName) {
                lastName.set(fName);
            public String getNum() {
                return num.get();
            public void setNum(String id) {
                num.set(id);

  • Online Store In Flex

    Hi all... Am currently in the process of building an online
    store, the database is a MySQL database, and I originally was going
    to do the whole thing in PHP... But have started to look into
    building it in Flex as an option... I have posted on a heap of web
    forums and no one there will really stick up for Flex so thought
    I'd post here to get some feedback from the other side of the coin
    so to speak...
    Obviously an online store IS achievable in Flex, but is it
    advisable? I'm assuming like Flash Flex doesn't have great SEO
    capabilities, and I guess for an online only store that would be
    important. But I'm thinking that alot more interactivity can be
    achieved building an online store in Flex... Anyway if anyone has
    any opinions would be much appreciated...
    Thanks!

    I am no expert on flex, but I've heard that there are things
    you can do to make flex sites SEOed. (Search Engine Optimized) But
    I wouldn't be the person to ask about that.
    But I do run an online store that was built in php (zencart)
    and runs with a mysql backend. We have decided to switch our
    frontend to flex, and use php as our middle man to access our mysql
    database. For us, flex will give our users a better experience. I
    personally like the ability that flex gives you to separate the
    front end from the back end, so that you can make your site
    available to more users on more platforms. That is an obvious
    benifit over php.
    Also, with Flex 3 coming out soon, and Adobe AIR, you can
    even make a front end for your store that runs as a local
    application on a users computer - I'd like to see php do that! :-)
    But using flex you wont get away from php totally - you will
    still need it for database access and the like.

  • How can I add  several  JButton into JList?

    I want to add several button into a Jlist. I tried this method, list.add(button,1),nothing shows up.I am not sure whether jList has the function.If it is,please show me how to achieve that.Thanks in advance!

    A JList is used to display text Strings. You should be able to add a JButton to the JList but all you will see is the toString() representation of the JButton. You will not see a button or be able to click on it.
    Try creating a panel using a GridLayout with a single column and add all you JButtons to the panel.

  • Implementing an online store using iweb

    I understand that iWeb isn't really designed for creating online stores, but it's the only application I have real experience in using.
    So I was wondering if there's anyway to implement an online store into my iWeb website.
    I have heard some talk of somehow implementing an oscommerce application into the website?
    Any help would be much appreciated!

    Here's a few suggestions....
    http://www.iwebformusicians.com/DistributeandPromote/ECommerce.html

  • How to add a directory into a jar file

    Hi, guys, I want to add a package into a jar file. For example, my dirctory structrue
    is org/test/, all files locate in the directory test, in org.test package. I want to
    add the package into a jar file, test.jar. I use "java -cvf test.jar -C org/test/ .
    But it says "jar: no match". How can I solve it.
    thanks

    Instead of 'java', use 'jar'.
    All in all, try this: jar cvf test.jar -C org/test/*.class.
    Have a nice day!

  • Add second item into PayPal express checkout list

    I want to add second item into PayPal express checkout list public void initPayPal() throws SSLConfigurationException, InvalidCredentialException, IOException, HttpErrorException, InvalidResponseDataException, ClientActionRequiredException, MissingCredentialException, InterruptedException, OAuthException, ParserConfigurationException, com.paypal.exception.SSLConfigurationException, com.paypal.exception.InvalidCredentialException, com.paypal.exception.HttpErrorException, com.paypal.exception.InvalidResponseDataException, com.paypal.exception.ClientActionRequiredException, com.paypal.exception.MissingCredentialException, com.paypal.sdk.exceptions.OAuthException, org.xml.sax.SAXException
    PaymentDetailsType paymentDetails = new PaymentDetailsType();
    paymentDetails.setPaymentAction(PaymentActionCodeType.SALE);
    PaymentDetailsItemType item = new PaymentDetailsItemType();
    BasicAmountType amt = new BasicAmountType();
    amt.setCurrencyID(CurrencyCodeType.fromValue("USD"));
    double itemAmount = 1.00;
    amt.setValue(String.valueOf(itemAmount));
    int itemQuantity = 1;
    item.setQuantity(itemQuantity);
    item.setName("item");
    item.setAmount(amt);
    List<PaymentDetailsItemType> lineItems = new ArrayList<PaymentDetailsItemType>();
    lineItems.add(item);
    paymentDetails.setPaymentDetailsItem(lineItems);
    BasicAmountType orderTotal = new BasicAmountType();
    orderTotal.setCurrencyID(CurrencyCodeType.fromValue("USD"));
    orderTotal.setValue(String.valueOf(itemAmount * itemQuantity));
    paymentDetails.setOrderTotal(orderTotal);
    List<PaymentDetailsType> paymentDetailsList = new ArrayList<PaymentDetailsType>();
    paymentDetailsList.add(paymentDetails);
    SetExpressCheckoutRequestDetailsType setExpressCheckoutRequestDetails = new SetExpressCheckoutRequestDetailsType();
    setExpressCheckoutRequestDetails.
    setExpressCheckoutRequestDetails.setReturnURL("http://devtools-paypal.com/guide/expresscheckout/java?success=true");
    setExpressCheckoutRequestDetails.setCancelURL("http://devtools-paypal.com/guide/expresscheckout/java?cancel=true");
    setExpressCheckoutRequestDetails.setPaymentDetails(paymentDetailsList);
    SetExpressCheckoutRequestType setExpressCheckoutRequest = new SetExpressCheckoutRequestType(setExpressCheckoutRequestDetails);
    setExpressCheckoutRequest.setVersion("104.0");
    SetExpressCheckoutReq setExpressCheckoutReq = new SetExpressCheckoutReq();
    setExpressCheckoutReq.setSetExpressCheckoutRequest(setExpressCheckoutRequest);
    Map<String, String> sdkConfig = new HashMap<String, String>();
    sdkConfig.put("mode", "sandbox");
    sdkConfig.put("acct1.UserName", "peter.penzov_api1.gmail.com");
    sdkConfig.put("acct1.Password", "5LQB5QHQJVKP9QKN");
    sdkConfig.put("acct1.Signature", "AFcWxV21C7fd0v3bYYYRCpSSRl31A6JqBNQNOE3.Jwxfs7nIV1jR7qcl");
    PayPalAPIInterfaceServiceService service = new PayPalAPIInterfaceServiceService(sdkConfig);
    SetExpressCheckoutResponseType setExpressCheckoutResponse = service.setExpressCheckout(setExpressCheckoutReq);
    String token = setExpressCheckoutResponse.getToken();
    String link = "https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=" + token;
    ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
    externalContext.redirect(link);
    }   

    Help please?

  • Bordercontainer into .jpg file using php

    hi
    i have done one bordercontaine using flex 4.
    that bordercontainer contain one image and label
    i want to store that bordercontainer into jpg using php file
    I give my mxml file and php
    newflexphp.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                import mx.controls.Alert;
                import mx.graphics.codec.JPEGEncoder;
                import mx.rpc.events.ResultEvent;
                import mx.utils.Base64Encoder;
                //import com.adobe.images.JPGEncoder;           
                import flash.utils.ByteArray;
                import flash.system.System;
                private var bmSave:BitmapData;
                public function resultHandler( event: ResultEvent ):void
                    Alert.show( "Result "+String(event.result) );
                public function saveImg():void{
                    var jpgSource:BitmapData = new BitmapData (bcont.width, bcont.height);
                    jpgSource.draw(bcont);
                    var jpgEncoder:JPEGEncoder = new JPEGEncoder(85);
                    var jpgStream:ByteArray = jpgEncoder.encode(jpgSource);
                    var header:URLRequestHeader = new URLRequestHeader("Content-type", "application/octet-stream");
                    var jpgURLRequest:URLRequest = new URLRequest("http://localhost/jpg_encoder.php?name=sketch1.jpg");
                    jpgURLRequest.requestHeaders.push(header);
                    jpgURLRequest.method = URLRequestMethod.POST;
                    jpgURLRequest.data = jpgStream;
                    navigateToURL(jpgURLRequest);
            ]]>
        </fx:Script>
        <s:BorderContainer x="369" y="171" width="232" height="216" id="bcont">
            <mx:Image x="44" y="14" width="151" height="87" source="images/3.jpg"/>
            <s:Label x="44" y="132" text="Best wishes" width="94" height="44"/>
        </s:BorderContainer>
        <s:Button x="163" y="182" label="Button" click="saveImg()"/>
    </s:Application>
    jpg_encoder.php
    <?php
    if (isset($GLOBALS["HTTP_RAW_POST_DATA"]))
        // get bytearray
        $jpg = $GLOBALS["HTTP_RAW_POST_DATA"];
        // add headers for download dialog-box
        header('Content-Type: image/jpeg');
        header("Content-Disposition: attachment; filename=".$_GET['name']);
        echo $jpg;
    ?>
    now i get the result seketch.jpg file
    but the link is redircted to php
    just i want to convert my bordercontainer into .jpg file using php.
    how can i do .
    regards
    athi

    Try this possible workaround:
    1.— Take your original file (before any edits) and duplicate it.
    2.— Work on the duplicate (exact clone) only.  Do all your Photoshop edits to your heart's content.  (Optional step: save the file, but don't close it so you don't compress the JPEG and deteriorate its quality.)  Do a select all (Command+A on the Mac, Control+A on Windows) to select the entire pixel content of the duplicate, and COPY that.  Now you have your edited image on your clipboard.
    3.— Open the original file, and do a select all on it, but don't copy that!  Instead, DELETE all the pixel content of the original.  Now you have a blank image with only the metadata of the original.
    4.— Paste the contents of your clipboard (the pixels of the edited clone) into the blank original.  Save.
    With any luck, you'll have the edited pixels with the metadata of the original.
    It should work, but there are no guarantees.

Maybe you are looking for