/    Sign up×
Community /Pin to ProfileBookmark

Help working between PHP and HTML

Hi there, I have a few questions that I really need help with.

What i am trying to do is implement a system where the following happens:

1) a HTML page asks the user to fill in a number of text fields
2) a PHP page inserts these into a database
3) the same PHP page then asks the user to fill in a 3 more text fields, with one of these already having a field value from part 1 entered in it

Parts 1 and 2 are fine, where I’m struggling is part 3.

The next problem then is as follows:

In part 1 above a number is entered saying how many loops of part 3 are needed (i.e. how many times the user has to submit the values requested by part 3). I just wondered could i get this value from part 1 passing between multiple PHP pages, with 1 being taken from it each time, until it reaches zero and the loop stops??

Hope someone out there can help

Cheers

Dave

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@phpnoviceMar 30.2005 — You mean something like this?

<input type="text" name="myField" size="10" value="<?=loopCount?>">

This could even be a hidden field that is only inserted after receiving the initial form.
×

Success!

Help @htmlperlman spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...