Web Hosting Talk







View Full Version : PHP Help Needed!


Design123
02-13-2002, 08:04 PM
I bought a book to learn php the other day. I have started reading it, and I am trying to create a custom plan sign up form, where the clients, can customize a plan, and then order, I have done most if it so far, however, I am stuck at one point. I was wondering if anyone would help me for free? Just look at my scripts and see what I am doing wrong. You can even feel free to use them, if you want, I do not care.

I can't get the Space, Bandwidth, and Price to transfer from calculate.php, to addons.php. Can you post info from one PHP script to antoher? is that my problem?

Go here and click on oreder.html, to see what I am doing:
http://64.119.166.132/php/orderform/2/

Go here to ftp the files:
ftp://64.119.166.132/phpscripts/

Thanks for helping,


**I think this is in the right forum sense I am not advertising. Mods, If it is not, please put in the right one.

Thanks

(SH)Saeed
02-13-2002, 08:22 PM
What you should do is to make 2 hidden input fields in your calculate.php page (where the form is) and name one of them "space" and the other one "bandwidth". This way you can have the values sent to the next page when the "Next" button in pressed.

Example:

<input type="hidden" name="space" value="<?= $space ?>">
<input type="hidden" name="bandwidth" value="<?= $bandwidth ?>">

The $space and $bandwidth variables are those variables containing the chosen values from the first page.

I hope you understand what I'm trying to say. If you can't figure it out, then email me and I will explain further.

mmarron79
02-16-2002, 12:07 AM
I tested your order page and it worked fine. Or did you already figure it out? What I would do is "post" the info from the first script to the second script. Like you would in a cgi script that e-mails info submitted in a HTML form.

Design123
02-18-2002, 02:10 PM
I got it figured out, with the help of the post before you. Thanks for your help anyway. Now all I have to do is make it so that it submits it to me, which I know how to do, just have to find the time.


Thanks