experts only...site gen software

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
daijames
Forum Newbie
Posts: 10
Joined: Mon Sep 12, 2011 3:50 pm

experts only...site gen software

Post by daijames »

Hi I have site generation software which is ok, and it has custom code insertion points
I have tried a lot of combinations but I cannot find out how to insert a

Code: Select all

$g_GET
to echo into the field 'Aff_ID'
if for example someone sends the URL.com/php?Aff_ID=xxx
well here goes, the complete code is rather long and i cant post it here, so it is athttp://holaid.com/dbq/affiliate_sales_add.php
User avatar
twinedev
Forum Regular
Posts: 984
Joined: Tue Sep 28, 2010 11:41 am
Location: Columbus, Ohio

Re: experts only...site gen software

Post by twinedev »

Well, what happens if you add echo $_GET['Aff_ID']; ??

If you want us to look at the code on your site, you need to save a copy of it as affilliate_sales_add.php.txt so it displays the content (make sure to remove any login info for databases, etc)

-Greg
daijames
Forum Newbie
Posts: 10
Joined: Mon Sep 12, 2011 3:50 pm

Re: experts only...site gen software

Post by daijames »

Hi Greg
nothing happens or I get syntax errors, I have tried to add it in the hidden field Aff_Id value, think its the way the variables are set
anyway now posted to http://www.holaid.com/dbq/affiliate_sales_add.php.txt
Regards from Sunny Lanzarote
Canary Islands
User avatar
twinedev
Forum Regular
Posts: 984
Joined: Tue Sep 28, 2010 11:41 am
Location: Columbus, Ohio

Re: experts only...site gen software

Post by twinedev »

Ok, we can see the code now, where are you wanting the Aff_ID to be displayed/included in the code?
daijames
Forum Newbie
Posts: 10
Joined: Mon Sep 12, 2011 3:50 pm

Re: experts only...site gen software

Post by daijames »

I want it so that it automatically populates the field Aff_ID I have tried to code it in

Code: Select all

 $cellvalue = "<input type=\"hidden\" name=\"add_fd18\" value=\"". qsreplace_html_quote(stripslashes($itemvalue)) ."\">";
but keep getting errors, so I guess the problem is I need it where they redefine the var from Aff_ID to "add_fd18"
Post Reply