Jun 15th, 2011, 10:53 PM (This post was last modified: Jun 16th, 2011, 12:06 AM by NuKa.)
I get the error: Form Tools hasn't received a successful test submission yet. And I don't know what I'm doing wrong? I have followed the installation guide for the multipage form.
But I have a few questions for the installation guide.
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?
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?
Is there someone who would take a look at my code and tell me what I'm doing wrong, please?
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?
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" />
<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>
<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>
I don't know much about php - so maybe this is too big an assignment for me? Should I rather go with the more simple formtool?
The reason is that the ft_api_process_form() function actually redirects from one page to the next, but it can only do so if nothing's been output to the browser when it's called.
The reason is that the ft_api_process_form() function actually redirects from one page to the next, but it can only do so if nothing's been output to the browser when it's called.
- Ben
Sorry Ben, but that don't seem to work either. I still get the "Form Tools hasn't received a successful test submission yet" in step 3 - And I don't know how to get past it? Can you tell me if it is a must to fill the form fields with php? Or will this tool do it for me? I need the last one since my php isn't to good... But please tell me - then I can move on with the more simple (Direct) Tool instead. ... Thank you so much Ben
Hmm...! I'm sure it's some little thing, but it's rather hard to debug without just looking at the form directly.
Any chance you could give me temporary FTP access + Form Tools access so I could look at the form directly on your server? I'll explain exactly what I did to fix it.
(Jul 13th, 2011, 12:37 AM)NuKa Wrote: Hi Ben
Sorry, but did you get my private message with the ftp access?
Best NuKa
Hi Nuka, Ben,
I also struggled with this issue. But I found it. It's a minor thing as Ben said. Look in yuur line where it says:
$fields = ft_api_init_form_page("", "test");
of course you already filled in your number like this:
$fields = ft_api_init_form_page("2", "test");
But the thing is what is still unclear to me is why it's called 'test'.
Because if you change that with 'initialize' you will see that it's going to work. So your line should be: (assuming your number is 2)