Ask a Question related to ASP, Design and Development.
-
Mark #1
Form Problem
Hi,
I've got an intranet site that allows a user to view a
weekly diary on a page. Clicking on an item on a
particular day...fires up a modal window with a form on it
that allows the user to change his details for that day.
Clicking on submit - posts the form to another .asp file
that updates the SQL Server table. Then closes all the
windows and returns back to the original window...forcing
a refresh to display the new days details.
The problem I have is that the modal window that is
displayed...as soon as you click the submit
button...brings up another blank window (the title of
which is the .asp file that the information is posted to).
I don't want this blank window to be shown.
I've tried specifying target in the <form> tag...but it
still does this. Does anyone know how to stop this
happening?
Thanks in advance...
Mark Guest
-
Problem with CFM form.
Hi everyone. I have a website for signing up for an event. It was working fine, but now everytime anyone tries to open the registration page they... -
Simple Form Problem!
Hi, I am using a simple form 2 email program. I ama experienced programmer, But I feel very bad, as I am unable to fix this problem. All seems... -
is this a form problem?
I have been wrestling with this problem for the past couple weeks, and I can't seem to get a solid answer from anyone I talk to...hopefully one or... -
problem with form in php
Hi, i have a problem with a form. In my page there is the following code: ... -
Form Problem ! Please Help !
My form and results are on one page. If I use : if ($Company) { $query = "Select Company, Contact From tblworking Where ID = $Company Order... -
Randy Rahbar #2
Re: Form Problem
> The problem I have is that the modal window that is
Is there an onclick event on your button that's calling a javascript> displayed...as soon as you click the submit
> button...brings up another blank window (the title of
> which is the .asp file that the information is posted to).
function? I'm not sure what else would cause the page to open in a new
window. You may want to post your form code.
Randy Rahbar Guest
-
theDude28 #3
Form Problem
Hi guys I am having a bit of an issue with some forms the problem is that I
have around 6 forms that the user has to submit and they are all on different
pages which have links so that the user can go to whichever form they want and
then submit the data then they are then taken to a page where they can see the
data which they have submitted the problem is though that if they skip a form
and forget to go back to it they will get errors about variables not being
there as that form won't have been submitted and I was just wondering is there
anyway round this problem.
Thanks in advance.
theDude28 Guest
-
sky4est #4
Re: Form Problem
I use something like:
<CFIF IsDefined("VariableName")>
you can use the else to let them know they need to fill out information on another page.
-Sky
sky4est Guest
-
WestSide #5
Re: Form Problem
Hi,
You could also have some temp table or just a table in the database that would
store this data for the users as they fill out each form you would insert the
data into the database. If I was a user and there were 6 forms and i filled
out 5 of them and for some reason my connection dropped, I would expect to come
back to your site and see my data there. You then could have some basic
scheduled task that would clean up the table where you are temporarily storing
user's form data.
You then check if they have data in that table, if so, show it to them
otherwise dont.
Might be a bit more work initially, but pays off in long run.. it all depends
on your requirements, quick and dirty or more thought out...
-Westside
WestSide Guest
-
theDude28 #6
Re: Form Problem
Thanks for that would i use teh cfif in the pages with the form or the page at the end?
theDude28 Guest
-
WestSide #7
Re: Form Problem
For the <cfif> method, I believe you would wrap the fields where you are
getting undefined errors with that code.
<cfif IsDefined("form.firstName")>
...some code ......
</cfif>
That code inside the <cfif> won't execute unless form.firstname is defined.
You might be better of just defining a bunch of <cfparam's>. The <cfparam>
tag sets a variables value if it does not exist as in:
<cfparam form.firstName = "John">
so if form.firstName does not exist, it will be set to "John" by default, so
some people will do <cfparam form.firstName = ""> so its set to empty string,
so the page won't error. Again a few ways to do this..
-WestSide
WestSide Guest



Reply With Quote

