Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 165
  • Last Modified:

FP 2k3 and forms (changing what a form looks like and what it will do) probably a SIMPLE fix ???

Hi: I have a FP website hosted on the web.  Inside of my site, I have a web form that is working JUST fine.  Getting that form to work was another issue all together, but it is working fine now.

What my question is (actually a four part question):

#1:  I have a field inside my web form that 'asks' for the DATE to be typed in.  Is there anyway to have this field automatically 'populated' with the correct date, so that the end-user does not have to worry about typing it in (or worse typing in the wrong date)?  Also, can the 'exact' time of day be a field along with the DATE too?

#2:  When an end-user fills out the form, the results of the form are emailed to me directly.  This is what I want it to do, but I would like for the SUBJECT line of the email I receive to have the NAME of the person who filled out the form (ex. the name is one of the 6 or 7 fields I have inside the form).  

I would like this because once I receive the email; I have to OPEN it up to SEE whose name is inside ... If this was PART of the SUBJECT of the email, I would save myself a lot of time consuming steps.

#3: How do I make a FIELD inside the form 'mandatory' to be filled out; otherwise, the form cannot be sent?

#4:  I noticed inside my form (when viewed LIVE on the web) that some of the fields BOXES have a YELLOW background to them.  I've also noticed this yellow background on other forms that I've filled out on other websites.  I've just recently started seeing these yellow 'boxes', and I was wondering if they were any indication of something  

Thanks in advance for your time and any reply.

PugDog_Fan
0
pugdog_fan
Asked:
pugdog_fan
  • 9
  • 6
  • 3
1 Solution
 
hhammashCommented:
Hi,

#1- If your page is ASP you can put this value in the field:
<%=date()%>

If you want date and time in one field put this in the field value:
<%=Now()%>

#2- You can't do that

#3- Double click the field,  Click Validate Button,  Check Required Check Box

#4- Double click the field, Click Style, Click Format, Click Shading and see if
the yellow background is selected.

hh


0
 
hhammashCommented:
Hi,

You don't need to show the date field.  Just keep it hidden.

Submit the form to the email
Select saved fields
Select the date and time format

In this case you will get the date automatically.

hh
0
 
pugdog_fanAuthor Commented:
Are your instructions the same for standard (non ASP) pages?  I have a web page with a form that is hosted on a web server online that has FP extensions installed.

I tried some of your steps, but they didn't see to work ...

After I hear back from you, I will let you know what I find out.

0
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
rcmbCommented:
Are you limited to non-ASP?

If you can use ASP then making the name part of the subject is an easy process. Find out if you can use ASP with your hosting company.

RCMB
0
 
hhammashCommented:
No you can  use them without an ASP page.  Use Timestamp as a hidden field.

0
 
pugdog_fanAuthor Commented:
rcmb:

I emailed my hosting company to see if my account supports ASP.  If it does, what type of front end program do I have to have to create an ASP?

Does Front Page work when creating a page under ASP?
0
 
rcmbCommented:
FrontPage will create all the asp files you desire. ASP is really just html code that runs server side. You have a great deal of flexability with ASP and make the web more interactive and reactive to your desires.

RCMB
0
 
rcmbCommented:
It is pretty easy to test right now.

Open a blank page and switch to html view:

After the <body> tag enter

<%=Date%>

save the file to your website as date_test.asp

Now open the page from your website in your browser.

If you see today's date then your webhost supports ASP.

RCMB
0
 
pugdog_fanAuthor Commented:
RCMB:

I got word back from the hosting provider just now that they do NOT support ASP on any of the hosted servers.  They all run Red Hat Linux, so that might have something to do with it (ha ha ha).

So, either I go to another provider, or figure out some other way to get the things I want my form to do.

I guess basically, if I could get the DATE auto-populated and the mandatory field reqiurments then I would be ok with that.

I sure would have liked to get the form submitter's NAME field as the subject line in the email reply, but I can understand if that is not do-able.

0
 
hhammashCommented:
Just save the page name as .asp

Suppose the page name is SubmitForm.htm
Change it to  SubmitForm.asp

It does not matter if you are using databases or not.  Just name the page as ASP and the code I gave you will work just fine.

hh
0
 
pugdog_fanAuthor Commented:
hammash:

Ok ... I will test that right now.

0
 
hhammashCommented:
If the Host supports asp you will only need to save the page as .asp  don't worry.
0
 
hhammashCommented:
I got your last post,  ASP will not work.  You will either need HTML or PHP

0
 
pugdog_fanAuthor Commented:
hammash:

I created a new page on my site called:

testing.asp

I put in the following line of text:

<%date%>

I then uploaded the file to my hosted site.  When I go the URL of testing.asp, the script did NOT convert to today's date.  I actually shows the syntax <%date%> on the screen.
0
 
hhammashCommented:
0
 
pugdog_fanAuthor Commented:
I went back and changed it from <%date%> to <%=Date&> but same non working result.

Thanks for the URL link to the forms tutorial.
0
 
hhammashCommented:
Hi,

Open a new page
Copy this code to Notpad

<?php
// Prints something like: Wednesday
echo date("l");

// Prints something like: Wednesday 15th of January 2003 05:51:38 AM
echo date("l dS of F Y h:i:s A");

// Prints: July 1, 2000 is on a Saturday
echo "July 1, 2000 is on a " . date("l", mktime(0, 0, 0, 7, 1, 2000));
?>

Copy the code from notepad and put it after <body> in your page
Save the page as phptest.php
Then open the page Live
If your see a date that means your host supports php.  If they do,  I think you better move your question to PHP section where they will definitely give you a solution for your email.

PHP on Linux server is automatically setup to send emails in professional ways.

Good luck
0
 
hhammashCommented:
To move the question to PHP section:

Don't worry about the title of the question because Frontpage can be configured to be a text editor that can write PHP pages.

1- Copy the full URL of this question
2- Click on Support
3- Post a question for EE support
4- Ask them to move the question from here to the PHP section
5- Paste the URL that you copied from here

hh
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

  • 9
  • 6
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now