Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Simple Code with a Complex Problem
Old 11-14-2007, 12:30 AM Simple Code with a Complex Problem
MoForce's Avatar
Super Talker

Posts: 145
Name: Jack Shalt
Trades: 0
PHP Code:
<a href="paypal.checkout.php?auctionid="<? 'auctionid' ?>"\"><input name="confirmbidok" type="submit" id="confirmbidok" value="submit"></a>
Ok so this is probably pretty self-explanatory just by looking at this mess

I just need help with the
Code:
<? 'auctionid' ?>
part of this... so there is the submit button and it links to paypal.checkout.php?auctionid= but there is nothing on the right side of the =...meaning the 'auctionid' isn't being grabbed. Anyone have an idea on how to grab a piece information like an id # and place it in
Code:
<a href="paypal.checkout.php?auctionid="HERE"\">

Last edited by MoForce; 11-14-2007 at 12:31 AM..
MoForce is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-14-2007, 01:06 AM Re: Simple Code with a Complex Problem
jito's Avatar
MY LIFE IS 'i' LIFE

Posts: 565
Name: surajit ray
Location: inside the heart of my friends
Trades: 0
may be your short tag option is off in php.ini. Try

PHP Code:
<?php echo $_REQUEST['auctionid'];?>
instead of <?'auctionid'?>

ADDED: and you need to concatenate the variable.
__________________
I am not smart, that's why i don't act smart


Please login or register to view this content. Registration is FREE

Last edited by jito; 11-14-2007 at 01:08 AM..
jito is offline
Reply With Quote
View Public Profile
 
Old 11-14-2007, 07:59 AM Re: Simple Code with a Complex Problem
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
obvious questions first

does your host support php?
and
does the page the form is on have a .php extension?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-14-2007, 08:17 AM Re: Simple Code with a Complex Problem
MoForce's Avatar
Super Talker

Posts: 145
Name: Jack Shalt
Trades: 0
Quote:
Originally Posted by chrishirst View Post
obvious questions first

does your host support php?
and
does the page the form is on have a .php extension?
Yep my host supports php and the page has a .php extension
MoForce is offline
Reply With Quote
View Public Profile
 
Old 11-14-2007, 08:45 AM Re: Simple Code with a Complex Problem
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
PHP Code:
<? 'auctionid' ?>
This won't do nothing....

Try
PHP Code:
<? echo $auctionid;?>
or whatever variable holds your auction id.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Reply     « Reply to Simple Code with a Complex Problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.51192 seconds with 12 queries