Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
11-01-2006, 04:26 AM #1
- Join Date
- Aug 2006
- Thanked 0 Times in 0 Posts
I'm fairly new to the web development thing so I need a little direction. I'm creating an in-house Tech Ticket System and from the .asp form with an SQL Server I'm wanting to display a confirmation page with the data collected from the form. I assume I would setup some global variables that is setup within the form but how do I establish global variables and/or pass them onto a confirmation page?
11-01-2006, 09:32 AM #2
- Join Date
- Oct 2006
- United Kingdom
- Thanked 30 Times in 29 Posts
Since you are using a form, and passing information to another page (in this case, confirmation page as you called it), you can always pass data in hidden input fields that is not visible to users.
for example, let say that you want to pass the userID, but you don't want the user to see it. Then you can do the following.
in your confirmation page, you can obtain this value via asp, or any other scripting language you choose to use, and echo it out within <script> tags. here is an example in php, as I am not familiar with ASP.PHP Code:
<form method="GET" ....>
<input type="hidden" name="userID" value="value of user id here" />
...other input fields here
$userID = $_GET['userID'];
echo "var userID = " . $userID;
As for editors, I think DreamWeaver is very good when it comes to scripting. It supports PHP, ASP, JSP and other languages.
Check out this page, which provides video tutorials for DreamWeaver.
All the best.