| | |
Mail form Subject Help
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Hi,
So I'm creating a website for clients that have tons of different courses available, they have opted to not place any course outlines within the site and instead, make the interested party request it via a email.
Now, here is where my problem comes in, I would like to create just one script, that handles all the requests and the subject should just change.
E.g
Excel 2003 Level 1
Excel 2003 Level 2
Excel 2003 Level 3
Excel 2007 Level 1
When the user clicks on Excel 2003 Level 1, i would like a window to popup, with my default form,
I hope any of this made sense if not, please ask and i will try explain better.
I would appreciate any help at all.
Thanks alot.
So I'm creating a website for clients that have tons of different courses available, they have opted to not place any course outlines within the site and instead, make the interested party request it via a email.
Now, here is where my problem comes in, I would like to create just one script, that handles all the requests and the subject should just change.
E.g
Excel 2003 Level 1
Excel 2003 Level 2
Excel 2003 Level 3
Excel 2007 Level 1
When the user clicks on Excel 2003 Level 1, i would like a window to popup, with my default form,
<form action="req_out.php" method="post" name="form1" class="course_header style1 style2">
Request course outline
</form> </td>
</tr>
<tr>
<td width="12%" bgcolor="#04508E" class="content style1">Email Address :</td>
<td width="17%" bgcolor="#04508E"><input name="email" type="text" class="content" id="email"></td>
<td width="10%" bgcolor="#04508E"><span class="content style1">Company :</span></td>
<td width="17%" bgcolor="#04508E"><input name="company" type="text" class="content" id="company"></td>
<td width="7%" bgcolor="#04508E"><span class="content style1">Course :</span></td>
<td width="17%" bgcolor="#04508E"><input name="course" type="text" class="content"></td> -- ?? with the course they just clicked onI hope any of this made sense if not, please ask and i will try explain better.
I would appreciate any help at all.
Thanks alot.
If this reply solved your problem, please add to my reputation and don't forget to mark this thread as solved.
Tack the course name onto the query string:
Then use php in the form:
<a onclick="window.open('popup.php?course=Excel 2003 Level 1','', 'width=210, height=600, location=no, menubar=no, status=no,toolbar=no, scrollbars=no, resizable=no'); return false" href="">Excel 2003 Level 1</a>
<a onclick="window.open('popup.php?course=Excel 2003 Level 2','', 'width=210, height=600, location=no, menubar=no, status=no,toolbar=no, scrollbars=no, resizable=no'); return false" href="">Excel 2003 Level 2</a> php Syntax (Toggle Plain Text)
<?php $course=$_GET['course']; ?> <form action="req_out.php" method="post" name="form1" class="course_header style1 style2"> Request course outline </form> </td> </tr> <tr> <td width="12%" bgcolor="#04508E" class="content style1">Email Address :</td> <td width="17%" bgcolor="#04508E"><input name="email" type="text" class="content" id="email"></td> <td width="10%" bgcolor="#04508E"><span class="content style1">Company :</span></td> <td width="17%" bgcolor="#04508E"><input name="company" type="text" class="content" id="company"></td> <td width="7%" bgcolor="#04508E"><span class="content style1">Course :</span></td> <td width="17%" bgcolor="#04508E"><input name="course" type="text" class="content" value="<?php echo $course;?>"></td>
![]() |
Similar Threads
- Not sending Feedback Form (PHP)
- E-mail form data quick and easily with PHP (PHP)
- Simple Email Form (PHP)
- php mail form - need to redirect to new page (PHP)
- Form not working, getting parse errors... (PHP)
- Form not sending email (PHP)
- Need Web Based Contact Us Form (PHP)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Javascript change text box fields
- Next Thread: validation problem
| Thread Tools | Search this Thread |
acid2 ajax ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate automatically beta box browser bug captchaformproblem checkbox close codes createrange() css cursor debugger decimal dependent disablefirebug dom download dropdown editor element engine error events explorer ext file firefox form forms frameworks getselection google gwt gxt hiddenvalue highlightedword hint html htmlform ie7 ie8 iframe index internet java javascript javascripthelp2020 jawascriptruntimeerror jquery jsf jsfile jsp jump listbox maps masterpage math media microsoft mp4 object onmouseoutdivproblem onreadystatechange paypal pdf php player position programming progressbar prototype redirect regex runtime safari scale scriptlets search security select size software sql text textarea unicode w3c window windowofwords windowsxp wysiwyg \n





