Hey guys,
What I’m trying to do is integrate Sales Force (an account management program) into the code for the “guestbook” page of a website. Sales Force has code that sends the user’s information directly into it’s database, storing it as an account for the customer’s convenience.
So the problem is, I cannot figure out how to execute 2 actions in a single form, with only 1 submit button. Ideally, when the user
clicks the “submit” button, the information will be sent to the salesforce database, as well as print on the guestbook page as a comment.
the guestbook doesn’t go into a database, it goes into a flat-file format that is already on the server ([url]http://www.simplijthy.com/davepatten/guestbook/ardgb18.dat
So this is what I’ve got:
<form method=”post” action=”<?=$self?>”>
<form action=”
<input type=”hidden” name=”oid” value=”00D600000007CmQ” />
<input type=”text” name=”vname” size=”30″ maxlength=”70″ value=”<?=$_SESSION[‘name’]?>”>
<label for=”email”></label><input id=”email” maxlength=”80″ name=”email” size=”20″ type=”text” value=”<?=$_SESSION[’email’]?>”>
<label for=”city”></label><input id=”city” maxlength=”40″ name=”city” size=”20″ type=”text” /><br>
<textarea name=”vcomment” cols=”40″ rows=”7″ wrap=”virtual”><?=$_SESSION[‘comment’]?></textarea>
<input type=”text” name=”vsecc” size=”4″ maxlength=”4″>
<input type=”submit” name=”submit” id=”submit” value=”submit” />
<input type=”reset” value=”Reset”>
<input type=”button” value=”Back” onClick=”window.location='<?=”$self?page=$page”?>'”>
</form>
…if anyone can make any sense of this I will be so freakin happy haha thanks!