insideorkut.com

I only want to continue iPage/yahoo as a personal web page.?

Click Here To View All Answers...


My first question is I only want to continue iPage/yahoo as a personal web page.? Thanks for any answer or 2. Another question... Dear All,.

Please could someone help me with this code ? .

I have put most of the web iPage site together but as I'm not a web developer I now need some help..

The problem I have is that when the user clicks one or more of the check boxes I need a submit button to add up all the prices that represent the check boxes they have clicked on and show the grand total on a seperate page..

Could someone please help me?.

Thanks Ben.

<TR>.

<TD><STRONG>Sage Payroll (unlimited Employees)</STRONG></TD>.

<TD>.

<FORM method=post>.

<P><INPUT type=checkbox name=C1></P></FORM></TD>.

<TD vAlign=top>562.50 <FONT size=1>Normal price is 750</FONT></TD>.

<TD>.

<FORM method=post>.

<P><INPUT type=checkbox name=C1></P></FORM></TD>.

<TD vAlign=top>391.50</TD></TR>..

Comments (18)

Good question... I dunno what is the right answer to your question. I'll do some Googling and get back to you if I bump into an useful answer. You should email the people at iPage as they probably can help you..

Comment #1

Using Javascript you can use cookies to send the values.

To the next page..

Here.

Is an example..

.....willy..

Comment #2

Well can you show me in code what I should do please?.

Thanks.

Ben..

Comment #3

If you post a link to what you have so far [Order Form & Confirm Page].

I'll help all I can. But I need something to start with..

.....Willy..

Comment #4

Hello Willy,.

Cheers for the reply's..

All I have is the complete web iPage site it is only a page tho,.

If you want to take a look at that then I would be most grateful..

But I would need your email address as this forum does not let me post all of the code..

Thanks again.

Ben..

Comment #5

You can attach it to your message if it is too large to post..

....Willy..

Comment #6

Cheers Willy.

I have attached the source that I have so far.

Thanks again.

Ben..

Comment #7

Alright I got it..

I'll try to look at this evening..

However, I'm a little confused why each of your.

Checkboxes.

Are within their own.

<form>.

's..

Using your Sage Payroll as an example..

I would assume that you could only order one of the options..

It doesn't make sense to order.

Up to 50 Employees.

And.

Unlimited Employees.

..

Post back and let me know if my assumption is correct..

.....Willy..

Comment #8

Like willy said, the problem has to be because each check box is in a seperate form. That means when you check the box it won't do anything, or when you press the submit button it wont' do anything with the check boxes...

Comment #9

Hello Willy,.

Sorry for the late reply..

I no this might be a problem, but I do need the user to be able to select multple checkboxes and the I want the function behind the submit button to add the total cost plus vat..

Hope this is better expaind.

Thanks Again Willy.

Ben..

Comment #10

As others have pointed out above, this is a job for a server side script, not client side. Trusting client side scripts with things like this is nothing but wrong..

What happens when I go there with JavaScript turned off? Not uncommon these days...

Comment #11

I suggest we have this thread moved to the PHP Forum.

You'll need to make sure your host supports PHP, too..

I think you can do this one with cookies, using the PHP setcookie() method and some simple if's... post back whetherPHP will work or not and we can work out some specific code...

Comment #12

How would I see if PHP would work or not?.

Can you give me some code so I can see if it works.

Thanks.

Ben..

Comment #13

That still doesn't answer if a user is allowed to order:.

Up to 50 Employees.

And.

Unlimited Employees.

..

Checkboxes by default are meant for multiple selections..

If you only wanted one to be selected, you would need to.

Loop thru the checkbox[group] array and validate if more.

Than one was selected, and if so, return false..

Anticipating the answer to the type of question I posed.

Would certainly aide in preventing numerous script rewrites..

But, I see you have decided to go with a PHP script..

Therefore, I will take my leave and wish you....

Good Luck;.

....Willy..

Comment #14

Why dont you use radio buttons instead of checkboxes?.

Hah, someone's been doing a little too much javscripting..

Comment #15

Yep;.

If you are going to validate the form in anyway you will.

Need to use javascript. Your premise that you can do this.

All in PHP is flawed in that instead of validating the.

Form clientside, you will have to make multiple trips.

Back and forth to the server..

I'm sure you'll soon figure that out for yourself tho..

That is, if you were serious about writing a PHP script..

This may help..

One of the reasons is to provide continuity to the look.

Of a form. Either using all Radio Buttons or all Checkboxes..

.....Willy..

Comment #16

Yes, JavaScript can help, but again the client side cannot be trusted, and it must be validated on the server anyway..

Loffty:.

Put this code in a file called test.php or similar, the .php ending is very important. If you get a lot of info about PHP displayed when you view it on your remote host, then it's installed...

Comment #17

Never.

Trust the client with javascript, especially if currency is involved, to easy to hack. and how many trips do you think it will take? I count 1, the final process, but of course you have those that like to push the submit button a million times. that I can see your point, but that is also fixed..

It is ok to use your idea of javascript but the final validation should be checked on the serverside. that way you don't get any fraud purchases...

Comment #18

I wholeheartedly agree that final validation should be.

Done Serverside but using a combination of both would.

Prevent Submitals with omitted fields, numerical.

Entries that contain NaN, zip codes which are.

More than 5 characters, etc....

Regarding how many trips to the server?.

I suppose that would be in direct proportion to the clients.

Ignorance. Invariably, if the Submittal was returned with 5.

Errors highlighted in red, it will take the average inept.

User two more times to get it right..

.....Willy..

Comment #19


This question was taken from a support group/message board and re-posted here so others can learn from it.