/    Sign up×
Community /Pin to ProfileBookmark

can anyone tell me and help me please what is this what im I trying to do:

//this is just a question on my mind it is not yet implemented

<pre>
<form name = reservation method = post action = ‘reservation.php’>
bla:<input type = text name = bla >
blo:<input type = text name = blo>
no.passenger: <input type = text name = passenger >

<input type = submit value = submit>
</pre>

what i want in here is that when i put a value in no.passenger another text field will be shown up depending to the input of the user like for example i put 4 in the text field passenger and a 4 text field will be shown up for me to put the names of the passenger. . . . . help me please with this.?

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@PravinBhatOct 19.2009 — Hello Buddy

HTML 4.0 and above require that attributes like type, name, action, etc to be placed within the " And ".

So change the code to the following And try.......

<pre>

////comment: Start Form

<form name ="reservation" method ="post" action ="reservation.php">

bla:<input type ="text" name ="bla">

blo:<input type ="text" name ="blo">

no.passenger: <input type ="text" name ="passenger">

<input type ="submit" value ="submit">

</form>////End FORM

</pre>



Also note that You did not Close The FORM by "</form>" !!!....

And Please avoid unnecessary spaces and new lines......Wanna See you back with the Smile.......Ha Ha..
Copy linkTweet thisAlerts:
@chinhelhasauthorOct 19.2009 — the structure of my form doesnt matter i know how to do that what i want to know is how to bla bla bla . . . . . . never mind i've already figured it out.
×

Success!

Help @chinhelhas 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.10,
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,
)...