Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #14959 > unrolled thread
| Started by | cobble stone <afor6993@gmail.com> |
|---|---|
| First post | 2015-02-21 14:28 -0800 |
| Last post | 2015-02-22 05:27 +0000 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.lang.php
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
| From | cobble stone <afor6993@gmail.com> |
|---|---|
| Date | 2015-02-21 14:28 -0800 |
| Subject | Combining forms |
| Message-ID | <521b9744-e069-4f53-ad35-da83c089d94e@googlegroups.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>
[toc] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2015-02-21 18:15 -0500 |
| Message-ID | <mcb3gl$289$1@dont-email.me> |
| In reply to | #14959 |
On 2/21/2015 5:28 PM, cobble stone wrote: > 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. > > PHP doesn't have forms. HTML has forms. That's where you need to start. Code your HTML properly (see the appropriate newsgroup if you need help there). Once you have the HTML correct, processing it with PHP should be easy. -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | Denis McMahon <denismfmcmahon@gmail.com> |
|---|---|
| Date | 2015-02-22 05:27 +0000 |
| Message-ID | <mcbpbo$rp4$2@dont-email.me> |
| In reply to | #14959 |
On Sat, 21 Feb 2015 14:28:03 -0800, cobble stone wrote: > 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. Do you mean you have 3 html pages with different forms on each page, and you want to process them all using the same php script? Or do you mean you want to combine 3 html forms on different pages into a single html form on one page? Or do you mean something else? -- Denis McMahon, denismfmcmahon@gmail.com
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.php
csiph-web