Welcome, Guest
  • Author Topic: could some one make me/show a php form for this?  (Read 3157 times)

    aidanmack

    • Server what's that
    • *
    • Posts: 19
      • View Profile
      • Personal website
      • Email
    Hi guys i nabed this bit of code from that awsome code builder called js generator
    I believe this code goes in the flash button....
    Code: [Select]
    on (release) {
    getURL ("javascript:NewWindow=window.open('ShowPopup.php?customName=bob&customLink=whooo har&customMessage=elllo','newWin','width=400,height=300,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');  NewWindow.focus();      void(0);");
    }
    how do i build a php file so it displays on screen 
    customername = bob
    customerlink =whoo
    customermessage= ello

    thanks
      aidan

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: could some one make me/show a php form for this?
    « Reply #1 on: 09/12/05, 11:32 »
    Try:

    echo "customername = ".$_GET['customName']."<br>customerlink:".$_GET['customLink']."<br>customermessage=".$_GET['customMessage'];

    Jorge

    aidanmack

    • Server what's that
    • *
    • Posts: 19
      • View Profile
      • Personal website
      • Email
    Re: could some one make me/show a php form for this?
    « Reply #2 on: 09/13/05, 04:27 »
    Fantastic! it works!
    thanks for that m8.
    another question ;) in stead of typing the text that you want the php to display into the flash buttons action script is it possible to replace it with a variable?
    for example.....

    instead of......
    on (release) {
    getURL ("javascript:NewWindow=window.open('ShowPopup.php?customName=the text i want it to display ect ect ect

    could i some how have...
    on (release) {
    getURL ("javascript:NewWindow=window.open('ShowPopup.php?customName=a name of a variable in my flash
    ?
    basically i want it to display a record that flash has already pulled in for a sql database.

    thanks

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: could some one make me/show a php form for this?
    « Reply #3 on: 09/13/05, 05:07 »
    Use inside Flash:

    ("javascript:NewWindow=window.open('ShowPopup.php?customName="+yourVar+"', 'newWin', .....

    GET have a max size of 255 characters in total, so you can't pass much text trough it, should use POST instead and the $_POST array in PHP

    Jorge

    aidanmack

    • Server what's that
    • *
    • Posts: 19
      • View Profile
      • Personal website
      • Email
    Re: could some one make me/show a php form for this?
    « Reply #4 on: 09/13/05, 05:25 »
    yeah thanks loads.
    sorry i was being a bit stupid their i worked it out for my self!
    ok thanks for your hint with post!
    you have been loads of help m8.
    do u own this site?
    do u have a pay pal to make a donation?
    « Last Edit: 09/13/05, 05:28 by aidanmack »

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: could some one make me/show a php form for this?
    « Reply #5 on: 09/13/05, 05:40 »
    In any of my tutorials, i.e http://www.flash-db.com/Tutorials/newstore/

    Jorge

    aidanmack

    • Server what's that
    • *
    • Posts: 19
      • View Profile
      • Personal website
      • Email
    Re: could some one make me/show a php form for this?
    « Reply #6 on: 09/14/05, 03:55 »
    I am now trying to get it to send  an image variable so that it displays in the php but it doesnt seem to work.
    i have tryed this way...
    on (release) {
    getURL ("javascript:NewWindow=window.open('http://bob.php?
    customName="+heading1+"&customLink="+projectFile1+"

    ProjectFile1 being the name of the variable for the image
    This way just displays the name of the image. for example....   customerlink=aidanmack.jpg

    so i tryed this...

    on (release) {
    getURL ("javascript:NewWindow=window.open('http://bob.php?customLink="+projectFile1+"','pic','height="+projectHeight1+",width="+projectWidth1+"

    That doesnt seem to work either

    any ideas? thanks
      aidan

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: could some one make me/show a php form for this?
    « Reply #7 on: 09/14/05, 04:14 »
    Check that the opened window have the rigth parameters (look the URL), if not, check that Flash is sending it (trace it prior sending)

    Jorge


    aidanmack

    • Server what's that
    • *
    • Posts: 19
      • View Profile
      • Personal website
      • Email
    Re: could some one make me/show a php form for this?
    « Reply #8 on: 09/14/05, 05:24 »
    your correct jorge, i forgot i need to tell it where to look for the image.

    how do i incorporate that in to my code?

    on (release) {
    getURL ("javascript:NewWindow=window.open('http://www.aidanmack.co.uk/bob.php?customName="+heading1+"&customLink="+about1+"&customMessage="+projectFile1+"','newWin','width=400,height=300,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');  NewWindow.focus();      void(0);");
    }


    I have been using some similar code that pulls an image variable in to just a htm file which looks like this...

    display1_btn.onRelease = function() {
       getURL("javascript:openNewWindow('http://www.aidanmack.co.uk/finishedfiles/"+projectFile1+"','pic','height="+projectHeight1+",width="+projectWidth1+",toolbar=no') ");
    };


    i have been useing bits of this code to incorprate into my new php code but it wont work. any ideas?

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: could some one make me/show a php form for this?
    « Reply #9 on: 09/14/05, 05:54 »
    Your filename should include the path:

    customerlink=somefolder/aidanmack.jpg

    Or the full URL

    Jorge

    aidanmack

    • Server what's that
    • *
    • Posts: 19
      • View Profile
      • Personal website
      • Email
    Re: could some one make me/show a php form for this?
    « Reply #10 on: 09/15/05, 10:32 »
    Hi jorge,
    why do the php variables have to have a & before each one?
    for example
    &customLink="+about1+"

    what with the &?

    thanks
      aidan

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: could some one make me/show a php form for this?
    « Reply #11 on: 09/16/05, 02:29 »
    Is a convention to separate variables, not only for Flash, but in URL parameters (see any URL with GET parameters, you will see & as separator)

    Jorge

    aidanmack

    • Server what's that
    • *
    • Posts: 19
      • View Profile
      • Personal website
      • Email
    Re: could some one make me/show a php form for this?
    « Reply #12 on: 09/16/05, 09:27 »
    hi Jorge. am still struggling with my images... i have this code in my button that fires off to my php file

    Code: [Select]
    &head="http://www.aidanmack.co.uk/finishedfiles/+projectFile1+"
    am i missing a comma or somthing? it turns my text gray.
    would should it look like?

    thanks
       aidan
    « Last Edit: 09/16/05, 09:29 by aidanmack »

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: could some one make me/show a php form for this?
    « Reply #13 on: 09/16/05, 10:15 »
    Try:

    head="http://www.aidanmack.co.uk/finishedfiles/"+projectFile1+"&othervars ..."

    Jorge

    aidanmack

    • Server what's that
    • *
    • Posts: 19
      • View Profile
      • Personal website
      • Email
    Re: could some one make me/show a php form for this?
    « Reply #14 on: 09/16/05, 10:43 »
    nop that just make it look like this...

    &head="http://www.aidanmack.co.uk/finishedfiles/"+projectFile1+"

    dont no why that wont work.