Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
Bigboy177
Worker
Worker



Joined: Jul 07, 2004
Posts: 192

PostPosted: Sat Jan 15, 2005 4:44 pm Reply with quote

Hello it's me again with another bugging problem...

I'm rebuilding some scripts in the shop module I've found... But I've ran in some serious problems... I tried to add some new variables using <input radio> command... but it doesn't work... I try to send the result of this input to another file... But it can't read the input value... When I set the value like this:

$ship=10;

it works... But When I use this code it doesn't work...:

Code:


echo "<input TYPE=\"radio\" NAME=\"ship\" VALUE=\"10\">Delivery By Post";


The value is not read... Why...?

_________________
Gry Online 
View user's profile Send private message
Bigboy177







PostPosted: Sat Jan 15, 2005 5:25 pm Reply with quote

I did some more testing and it doesn't pass any input... It looks like the input is always empty... Ohhhh I hate php, because of all this stupid things that work in every other module but they pick one of them and decide not to work... Mad

Can anyone help... please... It's driving me nuts... I've modified everything else and all that's stopping the shop from beeing activated is this stupid input... Mad

This is how the end of the code which is supposed to work looks like...
Code:


echo "<form action=\"modules.php?op=modload&name=".$module_name."&file=comm_infos\" method=\"post\">\n"
     ."<tr>\n"
     ."<td width=\"70%\" bgcolor=\"#31324E\">\n"
     ."<input TYPE=\"radio\" NAME=\"ship\" VALUE=\"10\">PRZESYŁKA POCZTOWA:"
     ."</td>"
     ."<td width=\"30%\" bgcolor=\"#31324E\">"
     ."10zł</td>"
     ."</tr>";
echo "<tr>"
     ."<td width=\"70%\" bgcolor=\"#31324E\">\n"
     ."<input TYPE=\"radio\" NAME=\"ship\" VALUE=\"13\">PRZESYŁKA POCZTOWA PRIORYTETOWA:"
     ."</td>"
     ."<td width=\"30%\" bgcolor=\"#31324E\">"
     ."13zł</td>"
     ."</tr>";
echo "<tr>"
     ."<td width=\"70%\" bgcolor=\"#31324E\">\n"
     ."<input TYPE=\"radio\" NAME=\"ship\" VALUE=\"30\">PRZESYŁKA POCZTOWA (do UE):<br>"
     ."</td>"
     ."<td width=\"30%\" bgcolor=\"#31324E\">"
     ."30zł</td>"
     ."</tr>";
echo "<tr>"
     ."<td width=\"70%\" bgcolor=\"#31324E\">\n"
     ."<input TYPE=\"radio\" NAME=\"ship\" VALUE=\"50\">PRZESYŁKA POCZTOWA (poza UE):<br>"
     ."</td>\n"
     ."<td width=\"30%\" bgcolor=\"#31324E\">"
     ."50zł</td>"
     ."</tr>"
     ."</table>\n";

echo "<p>\n"
    ."<table border=\"2\" width=\"300\" rules=\"rows\" CLASS=PANIER cellspacing=\"0\" cellpadding=\"5\" bordercolorlight=\"#808080\" bordercolordark=\"#808080\">\n"
    ."<tr>\n"
    ."<td width=\"50%\" bgcolor=\"#31324E\" colspan='2'><font size='3' ><B><I><center>Zawarto¶ć koszyka<br /> wygl±da następuj±co <br  /><br />
POTWIERDZASZ ?</center></I></B></font></td>\n"
    ."</tr>\n"
    ."<tr>\n"
    ."<td width=\"50%\" bgcolor=\"#31324E\"><center>\n"
    ."<input type=\"hidden\" name=\"przesylka\" value=\"$ship\">\n"
    ."<input type=\"hidden\" name=\"IDU\" value=\"$IDU\">\n"
    ."<input type=\"hidden\" name=\"OrderTotal\" value=\"$total\">\n"
    ."<input type=\"submit\" value=\""._OUI."\"></form>\n"
    ."</center></td>\n";



Tables and everyting is closed after the code... And everything is working OK... except the input...
 
Bigboy177







PostPosted: Sat Jan 15, 2005 6:42 pm Reply with quote

I guess noone can help... Sad
 
Bigboy177







PostPosted: Sun Jan 16, 2005 7:08 am Reply with quote

After some crazy searching... I've managed to find a solution... I don't know why it helped but it did... :]
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©