/    Sign up×
Community /Pin to ProfileBookmark

Can you give me example of php form?

Hi, everyone!
Can you tell give please example of [URL=”http://phpforms.net/tutorial/html-basics/php-forms.html”]php form[/URL]? It’s neccessary for me to create e-mail form.
Thank you in advance!

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@kingafrojoeMar 18.2010 — to make a form using PHP you simply use "echo" to send the HTML form information to the screen. e.g.

[code=php]
echo "<form action='somepage.php' methord='post'>

<input type='text' name='email' />

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

</form>

###close the echo###
";
[/code]


hope that's what you where looking for.
Copy linkTweet thisAlerts:
@PenelopaauthorMar 18.2010 — Thank you veru much, [B]kingafrojoe[/B]?
Copy linkTweet thisAlerts:
@NogDogMar 18.2010 — For something like that you can just exit out of PHP mode.
[code=php]
<?php
// some PHP code here
?>
<form action="" method="post">
<fieldset>
<legend>Sample Form</legend>
<input type='text' name='test' />
<input type='submit' value='Submit' />
<fieldset>
</form>
<?php
// more PHP code here
?>
[/code]
×

Success!

Help @Penelopa 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.18,
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,
)...