Jump to content


[Snippet] InquiryForm


  • You cannot reply to this topic
35 replies to this topic

#21 Mr. Tech

    Etomite Forum Fan

  • Member
  • Pip
  • 65 posts

Posted 21 November 2007 - 10:40 PM

Thanks for the quick reply Ralph!

You bring up very valid points and that is why you are such a master programmer and I need to come here for help lol! In hopes to answer your questions, I don't need anything complicated. The form is being used to apply for a membership and require that the member include a picture along with membership application.

  • Image should simply be attached to the email
  • Size limit is not a concern except to make sure email client will accept (say 2mb)
  • Image type only needs to be jpg or gif
  • Should be renamed so that it works in Windows platform

In our case, we only need to view the picture and file it with the member profile data. That is why I was thinking it was a simple task, attach an image and send it but I never thought about other platforms, size constraints and so on...

#22 katherholt

    Likes Etomite Forums!

  • Member
  • PipPip
  • 323 posts

Posted 23 January 2008 - 11:08 PM

Is there a way to format this form differently. I have it working here:
http://www.poolinspectorusa.com/free-estimate

Plus, I want First name and Last name to be on the same line.
City and Zip on one line

Also I wanted to put some initial value text in the text field as a hint of what to input.

#23 WP1

    Etomite Forum Fan

  • Member
  • Pip
  • 104 posts

Posted 24 January 2008 - 04:05 AM

View Postkatherholt, on Jan 23 2008, 06:08 PM, said:

Is there a way to format this form differently. I have it working here:
http://www.poolinspectorusa.com/free-estimate

Plus, I want First name and Last name to be on the same line.
City and Zip on one line

Also I wanted to put some initial value text in the text field as a hint of what to input.

I also would like to change the layout of this form.

I have not been able to contact the Developer of the script.

Also, I keep getting a problem page when I submit information.

Katherholt!
  • Are you having any probem submitting information?
  • What code are you using to call the form?
  • How did you get rid of the borders around the boxes?
Thanks in advance for any and all responses to my call for help with this.

WP1

#24 katherholt

    Likes Etomite Forums!

  • Member
  • PipPip
  • 323 posts

Posted 24 January 2008 - 04:25 AM

View PostWP1, on Jan 23 2008, 10:05 PM, said:

I also would like to change the layout of this form.

I have not been able to contact the Developer of the script.

Also, I keep getting a problem page when I submit information.

Katherholt!
  • Are you having any probem submitting information?
  • What code are you using to call the form?
  • How did you get rid of the borders around the boxes?
Thanks in advance for any and all responses to my call for help with this.

WP1
1. No problem submitting
2. [!InquiryForm!] (make sure your page is not 'cacheable' on the publishing tab)
3. To get rid of the borders around the boxes, I removed the "fieldset" code and used a <p>tag instead (see red bold items below):



// ========================================================

if (!function_exists('DisplayField')) {
function DisplayField ($field)
{
// Function to display a field description and input box
$output = ' <p align="left">' . "\n";

// Form field label
$output .= ' <label for="' . $field['name'] . '"';

// Handle required field
if ($field['required'] == 1) {
$output .= ' class="error">*';
} else {
$output .= '>';
}
$output .= $field['descr'] . ":</label>\n";

// Form field input
$output .= ' <input name="' . $field['name'] . '" id="' . $field['name'] . "\"\n";
$output .= ' type="text" maxlength="256" size="' . $field['size'] . '"';

// Initial value of the field
if (isset($_POST[$field['name']])) {
$output .= "\n value=\"" . $_POST[$field['name']] . "\"";
}
$output .= " />\n";

// Handle field explanation
if ($field['explain'] != "") {
$output .= ' <div class="explain"><small>' . $field['explain'];
$output .= "</small></div>\n";
}

// Close this field
$output .= ' </p>' . "\n";

return $output;
}

I modified the code quite a bit, because I didn't need all of it. I've attached a text file for you to view. I could use some help modifying it for layout and perhaps adding some more fields.

Karen

Attached Files



#25 WP1

    Etomite Forum Fan

  • Member
  • Pip
  • 104 posts

Posted 24 January 2008 - 04:35 AM

Thank you so very much!

I think only the Developer can help us with this layout thing. I will continue to try to contact him.

Been working on this a while. With no success

Needed the form for tomorrow.

WP

#26 WP1

    Etomite Forum Fan

  • Member
  • Pip
  • 104 posts

Posted 24 January 2008 - 03:33 PM

Hello!

The form looks OK on the site.

Submits with no problem.

PROBLEM
Not receiving e-mails of submissions.

QUESTION
Any suggestions as to how to troubleshoot or correct this problem?

Thanks for any and all help with this problem.

WP

#27 katherholt

    Likes Etomite Forums!

  • Member
  • PipPip
  • 323 posts

Posted 24 January 2008 - 04:38 PM

Layout - I figured out how to put the form in a chunk and call that chunk into the snippet so that I could format the fields better.

http://www.poolinspectorusa.com/free-estimate

#28 Dean

    Loves Etomite Forums!

  • Admin
  • 4,758 posts
  • Gender:Male

Posted 24 January 2008 - 05:33 PM

Merged Topics Together

#29 WP1

    Etomite Forum Fan

  • Member
  • Pip
  • 104 posts

Posted 24 January 2008 - 08:11 PM

View Postkatherholt, on Jan 24 2008, 11:38 AM, said:

Layout - I figured out how to put the form in a chunk and call that chunk into the snippet so that I could format the fields better.

http://www.poolinspectorusa.com/free-estimate
Hi katherholt!

Your InquiryForm looks really good.

Hoping you will share the "chunk" you used. I am sure I can learn a lot by looking at it. Cannot seem to be getting any headway on my own.

I still cannot get the form to send me an email. I did not change anything in the script you provided except for the email recipients. (At least I cannot remember changing anything else.) ;) :D

I am receiving e-mails from the "kMail" contact form I have on the site.

Again, I ask for help with this problem from anybody.

WP

#30 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

Posted 25 January 2008 - 02:39 PM

View PostWP1, on Jan 24 2008, 03:11 PM, said:

Again, I ask for help with this problem from anybody.

WP


If nobody else responds regarding your problem, I might be able to look into it next week... If I try any sooner Ian (cathode) would probably do terrible things to me as I have a backlog of work to get done due to recent back problems... It shouldn't be anything major if other mailers are working...

#31 katherholt

    Likes Etomite Forums!

  • Member
  • PipPip
  • 323 posts

Posted 25 January 2008 - 03:32 PM

View PostWP1, on Jan 24 2008, 02:11 PM, said:

Hi katherholt!

Your InquiryForm looks really good.

Hoping you will share the "chunk" you used. I am sure I can learn a lot by looking at it. Cannot seem to be getting any headway on my own.

I still cannot get the form to send me an email. I did not change anything in the script you provided except for the email recipients. (At least I cannot remember changing anything else.) ;) :D

I am receiving e-mails from the "kMail" contact form I have on the site.

Again, I ask for help with this problem from anybody.

WP

On the email recipients - be really careful you don't remove the single apostrophes around the name:
$address_to = 'yourname@xxx.com';

I took an idea from kMail snippet and put my form in a chunk called {{mail-form}} (attached) - I also modified the snippet somewhat (attached - there may be extra items in the form, but I think I commented them out the best I knew how - I didn't want to break the form). I couldn't figure out how to add a field, but this worked. Also attached is a screen capture of the form, in case the website changes pages.

The chunk {{mail-form}} wouldn't upload - so here is the code:

<table width="284"><tr>
<td width="88" valign="bottom"><div align="left"><strong>Name <font color="red">*</font>&nbsp;</strong></div></td>
<td width="92" align="left" valign="bottom"><input name="cust_firstname" type="text" id="cust_firstname" value="First" size="15" maxlength="30">
</input></td>
<td width="88" align="left" valign="bottom"><font color="red">
<input name="cust_lastname" type="text" id="cust_lastname" value="Last" size="10" maxlength="30">
</font></td>
</tr>
<tr>
<td valign="bottom"><div align="left"><strong>Address <font color="red">*</font>&nbsp;</strong></div></td>
<td colspan="2" align="left" valign="bottom"><input name="cust_address" type="text" id="cust_address" size="30" maxlength="30">
</input></td>
</tr>
<tr>
<td valign="bottom"><div align="left"><strong>City <font color="red">*</font>&nbsp; </strong></div></td>
<td align="left" valign="bottom"><input name="cust_city" type="text" id="cust_city" size="15" maxlength="30"></td>
<td align="left" valign="bottom"><strong>ZIP Code<font color="red">*<br>
</font></strong>
<input name="cust_zip" type="text" id="cust_zip" size="10" maxlength="30"></td>
</tr>

<tr>
<td valign="bottom" nowrap><div align="left"><strong>Daytime Phone </strong></div></td>
<td colspan="2" align="left" valign="bottom"><input name="cust_dayphone" type="text" id="cust_dayphone" size="30" maxlength="30"></input></td>
</tr>
<tr>
<td valign="bottom" nowrap><div align="left"><strong>Evening Phone </strong></div></td>
<td colspan="2" align="left" valign="bottom"><input name="cust_evephone" type="text" id="cust_evephone" size="30" maxlength="30"></td>
</tr>
<tr>
<td valign="bottom" nowrap><div align="left"><strong>Email <font color="red">*</font></strong></div></td>
<td colspan="2" align="left" valign="bottom"><input name="cust_email" type="text" id="cust_email" size="30" maxlength="30"></td>
</tr>
</table>

Karen

Attached Files


Edited by katherholt, 25 January 2008 - 03:39 PM.


#32 WP1

    Etomite Forum Fan

  • Member
  • Pip
  • 104 posts

Posted 26 January 2008 - 02:05 PM

View PostRalph, on Jan 25 2008, 09:39 AM, said:

If nobody else responds regarding your problem, I might be able to look into it next week... If I try any sooner Ian (cathode) would probably do terrible things to me as I have a backlog of work to get done due to recent back problems... It shouldn't be anything major if other mailers are working...

Thanks Ralph!

First off, I hope you feel better. Take care of yourself first.

Whenever you are able, I could really use some help with this. I installed the template "chunk" by katherholt and the form looks great on the page, but, it still does not send emails after submission . Therefore, the problem continues.

WP1

#33 WP1

    Etomite Forum Fan

  • Member
  • Pip
  • 104 posts

Posted 26 January 2008 - 02:15 PM

Thanks katherholt!

The form layout looks great on the page.

The form just will not send submissions. Ralph indicated that he will try to help.

I will keep "playing" with it but, I doubt if I will find the answer before Ralph helps me. :lol: :D

WP1

#34 dawber

    Etomite Forum Newbie

  • Member
  • 3 posts

Posted 30 October 2008 - 02:56 AM

Hi,

I have been trying to get the form to attach an image from a file field, to the email that it generates. The image doesn't need to show in the email, I just want it to be attached. The file size limit is 2mb. I have tried a couple of different scripts to get it working but have not had any success. Just wondering if anybody else has had any luck with this or could offer some help.

Thanks a lot
will

#35 Cris D.

    Loves Etomite Forums!

  • Developers
  • PipPipPipPip
  • 1,104 posts
  • Gender:Male

Posted 30 October 2008 - 09:13 AM

You might be able to integrate the front-end file manager snippet to upload a file, store the file id that was stored in the table then include that file url in the email by querying the table. That will mean just sending the hotlinked URL in the email and all upload filesizes/ restrictions etc can be handled by the snippet. A little flow code is all that is needed to control the upload, then send email. Otherwise, there is another snippet "Uploadform" that could help. It's a little clunky with the integrated error code, but it could work.

Edited by Cris D., 30 October 2008 - 09:20 AM.


#36 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

Posted 30 October 2008 - 12:53 PM

I think you need to do a Google for "php file uploads" or something similar... There are a lot of different pieces parts involved even if you aren't saving the uploads to the server... It's a bit beyond the scope if this particular thread, but might be worth discussing in a thread of its own...





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users