| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Mar 2005
Posts: 866
![]() ![]() | |
| |
| | #2 (permalink) |
| NamePros Regular Join Date: Aug 2005 Location: NY, USA
Posts: 608
![]() ![]() ![]() ![]() ![]() ![]() | I would do this: <form action="redirect.php" method="post"> <input type="text" name="page" value="123" /> <input type="submit" /> </form> then on redirect.php: PHP Code: edit: Haven't tested, but should work: Code: <script>
function doSomething (form) {
var pageNum = parseInt(form.page.value);
window.location = "http://www.newdesignworld.com/browse-" + pageNum + ".html";
}
</script>
<form action="" method="post">
<input type="text" name="page" value="123" />
<input type="submit" onClick="doSomething(this.form);" />
</form>
__________________ ask me about the internet
Last edited by Jim_; 03-15-2006 at 02:46 PM.
|
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PPC explained | Cyberian | Domain Newbies | 0 | 01-20-2006 01:46 PM |
| PHP Form Submit Code... | Zoosushi | Programming | 4 | 06-13-2005 01:46 AM |
| Paypal Settlement | CMachuca | The Break Room | 3 | 07-31-2004 10:14 PM |
| PAYPAL Litigation | johnn | Domain Name Discussion | 6 | 07-31-2004 09:51 PM |
| Paypal Settlement | Lord | The Break Room | 2 | 07-30-2004 09:30 PM |