Search found 17 matches

by NYColt
Fri Apr 09, 2004 4:35 pm
Forum: PHP - Code
Topic: Create a Function from a button
Replies: 30
Views: 1278

I would want it done for each instance.

Is my code way off in my last post?
feyd wrote:if you want it done for each instance of renderpaypal() do it in the function. If it's just for this instance, then do it outside.
by NYColt
Fri Apr 09, 2004 4:14 pm
Forum: PHP - Code
Topic: Create a Function from a button
Replies: 30
Views: 1278

Would I do that within the function itself? Would I add something like this to the function or can I do it seperate from the function? $listingID = make_db_extra_safe($listingID); $sql = "SELECT ID, field_name FROM " . "default_listingsDBElements WHERE (paypaluser); if ($listingID, &q...
by NYColt
Fri Apr 09, 2004 3:12 pm
Forum: PHP - Code
Topic: Create a Function from a button
Replies: 30
Views: 1278

I will have to do a Query right?
by NYColt
Fri Apr 09, 2004 3:12 pm
Forum: PHP - Code
Topic: Create a Function from a button
Replies: 30
Views: 1278

Database
by NYColt
Fri Apr 09, 2004 11:46 am
Forum: PHP - Code
Topic: Create a Function from a button
Replies: 30
Views: 1278

I was wondering if you could take a look at this and give me an idea as to how far off I am. <?php if (renderSingleListingItemRaw ($listingID, "paypalseller" = "yes") { renderpaypal(); } ?> In case I am sooo far off that you can't tell what I want to do here, I am trying to call ...
by NYColt
Wed Apr 07, 2004 9:03 pm
Forum: PHP - Code
Topic: Create a Function from a button
Replies: 30
Views: 1278

Whoa! Thats perfect! Just what I needed. Thank you sooo much for the help man I've been messin with this ALL Day! I really appreciate it! Thanks. NYColt Next thing I need to do is create an "if" statement for the item_name field. if the item_name is empty I don't want the button to show. i...
by NYColt
Wed Apr 07, 2004 8:45 pm
Forum: PHP - Code
Topic: Create a Function from a button
Replies: 30
Views: 1278

BEAUTIFUL! :D Put there are a bunch of \n \n all around it ?
by NYColt
Wed Apr 07, 2004 7:57 pm
Forum: PHP - Code
Topic: Create a Function from a button
Replies: 30
Views: 1278

I need the email address, ItemID which is puppies and the price which is 1500.00 they are all called but just not within the button.
by NYColt
Wed Apr 07, 2004 7:55 pm
Forum: PHP - Code
Topic: Create a Function from a button
Replies: 30
Views: 1278

Hmmm not quite, but it DID call the values just not with in the button it placed the vales nex to the button see here

http://buysellandsearch.com/listingview ... istingID=4

I think that is getting closer!
by NYColt
Wed Apr 07, 2004 7:50 pm
Forum: PHP - Code
Topic: Create a Function from a button
Replies: 30
Views: 1278

I will try that now, I still call the function the same way right?
by NYColt
Wed Apr 07, 2004 6:16 pm
Forum: PHP - Code
Topic: Create a Function from a button
Replies: 30
Views: 1278

Hi,

I still don't have it working.

That 2nd bit of function code is not setting the value the way the first code is. the function code is not oassing the value to Pay pal.
by NYColt
Wed Apr 07, 2004 6:07 pm
Forum: PHP - Code
Topic: Create a Function from a button
Replies: 30
Views: 1278

Thanks, Calling the function is NOT the problem that is working fine. The problem is in the button itself. Before I converted the button to a function the button worked fine. Button values set when I put the button directly on the page with this code: <input type="hidden" name="busine...
by NYColt
Wed Apr 07, 2004 5:44 pm
Forum: PHP - Code
Topic: Create a Function from a button
Replies: 30
Views: 1278

Tried it like this too <php? renderpaypal(); ?> and still did not set values.
by NYColt
Wed Apr 07, 2004 5:40 pm
Forum: PHP - Code
Topic: Create a Function from a button
Replies: 30
Views: 1278

Called it like this: <?php renderpaypal() ?> should work right?
by NYColt
Wed Apr 07, 2004 5:08 pm
Forum: PHP - Code
Topic: Create a Function from a button
Replies: 30
Views: 1278

You see the first bit of code for the button sets the value. This works: <input type="hidden" name="business" value=<? renderSingleListingItemRaw($listingID, "email") ?>> What does NOT work is when I tried to do the same thing with the button but call it as a function. ...