Problems with script

This is a discussion on Problems with script within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hi, OK Bare with me.New to php and trying to figure this out I trying to do the follwing. ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-03-2004
Kev T
 
Posts: n/a
Default Problems with script

Hi,

OK Bare with me.New to php and trying to figure this out

I trying to do the follwing. I have apage with a checkbox.. It posts to a
new page to allow a user to make a paypal order.

If the extension id say .com I want to display the relevant Paypla Add to
cart code for a .com extension etc.

Here is a a sample just to illustrate what Im trying to do. but its not
working.
The echos of the $domname and $key are really just to let me see what is
going on with the vars

reset($_POST);
while (list($key, $val) = each($_POST)) {
echo "$key => $val<br>";
if ($key == "com" or $key =="net") {
echo ("register $domname . $key<br>");}

else {
if ($key=="co_uk"){
echo ("register $domname . $key<br>");
echo ("<form target="paypal"
action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="image" src="https://www.paypal.com/en_GB/i/btn/sc-but-03.gif"
border="0" name="submit" alt="Make payments with PayPal - it's fast, free
and secure!">
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="myaccount@mydomain.com">
<input type="hidden" name="item_name" value="Domain Registration">
<input type="hidden" name="amount" value="12.95">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="GBP">
</form>"); }
else {
$domname=$val;
echo ("domainname = $domname<br>"); }

}

}

--
Kev T


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:10 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0