Jump to content
MakeWebGames

Recommended Posts

Posted

I'm working on a little something and have hit a brick wall. The script requires users to input a number, which gets $_POST back to the page, the part im waving trouble with is to print a set code for the amount sent by the $_POST

E.g

You submit the value 5 in the input field the result you would get back would be

$result

$result

$result

$result

$result

I know its possible to do it with if statements .... if $_POST['num] == 1

but surely there is a more efficient way.

Posted

Re: A little help with $_POST

I actually started coding something to explain but what you put is very vague, and I'm not entirely sure what you are asking exactly.

Posted

Re: A little help with $_POST

The users submits a number to the script, say the number 5.

Then the script will print 5 dropdowns.

If the user submits the number 100 it should print 100 dropdowns

Posted

Re: A little help with $_POST

You would need to use for or something im to tired to do it atm i might consider helping in the morning :).

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...