hi..i dunno if i got the right forum...anyway i need help from u guys if are pro in dreamweaver...want to know izzit possible if i am building a transaction page with a table showing the product that a user that added to cart like this...
izzit possible if i check the remove box but i only remove the price?ok there is suppose to be 2 prices..1 is price and 1 is sample price..it can allow user to either buy the product or take the product for free...sample price is always 0 which means they no need to pay if there is only sample price without the price column...i knw dreamweaver doesnt easily allow inserting 2table in 1 form..i need help!!!plzzz
I don't understand your problem, and the picture in your post is not loading. Can you be more detailed in your description?
ar..i created a database with 2 prices..let say: 1 is cost price and the other is sample price..sample price is $0 and cost price is the actual price of that product...so when a user browse the product and add it to cart the cart table will have 2 prices.."sample" and "cost" price...so now if i am the user..i dun wan to buy the product..instead i only wan to take the product at $0...izzit possible the user can remove the cost price on the table and show only the sample price?? everything is in 1 table only...coz if i got 1 table and a remove item from cart link..when i check it will remove the whole product...
and and...does anyone know how to make breadcrumbs using dreamweaver or display greeting message when user login?those "welcome [username]" thingy?i damn noob but i need it for my project..need help seriously...
thanks all!
Before we continue, may I know are you using PHP and MySQL or other technologies in your project? And, it will be easier for me to understand if you just paste the code for your cart here or PM it to my inbox.
As for the greeting message, assuming you're using PHP and have created a login form via Dreamweaver, look out for this line:
//declare two session variables and assign them
$_SESSION['MM_Username'] = $loginUsername;
$_SESSION['MM_UserGroup'] = $loginStrGroup;
Take note of the name of the session variable that stores the username, and insert it in the HTML code like this:
<p>Welcome, <?=$_SESSION['MM_Username']?>.</p>
And you can go on adding if() conditional statements to display something else if the user is not logged in but that's for another day.
I'm not sure if this is what you're looking for in regards to creating a breadcrumb trail via Dreamweaver, but for me, I would code it by hand as it's simpler and more flexible. Drop me a message anytime you need help with this.
You can have so many tables you want in a form. Dreamweaver does not restrict the number of tables you can have in a form.
<form name="hoohaa.com.sg" method="post" action="http://www.hoohaa.com.sg">
<table>
<tr>
<th>Item Description</th>
<th>Price</th>
</tr>
<tr>
<td>Item One</th>
<td>$0</th>
</tr>
</table>
<table>
<tr>.....</tr>
</table>
</form>
As you can see from above sample codes, you can add as many tables as you want, it all depends on how you layout your design. If it be more helpful if you can give us a screen shot of your shopping cart.
As for the Welcome <username>, if you are using ASP it is very straight forward:
session("username") = <%=username%>
Then in the html, just put Welcome <%=session("username")%>. And this can be used throughout the website until the session expires or the user logs out from the system.
Hope this helps.
Moderator's note: Your signature has been removed. Advertising is not allowed.