Jun 29th, 2011, 11:32 PM
(Jun 17th, 2011, 2:31 AM)Ben Wrote: Hi Nuka,
Sorry for the wait!
Quote:In step 1 it says that in the form attribute it should look like this:
<form action="<?php echo $_SERVER["PHP_SELF"]?>" method="POST"> Does that apply for all my pages with the multipage form? it's only mentioned in step 1?
Yup! All forms.
Quote:In step 2 it says that the php to insert should be in the top of the page where it should be inserted to the top of the form in step 1. Is it important where the php is inserted. I've tried both - but nothing works?
For this, I'll need to see your code, I'm afraid. Would you mind posting your page 2 HTML + PHP?
- Ben
Hi Ben
Thank you for getting back - and sorry that I'm slow at getting back to you. But I've tried to run the installation again and again - and still I get the "Form Tools hasn't received a successful test submission yet."
But heres' my code for page 1:
PHP Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Welcome to ads.veromoda.com</title>
<link href="CSS/ads-style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #EEE;
}
h1 {
font-size: 14px;
}
h2 {
font-size: 10px;
}
h1,h2,h3,h4,h5,h6 {
font-family: Arial, Helvetica, sans-serif;
</style>
</head>
<body>
<div id="container">
<div id="header"></div>
<div id="content">
<div class="VM-adsservice-pic"></div>
<form action="<?php echo $_SERVER["PHP_SELF"]?>" method="POST">
<?php
require_once("formtools/global/api/api.php");
$fields = ft_api_init_form_page("", "test");
$params = array(
"submit_button" => "submit_order1",
"next_page" => "choose-image.php",
"form_data" => $_POST
);
ft_api_process_form($params);
print_r($fields);
?>
<table width="765" border="0" align="left">
<tr>
<td colspan="3" align="left"><h1>To order printed material please fill out the form below:</h1>
<p> </p></td>
</tr>
<tr>
<td colspan="3" align="left">
Fields marked with * are mandatory:
</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td align="left"><strong>Shopnumber</strong>: *</td>
<td align="left"><strong>Shopname</strong>: *</td>
<td> </td>
</tr>
<tr>
<td align="left"><input type="text" name="shopnumber" id="shopnumber" /></td>
<td align="left"><input type="text" name="shopname" id="shopname" /></td>
<td> </td>
</tr>
<tr>
<td align="left"> </td>
<td align="left"> </td>
<td align="left"> </td>
</tr>
<tr>
<td colspan="2" align="left"><strong>Deadline</strong>: <br />
<span id="result_box" lang="en" xml:lang="en"><span title="Klik her for at få vist alternative oversættelser">When</span> must the material be received by the shop or magazine/newzpaper*</span></td>
<td> </td>
</tr>
<tr>
<td align="left"><input type="text" name="deadline" id="deadline" /></td>
<td align="left"> </td>
<td align="left"> </td>
</tr>
<tr>
<td align="left"></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td colspan="3" align="left"><strong>Type of material</strong>: <br />
This is important when creating the print ready pdf-file</td>
</tr>
<tr>
<td colspan="3"><div>
<fieldset>
<table width="700" border="0" align="center">
<tr>
<td width="185" align="left">
<input type="checkbox" name="media[]" value="Ad for newspaper" />
Ad for newspaper </td>
<td width="185" align="left">
<input type="checkbox" name="media[]" value="Ad for magazine" />
Ad for Magazine
</td>
<td width="185" align="left">
<input type="checkbox" name="media[]" value="Flyer" />
Flyer</td>
<td width="185" align="left">
<input type="checkbox" name="media[]" value="Poster" />
Poster</td>
</tr>
</table>
</fieldset>
</div>
</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td align="left"><strong>Measurements (in milimeters):</strong></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td><strong>Width</strong>: *</td>
<td><strong>Height</strong>: *</td>
<td> </td>
</tr>
<tr>
<td><input type="text" name="width" id="width" /></td>
<td><input type="text" name="height" id="height" /></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td><strong>Text, Quotes, etc.</strong></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td colspan="3"><textarea name="textarea" id="textarea" cols="45" rows="5"></textarea></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td align="right"><input type="submit" name="submit_order1" id="submit_order1" value="Go to step 2" /></td>
</tr>
</table>
</form>
</div></div>
</body>
</html>
PHP Code:
<?php
require_once("formtools/global/api/api.php");
$fields = ft_api_init_form_page();
$params = array(
"submit_button" => "submit_order2",
"next_page" => "thank-you.php",
"form_data" => $_POST,
"no_sessions_url" => "http://ads.veromoda.com/index.php",
"finalize" => true
);
ft_api_process_form($params);
print_r($fields);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Choose your desired image</title>
<link href="CSS/ads-style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #EEE;
}
h1 {
font-size: 14px;
}
h2 {
font-size: 10px;
}
h1,h2,h3,h4,h5,h6 {
font-family: Arial, Helvetica, sans-serif;
</style>
</head>
<body>
<div id="container">
<div id="header"></div>
<div id="content">
<div class="VM-adsservice-pic"></div>
<form action="<?php echo $_SERVER["PHP_SELF"]?>" method="POST">
<table width="765" border="0">
<tr>
<td colspan="3"><h1>Choose an image of your desire:<br />
<br />
</h1></td>
</tr>
<tr>
<td width="255"><strong>Autumn 2011</strong>: Feminine</td>
<td width="255"> </td>
<td width="255"> </td>
</tr>
<tr>
<td colspan="3" align="center">
<fieldset>
<table width="700" id="Autumn1-Femi">
<tr align="center" valign="top">
<td>
<p><img src="images/Style-images/Autumn1/Autumn-01_Femi-01_2011.jpg" alt="" width="315" height="135" /></p>
<p>
<input type="radio" name="Autumn-01_Femi" value="Autumn-01_Femi-01" />
</label>
</p></td>
<td>
<p><img src="images/Style-images/Autumn1/Autumn-01_Femi-02_2011.jpg" alt="" width="361" height="135" /></p>
<p>
<label>
<input type="radio" name="Autumn-01_Femi" value="Autumn-01_Femi-02" />
</label>
</p></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr align="center" valign="top">
<td><p><img src="images/Style-images/Autumn1/Autumn-01_Femi-03_2011.jpg" alt="" width="309" height="135" /></p>
<p>
<label>
<input type="radio" name="Autumn-01_Femi" id="Bestseller_June-July_" value="Autumn-01_Femi-03" />
</label>
</p></td>
<td><p><img src="images/Style-images/Autumn1/Autumn-01_Femi-04_2011.jpg" alt="" width="110" height="135" /></p>
<p>
<label>
<input type="radio" name="Autumn-01_Femi" id="Bestseller_June-July_2" value="Autumn-01_Femi-04" />
</label>
</p></td>
</tr>
<tr align="center" valign="top">
<td> </td>
<td> </td>
</tr>
<tr align="center" valign="top">
<td><p><img src="images/Style-images/Autumn1/Autumn-01_Femi-05_2011.jpg" width="264" height="135" /></p>
<p>
<label>
<input type="radio" name="Autumn-01_Femi" id="Autumn1-femi" value="Autumn-01_Femi-05" />
</label>
</p></td>
<td><p><img src="images/Style-images/Autumn1/Autumn-01_Femi-06-face_2011.jpg" width="315" height="135" /></p>
<p>
<label>
<input type="radio" name="Autumn-01_Femi" id="radio" value="Autumn-01_Femi-06" />
</label>
</p></td>
</tr>
</table></fieldset></td>
</tr>
<tr>
<td width="255"> </td>
<td width="255"> </td>
<td width="255"> </td>
</tr>
<tr>
<td><strong>Bestsellers</strong>: June - July</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td colspan="3" align="center">
<fieldset>
<table width="700" id="Bestsellers">
<tr align="center" valign="top">
<td><p><img src="images/Style-images/Bestsellers/S11_VM_JuneJuly_01.jpg" width="90" height="135" /></p>
<p>
<label>
<input type="radio" name="Bestsellers_June_July" value="S11_VM_JuneJuly_01" />
</label>
</p></td>
<td><p><img src="images/Style-images/Bestsellers/S11_VM_JuneJuly_02.jpg" width="90" height="135" /></p>
<p>
<label>
<input type="radio" name="Bestsellers_June_July" value="S11_VM_JuneJuly_02" />
</label>
</p></td>
<td><p><img src="images/Style-images/Bestsellers/S11_VM_JuneJuly_03.jpg" width="90" height="135" /></p>
<p>
<label>
<input type="radio" name="Bestsellers_June_July" value="S11_VM_JuneJuly_03" />
</label>
</p></td>
<td><p><img src="images/Style-images/Bestsellers/S11_VM_JuneJuly_04.jpg" width="203" height="135" /></p>
<p>
<label>
<input type="radio" name="Bestsellers_June_July" value="S11_VM_JuneJuly_04" />
</label>
</p></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr align="center" valign="top">
<td><p><img src="images/Style-images/Bestsellers/S11_VM_JuneJuly_05.jpg" width="90" height="135" /></p>
<p>
<label>
<input type="radio" name="radio" id="Bestseller_June-July_5" value="S11_VM_JuneJuly_05" />
</label>
</p></td>
<td><p><img src="images/Style-images/Bestsellers/S11_VM_JuneJuly_06.jpg" width="203" height="135" /></p>
<p>
<label>
<input type="radio" name="radio" id="Bestseller_June-July_6" value="S11_VM_JuneJuly_06" />
</label>
</p></td>
<td><p><img src="images/Style-images/Bestsellers/S11_VM_JuneJuly_07.jpg" width="90" height="135" /></p>
<p>
<label>
<input type="radio" name="radio" id="Bestseller_June-July_7" value="S11_VM_JuneJuly_07" />
</label>
</p></td>
<td> </td>
</tr>
</table>
</fieldset>
</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td align="right"><input type="submit" name="submit_order2" id="submit_order2" value="Order the printed material" /></td>
</tr>
<tr>
<td width="255"> </td>
<td width="255"></td>
<td width="255"></td>
</tr>
</table>
</form>
</div></div>
</body>
</html>
PHP Code:
<?php
require_once("formtools/global/api/api.php");
$fields = ft_api_init_form_page();
ft_api_clear_form_sessions();
print_r($fields);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>ads.veromoda.com</title>
<link href="CSS/ads-style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body {
margin-left: 0px;
margin-top: 10px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #EEE;
}
h1 {
font-size: 14px;
}
h2 {
font-size: 10px;
}
h1,h2,h3,h4,h5,h6 {
font-family: Arial, Helvetica, sans-serif;
}
</style>
</head>
<body>
<div id="container">
<div id="header"></div>
<div id="content">
<div class="VM-adsservice-pic"></div>
<form action="<?php echo $_SERVER["PHP_SELF"]?>" method="POST">
<table width="765" border="0">
<tr>
<td colspan="3"><h1>VERO MODA Marketing thank you for your order</h1>
The order has been received and you will have the layout to your approval a day or two before deadline.<br />
The price of the material includes two approvals.
<br />
<br />
Have a nice day.<br />
VERO MODA Marketing<br /></td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td width="255"> </td>
<td width="255"> </td>
<td width="255"> </td>
</tr>
</table>
</form>
</div></div>
</body>
</html>
Thanks in advance