Hi everyone!
I am trying to submit a form and I have 6 hidden fields that I need to populate with the values of the other form fields. I do not have access to the file that is used in the form action.
Here is what I have so far:
Any help would really be appreciated. I have been trying to figure this out for a long time!PHP Code:
<form action="" method="POST">
<fieldset>
<legend>Submission Form</legend>
<input type=hidden name="oid" value="00D400000009oFt">
<input type=hidden name="retURL" value="http://thankyou">
<input id="company" maxlength="40" name="company" size="20" type="hidden" value="<?php echo $_POST['00N40000002E7Lc']; ?>" />
<input id="last_name" maxlength="80" name="last_name" size="20" type="hidden" value="<?php echo $_POST['00N40000002E7KQ']; ?>"/>
<input id="phone" maxlength="40" name="phone" size="20" type="hidden" value="<?php echo $_POST['00N40000002E7KL']; ?>"/>
<input id="URL" maxlength="80" name="URL" size="20" type="hidden" value="<?php echo $_POST['00N40000002E7KW']; ?>"/>
<input id="email" maxlength="80" name="email" size="20" type="hidden" value="<?php echo $_POST['00N40000002E7KM']; ?>"/>
<input id="fax" maxlength="40" name="fax" size="20" type="hidden" value="<?php echo $_POST['00N40000002E7KR']; ?>"/>
<input name="lead_source" type="hidden" id="lead_source" value="form">
<label>Preferred URL:</label><input name="00N40000002E7KK" type="text" id="00N40000002E7KK" value="http://www.google.com/" size="20" maxlength="255" /><br>
<label>Business Name:</label><input id="00N40000002E7Lc" maxlength="200" name="00N40000002E7Lc" size="20" type="text" /><br>
<label>Contact Person:</label><input id="00N40000002E7KQ" maxlength="200" name="00N40000002E7KQ" size="20" type="text" /><br>
<label>Business Phone Number:</label><input id="00N40000002E7KL" maxlength="40" name="00N40000002E7KL" onKeyDown="formatPhoneOnEnter(this, event);" size="20" type="text" /><br>
<label>Business Fax Number:</label><input id="00N40000002E7KR" maxlength="40" name="00N40000002E7KR" onKeyDown="formatPhoneOnEnter(this, event);" size="20" type="text" /><br>
<label>Business Address:</label><textarea id="00N40000002E7KV" name="00N40000002E7KV" type="text" wrap="soft"></textarea><br>
<label>Business Email Address:</label><input id="00N40000002E7KM" maxlength="80" name="00N40000002E7KM" size="20" type="text" /><br>
<label>Business Website:</label><input id="00N40000002E7KW" maxlength="255" name="00N40000002E7KW" size="20" type="text" /><br>
<label>Hours of Operation:</label><input id="00N40000002E7KX" maxlength="200" name="00N40000002E7KX" size="20" type="text" /><br>
<label>Services:</label><textarea id="00N40000002E7KS" name="00N40000002E7KS" rows="3" type="text" wrap="soft"></textarea>
<label>Tags:</label><textarea id="00N40000002E7LS" name="00N40000002E7LS" rows="3" type="text" wrap="soft"></textarea><br>
<label>About:</label><textarea id="00N40000002E7LX" name="00N40000002E7LX" rows="3" type="text" wrap="soft"></textarea><br>
<input type="submit" name="submit">
</fieldset>
</form>



Reply With Quote

Bookmarks