PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I need a form to contact a URL with a specific output but I do not know how to strip out the unnecessary symbols.
Here is a copy of the form:
[syntax="html"]
<form method="get" name="Request" action="http://website.com/12345/">
<input name="" value="" type="hidden">
<table align="center" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td>
<table class="formTable" align="center" border="0" cellpadding="0" cellspacing="0">
</table>
<table class="formTable" align="center" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="label" valign="middle"><label for="">Number:</label></td>
<td align="left">
<input size="10" maxlength="10" name="/" value="" type=""> </td>
</tr></tbody></table><table align="center" border="0"></tbody>
<tr><td class="globalButtons" align="right" width="100%">
<button type="submit"><b>Request</b></button></td></tr></tbody></table>
</td></tr></tbody></table>
</form>
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
It looks like your on the right track, but I still can not get it to work.
Using the post method the "entered value is not added to the URL.
The website requires the value to be entered like this: http://www.website.com/1234/value from form output
It must not contain any symbols, only the integer added from the form.
I hope this helps clarify...
Thanks for any assistance,
Richard Cook
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
what about removing the / from the input name. Not a very good way to name your fields:
modified code
[syntax="html"]
<form method="get" name="Request" action="http://website.com/12345/">
<input name="secret" value="" type="hidden">
<table align="center" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td>
<table class="formTable" align="center" border="0" cellpadding="0" cellspacing="0">
</table>
<table class="formTable" align="center" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="label" valign="middle"><label for="">Number:</label></td>
<td align="left">
<input size="10" maxlength="10" name="number" value="" type=""> </td>
</tr></tbody></table><table align="center" border="0"></tbody>
<tr><td class="globalButtons" align="right" width="100%">
<button type="submit"><b>Request</b></button></td></tr></tbody></table>
</td></tr></tbody></table>
</form>
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]