Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #14959
| Newsgroups | comp.lang.php |
|---|---|
| Date | 2015-02-21 14:28 -0800 |
| Message-ID | <521b9744-e069-4f53-ad35-da83c089d94e@googlegroups.com> (permalink) |
| Subject | Combining forms |
| From | cobble stone <afor6993@gmail.com> |
Hello everyone new to php and i was just seeing if anyone could help me with combining my php forms so that they read from 1 file instead of the 3 individual pages....i took out my code details just so they are not on the internet but the setup of my pages are still in there. can anyone markup my file so that all the content from the 3 forms can be read from 1 form please.
<!DOCTYPE html>
<html>
<head>
<title></title>
<style>
@import url('css/styles.css');
</style>
</head>
<body>
<div class="main">
<form method="post" action="form_preview.php">
///////////// this is just where my info is going
///////////// this is just where my info is going
///////////// this is just where my info is going
///////////// this is just where my info is going
///////////// this is just where my info is going
///////////// this is just where my info is going
///////////// this is just where my info is going
</div>
</fieldset>
</form>
</div>
</body>
</html>
//////////////////////////second form
<?php
setcookie('blank', $_POST['fname']);
setcookie('blank', $_POST['fname']);
setcookie('blank', $_POST['fname']);
setcookie('blank', $_POST['fname']);
setcookie('blank', $_POST['fname']);
setcookie('blank', $_POST['fname']);
setcookie('blank', $_POST['fname']);
setcookie('blank', $_POST['fname']);
setcookie('blank', $_POST['fname']);
?>
<!DOCTYPE html>
<html>
<head>
<title></title>
<style>
@import url('css/styles.css');
</style>
</head>
<body>
<div class="main">
<fieldset>
<legend>Information</legend>
///////////// this is just where my info is going
///////////// this is just where my info is going
///////////// this is just where my info is going
///////////// this is just where my info is going
///////////// this is just where my info is going
///////////// this is just where my info is going
///////////// this is just where my info is going
<input type="button" onclick="javascript: location.href = 'form_entry.php'" value="Edit" />
<input type="button" onclick="javascript: location.href = 'form_confirmed.php'" value="Finish" />
</div>
</div>
</fieldset>
</div>
</body>
</html>
//////////////////third form
<?php
setcookie('blank', $_POST['fname']);
setcookie('blank', $_POST['fname']);
setcookie('blank', $_POST['fname']);
setcookie('blank', $_POST['fname']);
setcookie('blank', $_POST['fname']);
setcookie('blank', $_POST['fname']);
setcookie('blank', $_POST['fname']);
setcookie('blank', $_POST['fname']);
?>
<!DOCTYPE html>
<html>
<head>
<title>/title>
<style>
@import url('css/styles.css');
</style>
</head>
<body>
<div class="main">
<h2>Thank you, your data has been submitted.</h2>
</div>
</body>
</html>
Back to comp.lang.php | Previous | Next — Next in thread | Find similar | Unroll thread
Combining forms cobble stone <afor6993@gmail.com> - 2015-02-21 14:28 -0800 Re: Combining forms Jerry Stuckle <jstucklex@attglobal.net> - 2015-02-21 18:15 -0500 Re: Combining forms Denis McMahon <denismfmcmahon@gmail.com> - 2015-02-22 05:27 +0000
csiph-web