PDA

View Full Version : Dynamic Ajax Content & Form..



ThunderLee
11-12-2009, 01:27 AM
1) Script Title:
Dynamic Ajax Content
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
3) Describe problem:
I would like to know how I would use this with a form with 2 input boxs, I changed the action to action="javascript:ajaxpage('shortcut.php?func=shortcutadd', 'shortcut');"
when I press submit the page loads fine into the div but any values from the 2 inputs arn't passed across to the page thats loaded into the div :(, how would I change my code to resolve this?

Full code:
<form STYLE="margin: 0px; padding: 0px;" method="POST" name="shortcuturl" action="javascript:ajaxpage('shortcut.php?func=shortcutadd', 'shortcut');">
<input name="GetURL" type="hidden" id="GetURL" value="<?php echo $url ?>" size="30" />
<input name="GetType" type="hidden" id="GetType" value="<?php echo $thistype; ?>" size="30" />
<input name="GetTitle" type="hidden" id="GetTitle" value="<?php echo $thistitle; ?>" size="30" />
<input type="image" value="Submit" name="Send1" src="images/ShortCut.png">
<a href="#" rel="toggle[bodyupload]" data-openimage="images/Upload1.png" data-closedimage="images/Upload2.png">
<img src="images/Upload1.png" border="0" /></a></form>