General discussion

Locked

Form Question and Query Button

By rsp05 ·
Hi:

I have designed a single form in ASP/HTML that already has a submit button, which does its function (insert data into DB and display entered data on screen) Now, I need to put an additional button - a query button, which will have another user form to fill out and submit it as a query to the database. Since I am not a great programmer - there may be better method - I am at least looking for a way to have a button, other than submit, once clicked, goto another page (which will have the query form). This should be simple, but I am not familiar with this. Please help me. Thanks!

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Form Question and Query Button

by nikki96 In reply to Form Question and Query B ...

<input type="button" name="queryBtn" id="queryBtn" value="Query" onClick="window.location.href='http://www.myNewPage.html'">
<noscript>
Click <a href='http://www.myNewPage.html'>here</a> to go to the query page.
</noscript>

Put that in your form. Change the value to whatever you want the button to display as text and the location of the page to your query page.

Nikki

Collapse -

Form Question and Query Button

by rsp05 In reply to Form Question and Query B ...

Yahooo! Thank you so much! That did the trick. I removed the <noscript> stuff, b/c that was redundant. Regards!

Collapse -

Form Question and Query Button

by rsp05 In reply to Form Question and Query B ...

This question was closed by the author

Back to Web Development Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums