Link to home
Start Free TrialLog in
Avatar of pugdog_fan
pugdog_fan

asked on

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
Avatar of hhammash
hhammash

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


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
Avatar of pugdog_fan

ASKER

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.

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
No you can  use them without an ASP page.  Use Timestamp as a hidden field.

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?
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
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
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.

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
hammash:

Ok ... I will test that right now.

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

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.
I went back and changed it from <%date%> to <%=Date&> but same non working result.

Thanks for the URL link to the forms tutorial.
ASKER CERTIFIED SOLUTION
Avatar of hhammash
hhammash

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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