Pre Populating Email Fields

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
Duckz
Posts: 7
Joined: Sun Sep 02, 2007 9:49 pm

Pre Populating Email Fields

Post by Duckz »

Script URL: Internal
Version of script: 0.94
Hosting company: Internal
URL of phpinfo.php: Internal
URL of session_test.php: Internal
What terms did you try when SEARCHING for a solution: Pre Populating

Write your message below:

Hi There

Is it possible to pre-populate the email field so it has the same email address in for every ticket?

Many Thanks

Lee Meere
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

If you know HTML just edit the form code in index.php
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
rbbigdog
Posts: 19
Joined: Fri Aug 24, 2007 1:36 am

Post by rbbigdog »

As Klemen mentioned, I think you just need to edit the index.php a little....You should be able to just replace the value input with an email address. That's the bold area below....just replace with a good email address (e.g. jsmith@yahoo.com)....make sure you keep the quotes around it.

<td align="left" width="600"><input type="text" name="email" size="30" maxlength="50" value="<?php echo stripslashes(hesk_input($_SESSION['c_email']));?>">

If you don't want the email address to be changed, than you might want to think about hiding this field too.....you just need to change the input type to "hidden".

If you want to show the user the email address that the form is going to (but they can't change it), than you could just add some text at the end like this:

<td align="left" width="600"><input type="hidden" name="email" size="30" maxlength="50" value="jsmith@yahoo.com">jsmith@yahoo.com</td>

Hope this helps a little,

RB
Last edited by rbbigdog on Mon Sep 03, 2007 9:26 pm, edited 1 time in total.
Duckz
Posts: 7
Joined: Sun Sep 02, 2007 9:49 pm

Post by Duckz »

Many Thanks for this, I've now done this and hidden it.

Lee
Post Reply